-ts ::= ws tests ws => ts
-tests ::= test */ ws
-ws !::= w*
-test ::= ^"testcase" "{" input output +/ ws grammar "}" /ws
- | ^"testcase" "{" input grammar "}" /ws
- | ^"tibcase" "{" input grammar "}" /ws
-output ::= "output" quoted ";" /ws
-input ::= "input" quoted ";" /ws
+#import meta.g as grammar
+
+s = ws! (TestCases:: TestCase */ ws) ws!
+Input = "input" grammar.Quoted ";" /ws
+Output = "output" grammar.Quoted ";" /ws
+Outputs:: = Output */ ws
+TestCase:: = "testcase" grammar.Quoted "{"
+ Input
+ Outputs
+ (SubGrammar:: grammar.Grammar)
+ "}" /ws
+ws = grammar.ws