aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LuaSL_lemon_yaccer.y
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-21 10:57:19 +1000
committerDavid Walter Seikel2012-01-21 10:57:19 +1000
commitf496ed1880d0140b171dd96642692a155fb85104 (patch)
treebaa673455b920a50ac69b8c63621dec8c5732b3f /LuaSL/src/LuaSL_lemon_yaccer.y
parentAdd LSL constants by simply compiling an LSL script with them all, and keepin... (diff)
downloadSledjHamr-f496ed1880d0140b171dd96642692a155fb85104.zip
SledjHamr-f496ed1880d0140b171dd96642692a155fb85104.tar.gz
SledjHamr-f496ed1880d0140b171dd96642692a155fb85104.tar.bz2
SledjHamr-f496ed1880d0140b171dd96642692a155fb85104.tar.xz
Make vectors and rotations parse.
Diffstat (limited to '')
-rw-r--r--LuaSL/src/LuaSL_lemon_yaccer.y5
1 files changed, 3 insertions, 2 deletions
diff --git a/LuaSL/src/LuaSL_lemon_yaccer.y b/LuaSL/src/LuaSL_lemon_yaccer.y
index eafab12..54af56d 100644
--- a/LuaSL/src/LuaSL_lemon_yaccer.y
+++ b/LuaSL/src/LuaSL_lemon_yaccer.y
@@ -190,12 +190,13 @@ expr(A) ::= LSL_KEY(B). { B->basicType = OT_key; A = B; }
190%nonassoc LSL_LIST. 190%nonassoc LSL_LIST.
191expr ::= LSL_BRACKET_OPEN exprList LSL_BRACKET_CLOSE. [LSL_BRACKET_OPEN] 191expr ::= LSL_BRACKET_OPEN exprList LSL_BRACKET_CLOSE. [LSL_BRACKET_OPEN]
192%nonassoc LSL_ROTATION. 192%nonassoc LSL_ROTATION.
193expr ::= LSL_ANGLE_OPEN expr LSL_COMMA expr LSL_COMMA expr LSL_COMMA expr LSL_ANGLE_CLOSE. [LSL_ANGLE_OPEN] 193// Uses the same symbol for less than, greater than, and the rotation / vector delimiters.
194expr ::= LSL_LESS_THAN expr LSL_COMMA expr LSL_COMMA expr LSL_COMMA expr LSL_GREATER_THAN. [LSL_ANGLE_OPEN]
194%nonassoc LSL_STRING. 195%nonassoc LSL_STRING.
195expr(A) ::= LSL_STRING(B). { B->basicType = OT_string; A = B; } 196expr(A) ::= LSL_STRING(B). { B->basicType = OT_string; A = B; }
196%nonassoc LSL_VECTOR. 197%nonassoc LSL_VECTOR.
197expr ::= LSL_VECTOR. 198expr ::= LSL_VECTOR.
198expr ::= LSL_ANGLE_OPEN expr LSL_COMMA expr LSL_COMMA expr LSL_ANGLE_CLOSE. [LSL_ANGLE_OPEN] 199expr ::= LSL_LESS_THAN expr LSL_COMMA expr LSL_COMMA expr LSL_GREATER_THAN. [LSL_ANGLE_OPEN]
199 200
200 201
201// Parser callbacks. 202// Parser callbacks.