X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=tests%2Fmeta.g;h=d006e876ff632e105cf345588b94fb202430be72;hp=e85da34cba73511f3ebeda7037509ee96236d785;hb=87efafc700153a3daadfb73070906d223782027d;hpb=ff942a8162f1a5dc4a073448fd89fae7fd0afb14 diff --git a/tests/meta.g b/tests/meta.g index e85da34..d006e87 100644 --- a/tests/meta.g +++ b/tests/meta.g @@ -1,7 +1,6 @@ -s ::= w* Grammar w* => "gram" +s ::= ws grammar ws => "gram" ws !::= w** grammar ::= R+/ws => "grammar" -Grammar ::= R+ => "grammar" R ::= word ^"::=" Alternatives | word ^"!::=" Alternatives @@ -13,6 +12,7 @@ EquiAlt ::= Conjuncts +/ "|" => "alternatives" sequence ::= Es > Es ^"/" E /ws Es ::= E+ +//es ::= E+/ws Conjuncts ::= rewrite | rewrite ^"&" sequence