add Scala support
[sbp.git] / tests / testcase.g
1 #import ../src/edu/berkeley/sbp/meta/meta.g as grammar
2 // this is a testx
3 s          = ws! (TestCases:: TestCase */ ws) ws!
4 Input      = "input"  grammar.Quoted ";" /ws
5 Output     = "output" grammar.Quoted ";" /ws
6 Outputs::  = Output */ ws
7 TestCase:: = "testcase" grammar.Quoted "{"
8                      Input
9                      (^"ignore output;" | Outputs)
10                      (SubGrammar:: grammar.Grammar)
11                 "}" /ws
12 ws         = grammar.ws