Debian Codegraph @

test/T_Relations/grammar.cg3

raw
1 DELIMITERS = "<$.>" ;
2
3 ADDRELATION (First) (startfirst) TO (0* (first)) ;
4 ADDRELATION (Second) (startsecond) TO (0* (second)) ;
5 ADDRELATION (OtherSecond) (startsecond) TO (*-1 (first)) ;
6 SETRELATION (OtherSecond) (startsecond) TO (*-1 (second)) ;
7 SETRELATION (OtherSecond) (startsecond) FROM (*-1 (second)) ;
8 REMRELATION (First) (startfirst) TO (0* (first)) ;
9
10 ADDRELATIONS (Begin3) (End3) (startthird) TO (0*W (third)) ;
11 ADDRELATIONS (Begin4) (End4) (startfourth) TO (0*W (fourth)) ;
12 ADDRELATIONS (Begin4) (End3) (startfourth) TO (*-1W (third)) ;
13 REMRELATIONS (Begin3) (End3) (startthird) TO (0*W (third)) ;
14
15 ADD (@4to3) (*) (r:Begin4 (third)) ;
16 ADD (@*to3) (*) (r:* (third)) ;
17
18 ADD (@careful-error) (*) (ALL r:Begin4 (third)) ;
19 ADD (@careful) (*) (ALL r:OtherSecond (second)) ;
20
21 ADD (@none) (*) (NONE r:Begin4 (third)) ;
22
23 REMRELATIONS (NoSuchRelation) (End3) (startthird) TO (0*W (third)) ;
24 REMRELATIONS (Begin3) (NoSuchRelation) (startthird) TO (0*W (third)) ;
25 REMRELATIONS (End3) (NoSuchRelation) (startthird) FROM (0*W (third)) ;
26 REMRELATIONS (NoSuchRelation) (Begin3) (startthird) FROM (0*W (third)) ;
27
28 ADD (@var-relation-error) (/^start\(second\)$/r) (r:VSTR:$1 (*)) ;
29 ADD (@var-relation) (/^start\(second\)$/r) (r:VSTR:%u$1 (*)) ;
30
31 ADD (VSTR:@var-capture-err-$1) (startsecond) (r:/^Second\(.+\)$/r (*)) ;
32 ADD (VSTR:@var-capture-$1) (startsecond) (r:/^\(.+\)Second$/r (*)) ;