diff options
author | David Walter Seikel | 2012-01-23 21:06:45 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-23 21:06:45 +1000 |
commit | ff427d3acb589ce4abb0366493c5a96e7754754a (patch) | |
tree | 32add140c31a4891a2a6026f00dcb8f2ea20872f /LuaSL/src | |
parent | Tweak the whitespace output a bit. (diff) | |
download | SledjHamr-ff427d3acb589ce4abb0366493c5a96e7754754a.zip SledjHamr-ff427d3acb589ce4abb0366493c5a96e7754754a.tar.gz SledjHamr-ff427d3acb589ce4abb0366493c5a96e7754754a.tar.bz2 SledjHamr-ff427d3acb589ce4abb0366493c5a96e7754754a.tar.xz |
Document the new parser conflict.
Diffstat (limited to 'LuaSL/src')
-rw-r--r-- | LuaSL/src/LuaSL_lemon_yaccer.y | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/LuaSL/src/LuaSL_lemon_yaccer.y b/LuaSL/src/LuaSL_lemon_yaccer.y index a9caaa4..5995cab 100644 --- a/LuaSL/src/LuaSL_lemon_yaccer.y +++ b/LuaSL/src/LuaSL_lemon_yaccer.y | |||
@@ -196,6 +196,7 @@ expr(A) ::= LSL_INTEGER(B). { B->basicType = OT_integer; A = B; } | |||
196 | expr(A) ::= LSL_KEY(B). { B->basicType = OT_key; A = B; } | 196 | expr(A) ::= LSL_KEY(B). { B->basicType = OT_key; A = B; } |
197 | %nonassoc LSL_LIST. | 197 | %nonassoc LSL_LIST. |
198 | expr(A) ::= LSL_BRACKET_OPEN(B) exprList LSL_BRACKET_CLOSE. [LSL_BRACKET_OPEN] { B->basicType = OT_list; A = B; } // Probably need a specific addList(). | 198 | expr(A) ::= LSL_BRACKET_OPEN(B) exprList LSL_BRACKET_CLOSE. [LSL_BRACKET_OPEN] { B->basicType = OT_list; A = B; } // Probably need a specific addList(). |
199 | // This causes a parsing conflict. How? | ||
199 | expr(A) ::= LSL_BRACKET_OPEN(B) LSL_BRACKET_CLOSE. [LSL_BRACKET_OPEN] { B->basicType = OT_list; A = B; } | 200 | expr(A) ::= LSL_BRACKET_OPEN(B) LSL_BRACKET_CLOSE. [LSL_BRACKET_OPEN] { B->basicType = OT_list; A = B; } |
200 | %nonassoc LSL_ROTATION. | 201 | %nonassoc LSL_ROTATION. |
201 | // Uses the same symbol for less than, greater than, and the rotation / vector delimiters. | 202 | // Uses the same symbol for less than, greater than, and the rotation / vector delimiters. |