aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LuaSL_lemon_yaccer.y
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-02-01 22:50:34 +1000
committerDavid Walter Seikel2012-02-01 22:50:34 +1000
commit2b51cab943a6177bf0f1fd359242d03e44fe8046 (patch)
tree9d4c3b4b063dd987815f07249cf0be5e88e09f2c /LuaSL/src/LuaSL_lemon_yaccer.y
parentDeal with parsing if ... else ... (diff)
downloadSledjHamr-2b51cab943a6177bf0f1fd359242d03e44fe8046.zip
SledjHamr-2b51cab943a6177bf0f1fd359242d03e44fe8046.tar.gz
SledjHamr-2b51cab943a6177bf0f1fd359242d03e44fe8046.tar.bz2
SledjHamr-2b51cab943a6177bf0f1fd359242d03e44fe8046.tar.xz
Parse and output lists.
Diffstat (limited to 'LuaSL/src/LuaSL_lemon_yaccer.y')
-rw-r--r--LuaSL/src/LuaSL_lemon_yaccer.y2
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.
203expr(A) ::= LSL_KEY(B). { B->basicType = OT_key; A = B; } 203expr(A) ::= LSL_KEY(B). { B->basicType = OT_key; A = B; }
204%nonassoc LSL_LIST. 204%nonassoc LSL_LIST.
205expr(A) ::= LSL_BRACKET_OPEN(B) exprList LSL_BRACKET_CLOSE. [LSL_BRACKET_OPEN] { B->basicType = OT_list; A = B; } // Probably need a specific addList(). 205expr(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.
208expr ::= LSL_LESS_THAN expr LSL_COMMA expr LSL_COMMA expr LSL_COMMA expr LSL_GREATER_THAN. [LSL_ANGLE_OPEN] 208expr ::= LSL_LESS_THAN expr LSL_COMMA expr LSL_COMMA expr LSL_COMMA expr LSL_GREATER_THAN. [LSL_ANGLE_OPEN]