summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-02-07 15:26:20 -0700
committerMike Buland <eichlan@xagasoft.com>2012-02-07 15:26:20 -0700
commit0b7d87e4a32bd443605a1b467293017b7bfcc0ca (patch)
tree05b87bb81ebd84d6e5384b5556d08244914e634a /src
parent9665eda348e3e2fa8ac32fdc26d1c0b0eb65b432 (diff)
downloadstage-0b7d87e4a32bd443605a1b467293017b7bfcc0ca.tar.gz
stage-0b7d87e4a32bd443605a1b467293017b7bfcc0ca.tar.bz2
stage-0b7d87e4a32bd443605a1b467293017b7bfcc0ca.tar.xz
stage-0b7d87e4a32bd443605a1b467293017b7bfcc0ca.zip
Fixed another reference bug in return statements.
Thanks David :)
Diffstat (limited to 'src')
-rw-r--r--src/parser.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parser.y b/src/parser.y
index c5b86ea..383ab28 100644
--- a/src/parser.y
+++ b/src/parser.y
@@ -163,8 +163,8 @@ cmpltExprList:
163 ; 163 ;
164 164
165cmpltExpr: expr ';' { bld.endCmpltExpr(); } 165cmpltExpr: expr ';' { bld.endCmpltExpr(); }
166 | tokReturn '(' expr ')' ';' { bld.addNode( AstNode::tReturn ); bld.endCmpltExpr();} 166 | tokReturn '(' expr ')' ';' { bld.addNode( AstNode::tDeref ); bld.addNode( AstNode::tReturn ); bld.endCmpltExpr(); }
167 | tokReturn '(' ')' ';' { bld.addNode( AstNode::tReturn ); bld.endCmpltExpr();} 167 | tokReturn '(' ')' ';' { bld.addLiteral( Variable::tNull ); bld.addNode( AstNode::tReturn ); bld.endCmpltExpr();}
168 | tokGoto '(' expr ')' ';' { bld.addNode( AstNode::tGoto ); bld.endCmpltExpr();} 168 | tokGoto '(' expr ')' ';' { bld.addNode( AstNode::tGoto ); bld.endCmpltExpr();}
169 | ifbase 169 | ifbase
170 | tokFor tokEach { 170 | tokFor tokEach {