X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=tests%2Fmeta.g;h=062bf2544ea0b95c19b80471bef335b2b487b6c6;hp=be8e435d9370275e14adcbe89137e28c612141b8;hb=0ab024f487647f99eb000345c29c2f8e9b52a200;hpb=2a11d8ca5ae3af89ac2bdea58f71e463b6e4affe diff --git a/tests/meta.g b/tests/meta.g index be8e435..062bf25 100644 --- a/tests/meta.g +++ b/tests/meta.g @@ -1,3 +1,9 @@ + +// use 'a'-'z' or 'a-z' instead of [a-z]? +// EOF token? +// #include (with renaming?) +// ANTLR uses ! and ^ suffixes + s = ws grammar:Grammar ws Grammar = NonTerminal +/ ws NonTerminal = Word ^"=" RHS /ws @@ -25,7 +31,7 @@ e = (Quoted|Word) ^":" e > nonTerminal:: Word | literal:: Quoted | ^"()" - | ^"{" Sequence "}" /ws + | ^"{" PreSequence "}" /ws | ^"[" Range* "]" | e ^"++" /ws -> ~[/] | e ^"+" /ws -> ~[+]