Debian Codegraph @

test/T_Dependency_Loops/grammar.cg3

raw
1 DELIMITERS = "<$.>" ;
2 LIST-TAGS += vis N @>N PRP @P< @ADVL ADV ;
3
4 MAP (vis) _S_DELIMITERS_ ;
5 SETPARENT _S_DELIMITERS_ TO (@0 (*)) ;
6
7 # These two are equivalent
8 SETCHILD N TO (-1* @>N) ;
9 SETPARENT @>N TO (1* N) ;
10
11 SETPARENT @P< TO (-1* PRP) ;
12
13 SETPARENT @ADVL (0 PRP) TO (-1* ADV) (0 @ADVL) ;
14
15 SETPARENT ("down") TO (-1* ("once")) ;
16 SETPARENT ("once") TO (1* ("down")) ; # Immediate parent->child = child->parent block
17 SETPARENT ("once") TO (1* ("the")) ; # Deeper loop detection, blocks.
18 SETPARENT ("man") TO (-1* ("there")) ; # Finds an existing loop, but won't block.
19
20 SETPARENT ("street") TO (-1* ("man")) ;
21
22 SETPARENT ("down") TO (*2 (*)) ;
23
24 SETPARENT ALLOWCROSS ("street") TO (-1* ("man")) ;