projects
/
sbp.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
checkpoint
[sbp.git]
/
tests
/
loop.tc
1
testcase {
2
input "if (bar) if (bop) baz";
3
output "";
4
5
s = Expr
6
Expr = IfThen
7
| IfThenElse
8
| id:: [a-z]++
9
IfThen = IfThen::
10
"if" "(" Expr ")"
11
Expr
12
/ws
13
IfThenElse = IfThenElse::
14
"if" "(" Expr ")"
15
((thenelse:: Expr
16
"else"
17
Expr /ws)) /ws
18
/ws
19
ws = [\n ]**
20
}