checkpoint
[sbp.git] / tests / meta.g
index 019d5e3..c9f53a2 100644 (file)
@@ -9,14 +9,13 @@ Conjuncts   ::=  Sequence
               |  Sequence ^"&~" Elements  /ws
 Elements    ::=  e*/ws
 
-psy         ::= Elements             => "ps"
-              | Elements !wp "/" !ws e => "ps2"
-psx         ::= psy                   => "psy"
-              | psy ^"->" e /ws
+psy         ::= Elements => "ps"
+              | psy !wp ^"/"  !ws e
+              | psy     ^"->"     e /ws
 Sequence    ::= Quoted => "qprod"
-              > psx => "psx"
-              | psx  "=>" ^"[]"              /ws
-              | psx ^"=>" ("()"|word|Quoted) /ws
+              > psy => "psx"
+              | psy  "=>" ^"[]"              /ws
+              | psy ^"=>" ("()"|word|Quoted) /ws
 
 ec          ::= ~[\-\]\\]
               | escaped
@@ -40,7 +39,7 @@ e           ::=  word                          => "nonTerminal"
               |  e ^"*/"  e                /ws        
               |    ^"!"   e                /ws
               |  e ^"?"                    /ws
-              |   "^" Quoted               /ws => caret
+              |    ^"^" Quoted             /ws
 
               |     "(" word         ^")"  /ws
               >    ^"(" RHS  ")"           /ws