diff options
author | Mike Buland <eichlan@xagasoft.com> | 2011-12-29 22:27:59 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2011-12-29 22:27:59 -0700 |
commit | f66458278ce3663397fc985a1253c85b74f011e6 (patch) | |
tree | 785e2fb51a91fe277c698ea84009e0052ef6555e /src/parser.y | |
parent | f404d991aa53ed81855e51b597bfe1d5c2288b42 (diff) | |
download | stage-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.y | 2 |
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 | ||
137 | function: tokFunction tokIdent { bld.beginFunction( *($2) ); } '(' funcParamList ')' '{' cmpltExprList '}' { bld.endFunction(); } | 137 | function: tokFunction tokIdent { bld.beginFunction( *($2) ); } '(' funcParamList ')' { bld.endFunctionParams(); } '{' cmpltExprList '}' { bld.endFunction(); } |
138 | ; | 138 | ; |
139 | 139 | ||
140 | funcParamList: | 140 | funcParamList: |