Mercurial > ~dholland > hg > ag > index.cgi
diff tests/agcl/parsifal/bgtab2.syn @ 0:13d2b8934445
Import AnaGram (near-)release tree into Mercurial.
author | David A. Holland |
---|---|
date | Sat, 22 Dec 2007 17:52:45 -0500 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/agcl/parsifal/bgtab2.syn Sat Dec 22 17:52:45 2007 -0500 @@ -0,0 +1,19 @@ + grammar // t1 + -> Expression, end // rule 1 = t2, t3 + + Expression // t2 + -> option, Primary // rule 2 = t4, t5 + + Primary // t5 + -> Value // rule 3 = t6 + -> "(", Expression, ")" // rule 4 = t7, t2, t8 + + option // t4 + -> + -> unary op // rule 6 = t9 + + Value // t6 + -> ConstraintValue, ValueAttributes // rule 7 = t10, t11 + + ConstraintValue // t10 + -> Expression // rule 8 = t12