From f66458278ce3663397fc985a1253c85b74f011e6 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 29 Dec 2011 22:27:59 -0700 Subject: Most AstNodes work now. Next up: loops, proper variable references with scopes, and gotos. --- src/parser.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/parser.y') 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 ); } | tokEnter { bld.beginSituationMode( Situation::modeEnter ); } ; -function: tokFunction tokIdent { bld.beginFunction( *($2) ); } '(' funcParamList ')' '{' cmpltExprList '}' { bld.endFunction(); } +function: tokFunction tokIdent { bld.beginFunction( *($2) ); } '(' funcParamList ')' { bld.endFunctionParams(); } '{' cmpltExprList '}' { bld.endFunction(); } ; funcParamList: -- cgit v1.2.3