X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=tests%2Fregression.tc;h=6196b489c8ec134c32c9acf84395df4f17a8f561;hp=fbc8a4ad6f5cdcf82e91eb1853eef8b931648a8d;hb=107df9a4aee6ba593b64d3bbe8b2efac84596cad;hpb=001ef4b0165df34e0ab12a2b9cc29959fe0f19e3 diff --git a/tests/regression.tc b/tests/regression.tc index fbc8a4a..6196b48 100644 --- a/tests/regression.tc +++ b/tests/regression.tc @@ -19,6 +19,22 @@ // s ::= () => s0 //} +tibcase { + input +" + hello + there + how + { are } +"; + output "yep"; + + s ::= { Hello } => "yep" + w ::= " " | "\n" + ws !::= w** + Hello ::= "hello" ws { ws "there" ws "how" ws { { "are" } ws } } +} + testcase { input "ab c"; output "1:{{a b} {c}}"; @@ -267,7 +283,7 @@ testcase { indent !::= ww outdent !::= " " outdent " " - | " " [~]* "\n" + | " " ([~]*) "\n" any !::= [~]* s ::= !any "\n\n" !ww statement !ww "\n\n" !any => smt