aymara / aymara/lima

Error in refering to subautomatons parts

Open
#43 0 comments 0 reactions 1 assignee Claimed by @romaricb View on GitHub
bug
Dominant language
C++
Stars
119
Forks
20
PR merge metrics
No merged PRs in 30d

Description

The first rule below compiles and works as expected while the second one fails to compile wih the message `trying to get a subpart in a unit element`. The second rule compiles and works as needed when replacing `right.1.3` by `right.3`. This is false and unexpected.

```
define subautomaton NounGroup {
pattern=$DET? (@Adverb{0-2} @Adj|@Substantif|@ConjCoord|@Participe|@DetNum|@PrepComp){0-n} @Substantif
}

@Copule:@OpenQuot %NounGroup (@Adj){0-n} @ClosQuot:(@Adverb){0-2} @PastParticiple:SYNTACTIC_RELATION:
+!GovernorOf(left.1,"ANY")
+SecondUngovernedBy(left.2.3,right.2,"ANY")
+CreateRelationBetween(left.2.3,right.2,"SUJ_V")
=>AddRelationInGraph()
=AddRelationInGraph()
=

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.