removed illegal use of double-star
[sbp.git] / tests / meta.g
index 8be950d..ed87f5c 100644 (file)
@@ -1,5 +1,5 @@
 s         ::=  ws grammar ws                  => "gram"
-ws       !::=  w**
+ws       !::=  w** | ws "//" ([~\n]*) "\n" ws
 wp       !::=  w++
 grammar   ::=  r +/ ws                        => "grammar"
 
@@ -45,10 +45,9 @@ e        ::=  word                          => "nonTerminal"
            |     "(" word         ^")"  /ws
            >    ^"(" alternatives  ")"  /ws
 w       !::= " "
-           | "//" ([~\n]*) "\n"
            | "\n"
            | "\r"
-word     ::= [a-zA-Z0-9_]+ !=> [a-zA-Z0-9_]
+word     ::= [a-zA-Z0-9_]++
 quoted   ::= "\"" (([~\"\\] | escaped)+) "\""
            | "\"\"" => ""
 escaped  ::= "\\n" => "\n"