X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=tests%2Ftestcase.g;h=ba23723dbf59c3405f12cbfcb7c9bb00438db2ac;hb=80a840adb5df31ba5edd20ecac23086ad09a5ca1;hp=50b585913b57b95afd64ebb86d3de3fd6baa43fc;hpb=394042e1e98bfd13411490ef67621c1a98a94d1c;p=sbp.git diff --git a/tests/testcase.g b/tests/testcase.g index 50b5859..ba23723 100644 --- a/tests/testcase.g +++ b/tests/testcase.g @@ -1,6 +1,6 @@ -ts ::= ws test*/ws ws => ts -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