X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=tests%2Fregression.tc;h=e2ae422917e969aa13f4e13b495f28ffa7f58ebe;hp=37a302e5a506e87654448ed5a50c630295b8d4c1;hb=526da96dd06e152d194ec92c9ef9df6085a1251b;hpb=ceca07b4020b5dd051e0d01767a35842dec2ca74 diff --git a/tests/regression.tc b/tests/regression.tc index 37a302e..e2ae422 100644 --- a/tests/regression.tc +++ b/tests/regression.tc @@ -262,20 +262,20 @@ testcase { while x>0 - while y>0 - foo() - bar() + while y>0 + foo() + bar() + while x>0 - while y>0 - foo() - bar() + while y>0 + foo() + bar() "; - output "smt:{while:{>:{{x} {0}} sbb:{while:{>:{{y} {0}} {f o o}} {b a r}}} while:{>:{{x} {0}} while:{>:{{y} {0}} sbb:{{f o o} {b a r}}}}}"; - output "smt:{while:{>:{{x} {0}} sbb:{while:{>:{{y} {0}} {f o o}} {b a r}}} while:{>:{{x} {0}} sbb:{while:{>:{{y} {0}} {f o o}} {b a r}}}}"; + output "smt:{while:{>:{{x} {0}} while:{>:{{y} {0}} sbb:{{f o o} {b a r}}}} while:{>:{{x} {0}} sbb:{while:{>:{{y} {0}} {f o o}} {b a r}}}}"; indent !::= ww outdent !::= " " outdent " " @@ -293,7 +293,7 @@ block ::= "\n" indent blockBody &~ "\n" outdent ~[\ ] ~[]* blockBody ::= statement - | statement ws blockBody => "sbb" + > statement ws blockBody => "sbb" statement ::= call | ^"while" expr block /ws