checkpoint
[sbp.git] / tests / meta.g
index 845af52..c8230e6 100644 (file)
@@ -1,13 +1,13 @@
+s             =  !ws Grammar !ws
+
 Grammar       =  NonTerminal +/ ws
-s             =  !ws (grammar::Grammar) !ws
-NonTerminal   =  Word ^"=" RHS /ws
+
+NonTerminal   =  Word "=" RHS /ws
 
 // use 'a'-'z' or 'a-z' instead of [a-z]?
 // EOF token?
 // #include (with renaming?)
 // ANTLR uses ! and ^ suffixes
-
-blah = "Grammar"
         
 RHS           =  (Sequence +/ (!ws "|" !ws)) +/ (!ws ">" !ws)
 
@@ -25,8 +25,8 @@ Sequence      = psx:: PreSequence
 ec            = ~[\-\]\\]
               | escaped
 
-Range         = range:: ec
-              |         ec ^"-" ec
+Range         = ec
+              | ec ^"-" ec
 
 e             =                (Quoted|Word) ^":" e
               > nonTerminal::          Word