checkpoint
[sbp.git] / tests / meta.g
index e4a2518..d05ee8f 100644 (file)
@@ -5,7 +5,7 @@ r         ::=  word  ^"::=" alternatives /ws
             |  word ^"!::=" alternatives /ws
 
 alternatives  ::=  equiAlt   +/ (ws ">" ws)
-equiAlt       ::=  conjuncts +/ (ws "|" ws)   => "alternatives"
+equiAlt       ::=  conjuncts +/ (ws "|" ws)
 
 sequence    ::= es
               > es ws ^"/" e
@@ -28,7 +28,7 @@ ec       ::= [~\-\]\\\~]
 range    ::= ec          => "range"
            | ec ^"-" ec
 
-e        ::= word                             => "nonTerminalY"
+e        ::= word                             => "nonTerminal"
            |    [(][)]                        => "epsilon"
            |    ^"{" alternatives "}"   /ws
            |    ^"["  (range*) "]"
@@ -57,7 +57,8 @@ w       !::= " "
            | "\r"
 an       ::= [a-zA-Z0-9_]
 word     ::= an++
-quoted   ::= "\"" (([~\"\\] | escaped)*) "\"" => "sify"
+quoted   ::= "\"" (([~\"\\] | escaped)+) "\""
+           | "\"\"" => ""
 escaped  ::= "\\n" => "\n"
            | "\\r" => "\r"
            | "\\" [~nr]