diff options
author | David Walter Seikel | 2012-01-19 15:32:43 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-19 15:32:43 +1000 |
commit | aed05a974f1111ce7f7d63315244edb275e1e758 (patch) | |
tree | 6e610f931c81052ce4e28b4b6c636cf4c1ff2c8b /LuaSL/src/LuaSL_lemon_yaccer.y | |
parent | More notes about Lua quirks. (diff) | |
download | SledjHamr-aed05a974f1111ce7f7d63315244edb275e1e758.zip SledjHamr-aed05a974f1111ce7f7d63315244edb275e1e758.tar.gz SledjHamr-aed05a974f1111ce7f7d63315244edb275e1e758.tar.bz2 SledjHamr-aed05a974f1111ce7f7d63315244edb275e1e758.tar.xz |
More quirk comments.
Diffstat (limited to 'LuaSL/src/LuaSL_lemon_yaccer.y')
-rw-r--r-- | LuaSL/src/LuaSL_lemon_yaccer.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LuaSL/src/LuaSL_lemon_yaccer.y b/LuaSL/src/LuaSL_lemon_yaccer.y index a0defc5..eafab12 100644 --- a/LuaSL/src/LuaSL_lemon_yaccer.y +++ b/LuaSL/src/LuaSL_lemon_yaccer.y | |||
@@ -163,7 +163,7 @@ expr ::= identifier LSL_ASSIGNMENT_MODULO expr. | |||
163 | expr ::= identifier LSL_ASSIGNMENT_DIVIDE expr. | 163 | expr ::= identifier LSL_ASSIGNMENT_DIVIDE expr. |
164 | expr ::= identifier LSL_ASSIGNMENT_PLAIN expr. | 164 | expr ::= identifier LSL_ASSIGNMENT_PLAIN expr. |
165 | 165 | ||
166 | // Hmm think this can have commas seperating the assignment parts. | 166 | // Hmm think this can have commas seperating the assignment parts, or is that only in C?. If so, best to separate them when converting to Lua, as it uses that syntax for something else. |
167 | statement(A) ::= type(B) LSL_IDENTIFIER(C) LSL_ASSIGNMENT_PLAIN(D) expr(E) LSL_STATEMENT(F). { A = addStatement(F, LSL_IDENTIFIER, addVariable(compiler, B, C, D, E)); } | 167 | statement(A) ::= type(B) LSL_IDENTIFIER(C) LSL_ASSIGNMENT_PLAIN(D) expr(E) LSL_STATEMENT(F). { A = addStatement(F, LSL_IDENTIFIER, addVariable(compiler, B, C, D, E)); } |
168 | statement(A) ::= type(B) LSL_IDENTIFIER(C) LSL_STATEMENT(F). { A = addStatement(F, LSL_IDENTIFIER, addVariable(compiler, B, C, NULL, NULL)); } | 168 | statement(A) ::= type(B) LSL_IDENTIFIER(C) LSL_STATEMENT(F). { A = addStatement(F, LSL_IDENTIFIER, addVariable(compiler, B, C, NULL, NULL)); } |
169 | 169 | ||