diff options
author | Mike Buland <eichlan@xagasoft.com> | 2011-12-29 15:53:38 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2011-12-29 15:53:38 -0700 |
commit | 1bd7f709f5217b248fcb3a4c7be2eeca84fec795 (patch) | |
tree | 9c146a63d57eb60542b22271dfdcec363ae2af84 /src/parser.y | |
parent | 162ccd918698f53ef9ff7ba80091969d93aa789d (diff) | |
download | stage-1bd7f709f5217b248fcb3a4c7be2eeca84fec795.tar.gz stage-1bd7f709f5217b248fcb3a4c7be2eeca84fec795.tar.bz2 stage-1bd7f709f5217b248fcb3a4c7be2eeca84fec795.tar.xz stage-1bd7f709f5217b248fcb3a4c7be2eeca84fec795.zip |
This commit...I dunno
I'm using a different version of everything, and I don't know if it's
forward compatible or not.
Diffstat (limited to 'src/parser.y')
-rw-r--r-- | src/parser.y | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/parser.y b/src/parser.y index 8f538a5..ffb6da2 100644 --- a/src/parser.y +++ b/src/parser.y | |||
@@ -12,7 +12,8 @@ typedef void *yyscan_t; | |||
12 | 12 | ||
13 | 13 | ||
14 | %locations | 14 | %locations |
15 | %define api.pure | 15 | %pure-parser |
16 | /* %define api.pure */ | ||
16 | %debug | 17 | %debug |
17 | %error-verbose | 18 | %error-verbose |
18 | 19 | ||
@@ -149,7 +150,7 @@ cmpltExprList: | |||
149 | ; | 150 | ; |
150 | 151 | ||
151 | cmpltExpr: expr ';' | 152 | cmpltExpr: expr ';' |
152 | | tokGoto '(' expr ')' ';' | 153 | | tokGoto '(' expr ')' ';' { bld.addNode( AstNode::tGoto ); } |
153 | | ifbase | 154 | | ifbase |
154 | | tokFor tokEach forIterator tokIn expr tokDo '{' cmpltExprList '}' | 155 | | tokFor tokEach forIterator tokIn expr tokDo '{' cmpltExprList '}' |
155 | | tokWhile { | 156 | | tokWhile { |