X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=tests%2Fmeta.g;h=d8353a6af910c65d699e57c8c7c9f76e3e30bbe7;hb=f283ebfd51424e761bea2dd5b3042cf765ca9ee6;hp=062bf2544ea0b95c19b80471bef335b2b487b6c6;hpb=0ab024f487647f99eb000345c29c2f8e9b52a200;p=sbp.git diff --git a/tests/meta.g b/tests/meta.g index 062bf25..d8353a6 100644 --- a/tests/meta.g +++ b/tests/meta.g @@ -4,7 +4,7 @@ // #include (with renaming?) // ANTLR uses ! and ^ suffixes -s = ws grammar:Grammar ws +s = !ws (grammar::Grammar) !ws Grammar = NonTerminal +/ ws NonTerminal = Word ^"=" RHS /ws @@ -27,8 +27,9 @@ ec = ~[\-\]\\] Range = range:: ec | ec ^"-" ec -e = (Quoted|Word) ^":" e - > nonTerminal:: Word +e =// (Quoted|Word) ^":" e +// > + nonTerminal:: Word | literal:: Quoted | ^"()" | ^"{" PreSequence "}" /ws