X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=tests%2Fregression.tc;h=0d4b8d405e17e6b071beec1d48d00f87a2e82c58;hp=3204e6a0fce2c53f96c9d55a4da127cee55693ac;hb=8633a1ff957ac9ccbafa5e897bc8b9f17eadab02;hpb=2724e3d1df836f6ce40bc4227f1509e777de2e48 diff --git a/tests/regression.tc b/tests/regression.tc index 3204e6a..0d4b8d4 100644 --- a/tests/regression.tc +++ b/tests/regression.tc @@ -19,19 +19,21 @@ // s ::= () => s0 //} -//tibcase { -// input " -// hello -// there -// how -// { are } -//"; -// -// s ::= ws S ws -// ws !::= w* -// S ::= { Hello } -// Hello ::= "hello" { "there" "how" { "are" } } -//} +tibcase { + input +" + hello + there + how + { are } +"; + output "yep"; + + s ::= { Hello } => "yep" + w ::= " " | "\n" + ws !::= w** + Hello ::= "hello" ws { "there" "how" { "are" } } +} testcase { input "ab c"; @@ -284,12 +286,12 @@ outdent !::= " " outdent " " | " " ([~]*) "\n" any !::= [~]* -s ::= !any "\n\n" !ww statement !ww "\n\n" !any => smt -ww ::= sp* +s ::= any "\n\n" ww statement ww "\n\n" any => smt +ww !::= sp* ws !::= sp** sp ::= " " -block ::= "\n" !indent blockBody +block ::= "\n" indent blockBody &~ "\n" outdent [~\ ] [~]* blockBody ::= statement