X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=tests%2Fmeta.g;h=eba580e5c67569fc0ced8cc6e8b57768e307cb18;hb=cbf78b1b452c393c8c76c91fa6515c64525b56d8;hp=4f671c616a677af46089371dd8e4cc39d8f19a92;hpb=36c0a6a931c043959183226705e14a6a6b82c5d2;p=sbp.git diff --git a/tests/meta.g b/tests/meta.g index 4f671c6..eba580e 100644 --- a/tests/meta.g +++ b/tests/meta.g @@ -8,16 +8,13 @@ Conjuncts ::= Sequence | Sequence ^"&" Elements /ws | Sequence ^"&~" Elements /ws Elements ::= e*/ws +NamedElements ::= (e | word ^":" e) */ ws -ps ::= Elements => "ps" -psy ::= ps - | ps !wp ^"/" !ws e -psx ::= psy => "psy" - | psy ^"->" e /ws -Sequence ::= Quoted => "qprod" - > psx => "psx" - | psx "=>" ^"[]" /ws - | psx ^"=>" ("()"|word|Quoted) /ws +PreSequence ::= NamedElements => "ps" + | PreSequence !wp ^"/" !ws e + | PreSequence ^"->" e /ws + | PreSequence ^"=>" ("[]"|"()"|word|Quoted) /ws +Sequence ::= PreSequence => "psx" ec ::= ~[\-\]\\] | escaped @@ -41,7 +38,7 @@ e ::= word => "nonTerminal" | e ^"*/" e /ws | ^"!" e /ws | e ^"?" /ws - | "^" Quoted /ws => caret + | ^"^" Quoted /ws | "(" word ^")" /ws > ^"(" RHS ")" /ws