X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=tests%2Fmeta.g;h=be8e435d9370275e14adcbe89137e28c612141b8;hp=0d2be6f86f6a9a577404da3453f0469c1fd18df2;hb=1a249057cbfd2180910e46672eafee3af46ae470;hpb=df32ec862cecf0851a7f7342582b5786d04a4771 diff --git a/tests/meta.g b/tests/meta.g index 0d2be6f..be8e435 100644 --- a/tests/meta.g +++ b/tests/meta.g @@ -1,6 +1,6 @@ s = ws grammar:Grammar ws Grammar = NonTerminal +/ ws -NonTerminal = Word !wp ^"=" !wp RHS +NonTerminal = Word ^"=" RHS /ws RHS = (Sequence +/ (!ws "|" !ws)) +/ (!ws ">" !ws) @@ -8,12 +8,12 @@ Elements = e*/ws PreSequence = ps:: Elements | (Quoted|Word) ^"::" PreSequence /ws - > PreSequence !wp ^"/" !ws e - | PreSequence ^"->" e /ws + > PreSequence ^"/" e /ws + | PreSequence ^"->" e /ws Sequence = psx:: PreSequence - | Sequence !ws ^"&" !ws Elements - | Sequence !ws ^"&~" !ws Elements + | Sequence ^"&" Elements /ws + | Sequence ^"&~" Elements /ws ec = ~[\-\]\\] | escaped