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