From 3a1a20a9bc7008abb7de241c44cc0d7a3d4a77d9 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 7 Feb 2012 23:38:14 -0700 Subject: All good except loops & function returns. --- src/parser.y | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/parser.y') 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 ); } ; ifbase: tokIf { - bld.addNode( AstNode::tIf ); - bld.addNode( AstNode::tScope ); } expr { - bld.closeNode(); + bld.addNode( AstNode::tIf ); bld.addNode( AstNode::tScope ); } tokThen '{' cmpltExprList '}' { bld.closeNode(); -- cgit v1.2.3