From 533310f646f1b1a00250a361f627967c420f1eef Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 29 Dec 2011 14:13:21 -0700 Subject: Situations & their modes are built. --- src/parser.y | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/parser.y') diff --git a/src/parser.y b/src/parser.y index e6210d1..8f538a5 100644 --- a/src/parser.y +++ b/src/parser.y @@ -124,11 +124,13 @@ situationMembers: | situationMembers commandDecl ; -situationModeFunc: situationMode '{' cmpltExprList '}' +situationModeFunc: situationMode '{' cmpltExprList '}' { + bld.closeSituationMode(); + } ; -situationMode: tokSetup - | tokEnter +situationMode: tokSetup { bld.beginSituationMode( Situation::modeSetup ); } + | tokEnter { bld.beginSituationMode( Situation::modeEnter ); } ; function: tokFunction tokIdent { bld.beginFunction( *($2) ); } '(' funcParamList ')' '{' cmpltExprList '}' { bld.endFunction(); } -- cgit v1.2.3