summaryrefslogtreecommitdiff
path: root/src/parser.y
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-12-29 23:30:49 -0700
committerMike Buland <eichlan@xagasoft.com>2011-12-29 23:30:49 -0700
commit35f71b12dc48a928d98743f607f62b2f6dbe7307 (patch)
treef4297f57e570f52f3776392fc8ed4075db1ab4ac /src/parser.y
parentf66458278ce3663397fc985a1253c85b74f011e6 (diff)
downloadstage-35f71b12dc48a928d98743f607f62b2f6dbe7307.tar.gz
stage-35f71b12dc48a928d98743f607f62b2f6dbe7307.tar.bz2
stage-35f71b12dc48a928d98743f607f62b2f6dbe7307.tar.xz
stage-35f71b12dc48a928d98743f607f62b2f6dbe7307.zip
Goto works, scopes work.
Diffstat (limited to 'src/parser.y')
-rw-r--r--src/parser.y8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/parser.y b/src/parser.y
index ccb0c97..484fd25 100644
--- a/src/parser.y
+++ b/src/parser.y
@@ -188,10 +188,10 @@ ifnext:
188 | tokElse { bld.addNode( AstNode::tScope ); } ifbase 188 | tokElse { bld.addNode( AstNode::tScope ); } ifbase
189 ; 189 ;
190 190
191varRef: tokIdent { bld.addVarRef( *($1) ); } 191varRef: tokIdent { bld.addVarRef( *($1), sidLocal ); }
192 | tokPlayer '.' tokIdent 192 | tokPlayer '.' tokIdent { bld.addVarRef( *($3), sidPlayer ); }
193 | tokGlobal '.' tokIdent 193 | tokGlobal '.' tokIdent { bld.addVarRef( *($3), sidGlobal ); }
194 | tokSituation '.' tokIdent 194 | tokSituation '.' tokIdent { bld.addVarRef( *($3), sidSituation ); }
195 ; 195 ;
196 196
197literal: tokInt { bld.addLiteral( Variable( $1 ) ); } 197literal: tokInt { bld.addLiteral( Variable( $1 ) ); }