index
:
pascal_compiler
master
Small compiler for a subset of pascal
about
summary
refs
log
tree
commit
diff
log msg
author
committer
range
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
-rw-r--r--
pc.y
4
1 files changed, 4 insertions, 0 deletions
diff --git a/pc.y b/pc.y
index ed4872c..97bf33e 100644
--- a/
pc.y
+++ b/
pc.y
@@ -258,6 +258,10 @@ statement
/*TODO design tree structure for FOR loops*/
$$ = NULL;
}
+ | expr
+ {
+ $$ = $1;
+ }
;
TD: TO | DT;