projects
/
sbp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Makefile changes
[sbp.git]
/
tests
/
regression.tc
diff --git
a/tests/regression.tc
b/tests/regression.tc
index
3204e6a
..
0d4b8d4
100644
(file)
--- a/
tests/regression.tc
+++ b/
tests/regression.tc
@@
-19,19
+19,21
@@
// s ::= () => s0
//}
// 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";
testcase {
input "ab c";
@@
-284,12
+286,12
@@
outdent !::= " " outdent " "
| " " ([~]*) "\n"
any !::= [~]*
| " " ([~]*) "\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 ::= " "
ws !::= sp**
sp ::= " "
-block ::= "\n" !indent blockBody
+block ::= "\n" indent blockBody
&~ "\n" outdent [~\ ] [~]*
blockBody ::= statement
&~ "\n" outdent [~\ ] [~]*
blockBody ::= statement