X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=tests%2Fmeta.g;h=2779b7c8f6a618a4d0a879580376179b40c10cc1;hp=bb7cd114d94bf05ab028246df247490f0b38e86d;hb=5cf6851e385edfdec4955120e03bf7e282dc8a68;hpb=8ad399319f15cd179fa05a5052314a8f1d7df271 diff --git a/tests/meta.g b/tests/meta.g index bb7cd11..2779b7c 100644 --- a/tests/meta.g +++ b/tests/meta.g @@ -21,8 +21,9 @@ ec ::= [~\-\]\\\~] range ::= ec => "range" | ec ^"-" ec -e ::= word => "nonTerminal" - | [(][)] => "epsilon" +e ::= word => "nonTerminal" + | quoted => "literal" + | ^"()" | ^"{" alternatives "}" /ws | ^"[" (range*) "]" | ^"[~" (range*) "]" @@ -35,10 +36,8 @@ e ::= word => "nonTerminal" | e ^"+/" e /ws | e ^"?" /ws - | quoted => "literal" - - | "(" word ^")" /ws - > ^"(" alternatives ")" /ws + | "(" word ^")" /ws + > ^"(" alternatives ")" /ws w !::= " " | "//" ([~\n]*) "\n"