aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LuaSL_lemon_yaccer.y
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-21 17:20:32 +1000
committerDavid Walter Seikel2012-01-21 17:20:32 +1000
commit6629a6b405c3d1f9364ab44a8afc8e899cc3714a (patch)
tree7bc2a8b2a50a16d3e1b3966ace7e08dd25e1c62f /LuaSL/src/LuaSL_lemon_yaccer.y
parentAdd more LSL constants and functions. (diff)
downloadSledjHamr-6629a6b405c3d1f9364ab44a8afc8e899cc3714a.zip
SledjHamr-6629a6b405c3d1f9364ab44a8afc8e899cc3714a.tar.gz
SledjHamr-6629a6b405c3d1f9364ab44a8afc8e899cc3714a.tar.bz2
SledjHamr-6629a6b405c3d1f9364ab44a8afc8e899cc3714a.tar.xz
The default state is a different syntax from the other states.
Diffstat (limited to '')
-rw-r--r--LuaSL/src/LuaSL_lemon_yaccer.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/LuaSL/src/LuaSL_lemon_yaccer.y b/LuaSL/src/LuaSL_lemon_yaccer.y
index 1e5389d..4c8cf75 100644
--- a/LuaSL/src/LuaSL_lemon_yaccer.y
+++ b/LuaSL/src/LuaSL_lemon_yaccer.y
@@ -32,7 +32,8 @@ script ::= .
32 32
33%nonassoc LSL_BLOCK_OPEN LSL_BLOCK_CLOSE LSL_STATE. 33%nonassoc LSL_BLOCK_OPEN LSL_BLOCK_CLOSE LSL_STATE.
34stateBlock ::= LSL_BLOCK_OPEN functionList LSL_BLOCK_CLOSE. 34stateBlock ::= LSL_BLOCK_OPEN functionList LSL_BLOCK_CLOSE.
35state(S) ::= LSL_IDENTIFIER(I) stateBlock(B). { S = addState(compiler, I, B); } 35state(S) ::= LSL_DEFAULT(I) stateBlock(B). { S = addState(compiler, I, B); }
36state(S) ::= LSL_STATE_CHANGE LSL_IDENTIFIER(I) stateBlock(B). { S = addState(compiler, I, B); }
36 37
37// Function definitions. 38// Function definitions.
38 39