summaryrefslogtreecommitdiff
path: root/src/parser.y
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-12-29 22:27:59 -0700
committerMike Buland <eichlan@xagasoft.com>2011-12-29 22:27:59 -0700
commitf66458278ce3663397fc985a1253c85b74f011e6 (patch)
tree785e2fb51a91fe277c698ea84009e0052ef6555e /src/parser.y
parentf404d991aa53ed81855e51b597bfe1d5c2288b42 (diff)
downloadstage-f66458278ce3663397fc985a1253c85b74f011e6.tar.gz
stage-f66458278ce3663397fc985a1253c85b74f011e6.tar.bz2
stage-f66458278ce3663397fc985a1253c85b74f011e6.tar.xz
stage-f66458278ce3663397fc985a1253c85b74f011e6.zip
Most AstNodes work now.
Next up: loops, proper variable references with scopes, and gotos.
Diffstat (limited to 'src/parser.y')
-rw-r--r--src/parser.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.y b/src/parser.y
index ffb6da2..ccb0c97 100644
--- a/src/parser.y
+++ b/src/parser.y
@@ -134,7 +134,7 @@ situationMode: tokSetup { bld.beginSituationMode( Situation::modeSetup ); }
134 | tokEnter { bld.beginSituationMode( Situation::modeEnter ); } 134 | tokEnter { bld.beginSituationMode( Situation::modeEnter ); }
135 ; 135 ;
136 136
137function: tokFunction tokIdent { bld.beginFunction( *($2) ); } '(' funcParamList ')' '{' cmpltExprList '}' { bld.endFunction(); } 137function: tokFunction tokIdent { bld.beginFunction( *($2) ); } '(' funcParamList ')' { bld.endFunctionParams(); } '{' cmpltExprList '}' { bld.endFunction(); }
138 ; 138 ;
139 139
140funcParamList: 140funcParamList: