diff options
Diffstat (limited to 'src/parser.y')
-rw-r--r-- | src/parser.y | 8 |
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 | ||
191 | varRef: tokIdent { bld.addVarRef( *($1) ); } | 191 | varRef: 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 | ||
197 | literal: tokInt { bld.addLiteral( Variable( $1 ) ); } | 197 | literal: tokInt { bld.addLiteral( Variable( $1 ) ); } |