diff options
author | David Walter Seikel | 2012-01-21 17:20:32 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-21 17:20:32 +1000 |
commit | 6629a6b405c3d1f9364ab44a8afc8e899cc3714a (patch) | |
tree | 7bc2a8b2a50a16d3e1b3966ace7e08dd25e1c62f /LuaSL/src/LuaSL_lemon_yaccer.y | |
parent | Add more LSL constants and functions. (diff) | |
download | SledjHamr-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 'LuaSL/src/LuaSL_lemon_yaccer.y')
-rw-r--r-- | LuaSL/src/LuaSL_lemon_yaccer.y | 3 |
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. |
34 | stateBlock ::= LSL_BLOCK_OPEN functionList LSL_BLOCK_CLOSE. | 34 | stateBlock ::= LSL_BLOCK_OPEN functionList LSL_BLOCK_CLOSE. |
35 | state(S) ::= LSL_IDENTIFIER(I) stateBlock(B). { S = addState(compiler, I, B); } | 35 | state(S) ::= LSL_DEFAULT(I) stateBlock(B). { S = addState(compiler, I, B); } |
36 | state(S) ::= LSL_STATE_CHANGE LSL_IDENTIFIER(I) stateBlock(B). { S = addState(compiler, I, B); } | ||
36 | 37 | ||
37 | // Function definitions. | 38 | // Function definitions. |
38 | 39 | ||