diff options
author | David Walter Seikel | 2012-01-30 18:31:40 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-30 18:31:40 +1000 |
commit | fb7e642c4600f30b30e147eb5b91f0adc1f08f57 (patch) | |
tree | 3a025b675a972c3e7663b0fb6273e6c82ec0114a /LuaSL/src/LuaSL_lemon_yaccer.y | |
parent | Remove the else if stuff, and empty function lists. Add the else precedence ... (diff) | |
download | SledjHamr-fb7e642c4600f30b30e147eb5b91f0adc1f08f57.zip SledjHamr-fb7e642c4600f30b30e147eb5b91f0adc1f08f57.tar.gz SledjHamr-fb7e642c4600f30b30e147eb5b91f0adc1f08f57.tar.bz2 SledjHamr-fb7e642c4600f30b30e147eb5b91f0adc1f08f57.tar.xz |
Add a new struct for tracking bits of text and the attached ignorable, then use it for names.
Diffstat (limited to 'LuaSL/src/LuaSL_lemon_yaccer.y')
-rw-r--r-- | LuaSL/src/LuaSL_lemon_yaccer.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/LuaSL/src/LuaSL_lemon_yaccer.y b/LuaSL/src/LuaSL_lemon_yaccer.y index 78aa349..b6eac2e 100644 --- a/LuaSL/src/LuaSL_lemon_yaccer.y +++ b/LuaSL/src/LuaSL_lemon_yaccer.y | |||
@@ -32,8 +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(A) ::= beginBlock(L) functionList(B) LSL_BLOCK_CLOSE(R). { A = addBlock(compiler, L, B, R); } | 34 | stateBlock(A) ::= beginBlock(L) functionList(B) LSL_BLOCK_CLOSE(R). { A = addBlock(compiler, L, B, R); } |
35 | state(S) ::= LSL_DEFAULT(I) stateBlock(B). { S = addState(compiler, I, B); } | 35 | state(A) ::= LSL_DEFAULT(I) stateBlock(B). { A = addState(compiler, NULL, I, B); } |
36 | state(S) ::= LSL_STATE_CHANGE LSL_IDENTIFIER(I) stateBlock(B). { S = addState(compiler, I, B); } | 36 | state(A) ::= LSL_STATE_CHANGE(S) LSL_IDENTIFIER(I) stateBlock(B). { A = addState(compiler, S, I, B); } |
37 | 37 | ||
38 | // Function definitions. | 38 | // Function definitions. |
39 | 39 | ||