X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=tests%2Fmeta.g;h=d05ee8fc273103d40587ce332c461f6dfa3cb102;hp=e4a2518c2555cc660787b619d9c7174183bf2582;hb=590a67918a69bb23f63cef8cbfec46c031cd38d3;hpb=d79a5062fbe0211d0ad3459d6a545a5270f6efbd diff --git a/tests/meta.g b/tests/meta.g index e4a2518..d05ee8f 100644 --- a/tests/meta.g +++ b/tests/meta.g @@ -5,7 +5,7 @@ r ::= word ^"::=" alternatives /ws | word ^"!::=" alternatives /ws alternatives ::= equiAlt +/ (ws ">" ws) -equiAlt ::= conjuncts +/ (ws "|" ws) => "alternatives" +equiAlt ::= conjuncts +/ (ws "|" ws) sequence ::= es > es ws ^"/" e @@ -28,7 +28,7 @@ ec ::= [~\-\]\\\~] range ::= ec => "range" | ec ^"-" ec -e ::= word => "nonTerminalY" +e ::= word => "nonTerminal" | [(][)] => "epsilon" | ^"{" alternatives "}" /ws | ^"[" (range*) "]" @@ -57,7 +57,8 @@ w !::= " " | "\r" an ::= [a-zA-Z0-9_] word ::= an++ -quoted ::= "\"" (([~\"\\] | escaped)*) "\"" => "sify" +quoted ::= "\"" (([~\"\\] | escaped)+) "\"" + | "\"\"" => "" escaped ::= "\\n" => "\n" | "\\r" => "\r" | "\\" [~nr]