summaryrefslogtreecommitdiff
path: root/src/parser.y
diff options
context:
space:
mode:
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 ) ); }