X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=tests%2Ftestcase.g;h=ba23723dbf59c3405f12cbfcb7c9bb00438db2ac;hb=53d4cd6ae732171fb81a5df7db9f9c59e1efae0f;hp=9e151760ac12a637528a4dd26c685d43372f874c;hpb=81b213c3a4345486c2f96f1c44e93d4e38134102;p=sbp.git diff --git a/tests/testcase.g b/tests/testcase.g index 9e15176..ba23723 100644 --- a/tests/testcase.g +++ b/tests/testcase.g @@ -1,7 +1,6 @@ -ts ::= ws tests ws => ts -tests ::= test %% ws -ws !::= w* -test ::= ^"testcase" "{" input output $$ ws grammar "}" /ws - | ^"testcase" "{" input grammar "}" /ws -output ::= "output" quoted ";" /ws -input ::= "input" quoted ";" /ws +ts = ts:: !ws tests !ws +tests = test */ ws +test = tca:: "testcase" "{" input (o::(output +/ ws)) (grammaro::(grammar::Grammar)) "}" /ws + | tcb:: "testcase" "{" input (grammaro::(grammar::Grammar)) "}" /ws +output = "output" Quoted ";" /ws +input = "input" Quoted ";" /ws