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