diff options
author | David Walter Seikel | 2012-02-02 01:55:44 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-02-02 01:55:44 +1000 |
commit | 809530889811445b7fca3a57ce38efee196d1c22 (patch) | |
tree | 179cc1515705f051268b4c37215a440de4b85089 /LuaSL/src/LuaSL_LSL_tree.h | |
parent | Fix up single statement "blocks". (diff) | |
download | SledjHamr-809530889811445b7fca3a57ce38efee196d1c22.zip SledjHamr-809530889811445b7fca3a57ce38efee196d1c22.tar.gz SledjHamr-809530889811445b7fca3a57ce38efee196d1c22.tar.bz2 SledjHamr-809530889811445b7fca3a57ce38efee196d1c22.tar.xz |
Parse dot subbies.
Diffstat (limited to '')
-rw-r--r-- | LuaSL/src/LuaSL_LSL_tree.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/LuaSL/src/LuaSL_LSL_tree.h b/LuaSL/src/LuaSL_LSL_tree.h index 5e36c73..7791b10 100644 --- a/LuaSL/src/LuaSL_LSL_tree.h +++ b/LuaSL/src/LuaSL_LSL_tree.h | |||
@@ -211,6 +211,7 @@ struct _LSL_Parenthesis | |||
211 | struct _LSL_Identifier // For variables and function parameters. | 211 | struct _LSL_Identifier // For variables and function parameters. |
212 | { | 212 | { |
213 | LSL_Text name; | 213 | LSL_Text name; |
214 | const char *sub; | ||
214 | LSL_Leaf value; | 215 | LSL_Leaf value; |
215 | }; | 216 | }; |
216 | 217 | ||
@@ -411,7 +412,7 @@ LSL_Leaf *addTypecast(LSL_Leaf *lval, LSL_Leaf *type, LSL_Leaf *rval, LSL_Leaf * | |||
411 | LSL_Leaf *addVariable(LuaSL_compiler *compiler, LSL_Leaf *type, LSL_Leaf *identifier, LSL_Leaf *assignment, LSL_Leaf *expr); | 412 | LSL_Leaf *addVariable(LuaSL_compiler *compiler, LSL_Leaf *type, LSL_Leaf *identifier, LSL_Leaf *assignment, LSL_Leaf *expr); |
412 | 413 | ||
413 | LSL_Leaf *beginBlock(LuaSL_compiler *compiler, LSL_Leaf *block); | 414 | LSL_Leaf *beginBlock(LuaSL_compiler *compiler, LSL_Leaf *block); |
414 | LSL_Leaf *checkVariable(LuaSL_compiler *compiler, LSL_Leaf *identifier); | 415 | LSL_Leaf *checkVariable(LuaSL_compiler *compiler, LSL_Leaf *identifier, LSL_Leaf *dot, LSL_Leaf *sub); |
415 | LSL_Leaf *collectArguments(LuaSL_compiler *compiler, LSL_Leaf *list, LSL_Leaf *comma, LSL_Leaf *arg); | 416 | LSL_Leaf *collectArguments(LuaSL_compiler *compiler, LSL_Leaf *list, LSL_Leaf *comma, LSL_Leaf *arg); |
416 | LSL_Leaf *collectParameters(LuaSL_compiler *compiler, LSL_Leaf *list, LSL_Leaf *comma, LSL_Leaf *newParam); | 417 | LSL_Leaf *collectParameters(LuaSL_compiler *compiler, LSL_Leaf *list, LSL_Leaf *comma, LSL_Leaf *newParam); |
417 | LSL_Leaf *collectStatements(LuaSL_compiler *compiler, LSL_Leaf *list, LSL_Leaf *newStatement); | 418 | LSL_Leaf *collectStatements(LuaSL_compiler *compiler, LSL_Leaf *list, LSL_Leaf *newStatement); |