diff options
author | Mike Buland <eichlan@xagasoft.com> | 2011-12-29 14:13:21 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2011-12-29 14:13:21 -0700 |
commit | 533310f646f1b1a00250a361f627967c420f1eef (patch) | |
tree | 0ade5ffb70259af7f4e2be56497e4e4707bc079a /src/parser.y | |
parent | 1bc10d1408eb29b0675a030e029155dd046b1dd8 (diff) | |
download | stage-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.y | 8 |
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 | ||
127 | situationModeFunc: situationMode '{' cmpltExprList '}' | 127 | situationModeFunc: situationMode '{' cmpltExprList '}' { |
128 | bld.closeSituationMode(); | ||
129 | } | ||
128 | ; | 130 | ; |
129 | 131 | ||
130 | situationMode: tokSetup | 132 | situationMode: tokSetup { bld.beginSituationMode( Situation::modeSetup ); } |
131 | | tokEnter | 133 | | tokEnter { bld.beginSituationMode( Situation::modeEnter ); } |
132 | ; | 134 | ; |
133 | 135 | ||
134 | function: tokFunction tokIdent { bld.beginFunction( *($2) ); } '(' funcParamList ')' '{' cmpltExprList '}' { bld.endFunction(); } | 136 | function: tokFunction tokIdent { bld.beginFunction( *($2) ); } '(' funcParamList ')' '{' cmpltExprList '}' { bld.endFunction(); } |