X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=tests%2Fmeta.g;h=cc33104b4536e4385dc2f0cc984f988186b1c64e;hp=e81e67c9ff2caf04a419b7db517d895e8d6cf5fe;hb=475743c156fc5b02e79cd787b3176f5fa1877f83;hpb=6ba9ea820f9626a7504da6cf442e2cef1601914f diff --git a/tests/meta.g b/tests/meta.g index e81e67c..cc33104 100644 --- a/tests/meta.g +++ b/tests/meta.g @@ -1,19 +1,19 @@ -s = gram:: !ws Grammar ws +s = ws gram:Grammar ws Grammar = grammar:: NonTerminal +/ ws NonTerminal = word !wp ^"=" !wp RHS -RHS = (Conjuncts +/ (!ws "|" !ws)) +/ (!ws ">" !ws) +RHS = (Sequence +/ (!ws "|" !ws)) +/ (!ws ">" !ws) -Conjuncts = Sequence - | Sequence ^"&" Elements /ws - | Sequence ^"&~" Elements /ws Elements = e*/ws PreSequence = ps:: Elements | PreSequence !wp ^"/" !ws e | PreSequence ^"->" e /ws | (Quoted|word) ^"::" PreSequence /ws + Sequence = psx:: PreSequence + | Sequence !ws ^"&" !ws Elements + | Sequence !ws ^"&~" !ws Elements ec = ~[\-\]\\] | escaped