checkpoint
[sbp.git] / tests / meta.g
index 062bf25..72e1665 100644 (file)
@@ -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
         
@@ -28,7 +28,8 @@ Range         = range:: ec
               |         ec ^"-" ec
 
 e             =                (Quoted|Word) ^":" e
-              > nonTerminal::          Word
+              > 
+              nonTerminal::          Word
               | literal::       Quoted
               |                  ^"()"
               |                  ^"{" PreSequence "}"       /ws