aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/lscript/lscript_compile
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/lscript/lscript_compile')
-rw-r--r--linden/indra/lscript/lscript_compile/indra.l10
-rw-r--r--linden/indra/lscript/lscript_compile/indra.y1
-rw-r--r--linden/indra/lscript/lscript_compile/lscript_tree.cpp8
3 files changed, 16 insertions, 3 deletions
diff --git a/linden/indra/lscript/lscript_compile/indra.l b/linden/indra/lscript/lscript_compile/indra.l
index 0beffe5..afd7e1a 100644
--- a/linden/indra/lscript/lscript_compile/indra.l
+++ b/linden/indra/lscript/lscript_compile/indra.l
@@ -227,6 +227,16 @@ extern "C" { int yyerror(const char *fmt, ...); }
227"CHANGED_REGION" { count(); yylval.ival = 0x100; return(INTEGER_CONSTANT); } 227"CHANGED_REGION" { count(); yylval.ival = 0x100; return(INTEGER_CONSTANT); }
228"CHANGED_TELEPORT" { count(); yylval.ival = 0x200; return(INTEGER_CONSTANT); } 228"CHANGED_TELEPORT" { count(); yylval.ival = 0x200; return(INTEGER_CONSTANT); }
229 229
230"OBJECT_UNKOWN_DETAIL" { count(); yylval.ival = OBJECT_UNKOWN_DETAIL; return(INTEGER_CONSTANT); }
231"OBJECT_NAME" { count(); yylval.ival = OBJECT_NAME; return(INTEGER_CONSTANT); }
232"OBJECT_DESC" { count(); yylval.ival = OBJECT_DESC; return(INTEGER_CONSTANT); }
233"OBJECT_POS" { count(); yylval.ival = OBJECT_POS; return(INTEGER_CONSTANT); }
234"OBJECT_ROT" { count(); yylval.ival = OBJECT_ROT; return(INTEGER_CONSTANT); }
235"OBJECT_VELOCITY" { count(); yylval.ival = OBJECT_VELOCITY; return(INTEGER_CONSTANT); }
236"OBJECT_OWNER" { count(); yylval.ival = OBJECT_OWNER; return(INTEGER_CONSTANT); }
237"OBJECT_GROUP" { count(); yylval.ival = OBJECT_GROUP; return(INTEGER_CONSTANT); }
238"OBJECT_CREATOR" { count(); yylval.ival = OBJECT_CREATOR; return(INTEGER_CONSTANT); }
239
230"TYPE_INTEGER" { count(); yylval.ival = LST_INTEGER; return(INTEGER_CONSTANT); } 240"TYPE_INTEGER" { count(); yylval.ival = LST_INTEGER; return(INTEGER_CONSTANT); }
231"TYPE_FLOAT" { count(); yylval.ival = LST_FLOATINGPOINT; return(INTEGER_CONSTANT); } 241"TYPE_FLOAT" { count(); yylval.ival = LST_FLOATINGPOINT; return(INTEGER_CONSTANT); }
232"TYPE_STRING" { count(); yylval.ival = LST_STRING; return(INTEGER_CONSTANT); } 242"TYPE_STRING" { count(); yylval.ival = LST_STRING; return(INTEGER_CONSTANT); }
diff --git a/linden/indra/lscript/lscript_compile/indra.y b/linden/indra/lscript/lscript_compile/indra.y
index 49d0c38..56f40c9 100644
--- a/linden/indra/lscript/lscript_compile/indra.y
+++ b/linden/indra/lscript/lscript_compile/indra.y
@@ -53,7 +53,6 @@
53%token QUATERNION 53%token QUATERNION
54%token LIST 54%token LIST
55 55
56%token STATE_DEFAULT
57%token STATE 56%token STATE
58%token EVENT 57%token EVENT
59%token JUMP 58%token JUMP
diff --git a/linden/indra/lscript/lscript_compile/lscript_tree.cpp b/linden/indra/lscript/lscript_compile/lscript_tree.cpp
index df679ed..075418d 100644
--- a/linden/indra/lscript/lscript_compile/lscript_tree.cpp
+++ b/linden/indra/lscript/lscript_compile/lscript_tree.cpp
@@ -8957,8 +8957,12 @@ void LLScriptEventHandler::recurse(FILE *fp, S32 tabs, S32 tabsize, LSCRIPTCompi
8957 { 8957 {
8958 entrycount = 0; 8958 entrycount = 0;
8959 mStatement->recurse(fp, tabs, tabsize, pass, ptype, prunearg, scope, type, basetype, count, chunk, heap, stacksize, mScopeEntry, entrycount, NULL); 8959 mStatement->recurse(fp, tabs, tabsize, pass, ptype, prunearg, scope, type, basetype, count, chunk, heap, stacksize, mScopeEntry, entrycount, NULL);
8960 fprintf(fp, "Function Args: %s\n", mScopeEntry->mFunctionArgs.mString); 8960
8961 fprintf(fp, "Local List: %s\n", mScopeEntry->mLocals.mString); 8961 const char *function_args = mScopeEntry->mFunctionArgs.mString;
8962 fprintf(fp, "Function Args: %s\n", function_args?function_args:"");
8963
8964 const char *local_list = mScopeEntry->mLocals.mString;
8965 fprintf(fp, "Local List: %s\n", local_list?local_list:"");
8962 } 8966 }
8963 mStackSpace = (S32)count; 8967 mStackSpace = (S32)count;
8964 break; 8968 break;