diff options
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 { |