added arbitrary expression inversion, lookforward, and syntax for lookback
[sbp.git] / tests / regression.tc
index 6dabcb2..863b62e 100644 (file)
@@ -41,8 +41,8 @@ testcase {
     output "1:{{a b} {c}}";
 
     s   ::= ids
-    ids ::= id (" " ids &~ id [~]*) => "1"
-          | id (    ids &~ id [~]*) => "2"
+    ids ::= id (" " ids &~ id ~[]*) => "1"
+          | id (    ids &~ id ~[]*) => "2"
           | id
     id  ::= [a-z]++
 }
@@ -284,16 +284,16 @@ testcase {
 
 indent  !::= ww
 outdent !::= " "  outdent " "
-           | " "  ([~]*)  "\n"
+           | " "  (~[]*)  "\n"
 
-any      !::= [~]*
+any      !::= ~[]*
 s         ::= any "\n\n" ww statement ww "\n\n" any => smt
 ww       !::= sp*
 ws       !::= sp**
 sp        ::= " "
 
 block     ::= "\n" indent  blockBody
-           &~ "\n" outdent [~\ ] [~]*
+           &~ "\n" outdent ~[\ ] ~[]*
 
 blockBody ::= statement
             > statement blockBody /ws => "sbb"