X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=tests%2Fmeta.g;h=5347aebd5d37902dc45092f02c215cf4352d2753;hp=f16c60a384c40cc1dd1c3adb2d79607635c93da2;hb=641b6188852cc3ed3373011a76032c42b5806a95;hpb=a4e47e7742e717f9fc72455f60cdbd16a7af9fe1 diff --git a/tests/meta.g b/tests/meta.g index f16c60a..5347aeb 100644 --- a/tests/meta.g +++ b/tests/meta.g @@ -1,4 +1,4 @@ -s ::= w* Grammar w* => "gram" +s ::= ws Grammar ws => "gram" ws !::= w** grammar ::= R+/ws => "grammar" Grammar ::= R+ => "grammar" @@ -10,9 +10,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