diff options
author | David Walter Seikel | 2012-02-01 22:50:34 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-02-01 22:50:34 +1000 |
commit | 2b51cab943a6177bf0f1fd359242d03e44fe8046 (patch) | |
tree | 9d4c3b4b063dd987815f07249cf0be5e88e09f2c /LuaSL/src/LuaSL_lemon_yaccer.y | |
parent | Deal with parsing if ... else ... (diff) | |
download | SledjHamr-2b51cab943a6177bf0f1fd359242d03e44fe8046.zip SledjHamr-2b51cab943a6177bf0f1fd359242d03e44fe8046.tar.gz SledjHamr-2b51cab943a6177bf0f1fd359242d03e44fe8046.tar.bz2 SledjHamr-2b51cab943a6177bf0f1fd359242d03e44fe8046.tar.xz |
Parse and output lists.
Diffstat (limited to '')
-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 72d328c..1d28ec5 100644 --- a/LuaSL/src/LuaSL_lemon_yaccer.y +++ b/LuaSL/src/LuaSL_lemon_yaccer.y | |||
@@ -202,7 +202,7 @@ expr(A) ::= LSL_INTEGER(B). { B->basicType = OT_integer; A = B; } | |||
202 | %nonassoc LSL_KEY. | 202 | %nonassoc LSL_KEY. |
203 | expr(A) ::= LSL_KEY(B). { B->basicType = OT_key; A = B; } | 203 | expr(A) ::= LSL_KEY(B). { B->basicType = OT_key; A = B; } |
204 | %nonassoc LSL_LIST. | 204 | %nonassoc LSL_LIST. |
205 | expr(A) ::= LSL_BRACKET_OPEN(B) exprList LSL_BRACKET_CLOSE. [LSL_BRACKET_OPEN] { B->basicType = OT_list; A = B; } // Probably need a specific addList(). | 205 | expr(A) ::= LSL_BRACKET_OPEN(L) exprList(E) LSL_BRACKET_CLOSE(R). [LSL_BRACKET_OPEN] { A = addList(L, E, R); } |
206 | %nonassoc LSL_ROTATION. | 206 | %nonassoc LSL_ROTATION. |
207 | // Uses the same symbol for less than, greater than, and the rotation / vector delimiters. | 207 | // Uses the same symbol for less than, greater than, and the rotation / vector delimiters. |
208 | expr ::= LSL_LESS_THAN expr LSL_COMMA expr LSL_COMMA expr LSL_COMMA expr LSL_GREATER_THAN. [LSL_ANGLE_OPEN] | 208 | expr ::= LSL_LESS_THAN expr LSL_COMMA expr LSL_COMMA expr LSL_COMMA expr LSL_GREATER_THAN. [LSL_ANGLE_OPEN] |