projects
/
sbp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
checkpoint
[sbp.git]
/
tests
/
ifthen.tc
diff --git
a/tests/ifthen.tc
b/tests/ifthen.tc
index
dbb613d
..
6d23a52
100644
(file)
--- a/
tests/ifthen.tc
+++ b/
tests/ifthen.tc
@@
-4,10
+4,9
@@
testcase {
s = Expr
s = Expr
- Expr = IfThen
- | IfThenElse:: IfThen "else" Expr /ws &~ IfThen
+ Expr = IfThen:: "if" "(" Expr ")" Expr /ws
+ | IfThenElse:: "if" "(" Expr ")" (x:: Expr "else" Expr /ws &~ Expr) /ws
| Identifier:: [a-z]++
| Identifier:: [a-z]++
- IfThen = IfThen:: "if" "(" Expr ")" Expr /ws
ws = [\n ]**
ws = [\n ]**