diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-02-07 23:38:14 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-02-07 23:38:14 -0700 |
commit | 3a1a20a9bc7008abb7de241c44cc0d7a3d4a77d9 (patch) | |
tree | d1ae0b637370bc70863ec214e933b1695a47b857 /src/parser.y | |
parent | e9170376ec9d75f65949ac6b61694ddf7ad37897 (diff) | |
download | stage-3a1a20a9bc7008abb7de241c44cc0d7a3d4a77d9.tar.gz stage-3a1a20a9bc7008abb7de241c44cc0d7a3d4a77d9.tar.bz2 stage-3a1a20a9bc7008abb7de241c44cc0d7a3d4a77d9.tar.xz stage-3a1a20a9bc7008abb7de241c44cc0d7a3d4a77d9.zip |
All good except loops & function returns.
Diffstat (limited to 'src/parser.y')
-rw-r--r-- | src/parser.y | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/parser.y b/src/parser.y index 383ab28..47c0159 100644 --- a/src/parser.y +++ b/src/parser.y | |||
@@ -200,10 +200,8 @@ forIterator: tokIdent { bld.addVarRef( *($1), sidLocal ); } | |||
200 | ; | 200 | ; |
201 | 201 | ||
202 | ifbase: tokIf { | 202 | ifbase: tokIf { |
203 | bld.addNode( AstNode::tIf ); | ||
204 | bld.addNode( AstNode::tScope ); | ||
205 | } expr { | 203 | } expr { |
206 | bld.closeNode(); | 204 | bld.addNode( AstNode::tIf ); |
207 | bld.addNode( AstNode::tScope ); | 205 | bld.addNode( AstNode::tScope ); |
208 | } tokThen '{' cmpltExprList '}' { | 206 | } tokThen '{' cmpltExprList '}' { |
209 | bld.closeNode(); | 207 | bld.closeNode(); |