summaryrefslogtreecommitdiff
path: root/src/parser.y
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-12-29 14:13:21 -0700
committerMike Buland <eichlan@xagasoft.com>2011-12-29 14:13:21 -0700
commit533310f646f1b1a00250a361f627967c420f1eef (patch)
tree0ade5ffb70259af7f4e2be56497e4e4707bc079a /src/parser.y
parent1bc10d1408eb29b0675a030e029155dd046b1dd8 (diff)
downloadstage-533310f646f1b1a00250a361f627967c420f1eef.tar.gz
stage-533310f646f1b1a00250a361f627967c420f1eef.tar.bz2
stage-533310f646f1b1a00250a361f627967c420f1eef.tar.xz
stage-533310f646f1b1a00250a361f627967c420f1eef.zip
Situations & their modes are built.
Diffstat (limited to 'src/parser.y')
-rw-r--r--src/parser.y8
1 files changed, 5 insertions, 3 deletions
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:
124 | situationMembers commandDecl 124 | situationMembers commandDecl
125 ; 125 ;
126 126
127situationModeFunc: situationMode '{' cmpltExprList '}' 127situationModeFunc: situationMode '{' cmpltExprList '}' {
128 bld.closeSituationMode();
129 }
128 ; 130 ;
129 131
130situationMode: tokSetup 132situationMode: tokSetup { bld.beginSituationMode( Situation::modeSetup ); }
131 | tokEnter 133 | tokEnter { bld.beginSituationMode( Situation::modeEnter ); }
132 ; 134 ;
133 135
134function: tokFunction tokIdent { bld.beginFunction( *($2) ); } '(' funcParamList ')' '{' cmpltExprList '}' { bld.endFunction(); } 136function: tokFunction tokIdent { bld.beginFunction( *($2) ); } '(' funcParamList ')' '{' cmpltExprList '}' { bld.endFunction(); }