checkpoint
[sbp.git] / tests / testcase.g
index 9993dce..061bfe9 100644 (file)
@@ -1,7 +1,6 @@
-ts       ::= ws Ts ws => ts
-Ts       ::= Test*
-ws      !::= w*
-Test     ::= ^"testcase" "{" Input Output+ Grammar "}"
-           | ^"testcase" "{" Input         Grammar "}"
-Output   ::= "output" quoted ";"
-Input    ::= "input"  quoted ";"
+ts         = ts:: ws! tests ws!
+tests      =      test */ ws
+test       =   tca::   "testcase" "{" input (o::(output +/ ws))   (grammaro::Grammar) "}" /ws
+           |   tcb::   "testcase" "{" input                       (grammaro::Grammar) "}" /ws
+output     =           "output" Quoted ";" /ws
+input      =           "input"  Quoted ";" /ws