lscript_error.cpp File Reference

error reporting class and strings More...

#include "linden_common.h"
#include "lscript_error.h"

Include dependency graph for lscript_error.cpp:

Go to the source code of this file.

Variables

S32 gColumn = 0
S32 gLine = 0
S32 gInternalColumn = 0
S32 gInternalLine = 0
LLScriptGenerateErrorText gErrorToText
char * gWarningText [LSWARN_EOF]
char * gErrorText [LSERROR_EOF]


Detailed Description

error reporting class and strings

LicenseInfo
firstyear=2002&license=viewergpl

Copyright (c) 2002-2008, Linden Research, Inc.

Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlifegrid.net/programs/open_source/licensing/gplv2

There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlifegrid.net/programs/open_source/licensing/flossexception

By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.

ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$

Definition in file lscript_error.cpp.


Variable Documentation

S32 gColumn = 0

Definition at line 36 of file lscript_error.cpp.

char* gErrorText[LSERROR_EOF]

Initial value:

        
{
        "INVALID",
        "Syntax error",
        "Not all code paths return a value",
        "Function returns a value but return statement doesn't",
        "Return statement type doesn't match function return type",
        "Global functions can't change state",
        "Name previously declared within scope",
        "Name not defined within scope",
        "Type mismatch",
        "Expression must act on LValue",
        "Byte code assembly failed -- out of memory",
        "Function call mismatches type or number of arguments",
        "Use of vector or quaternion method on incorrect type",
        "Lists can't be included in lists",
        "Unitialized variables can't be included in lists",
        "Declaration requires a new scope -- use { and }"
}

Definition at line 58 of file lscript_error.cpp.

Referenced by LLScriptGenerateErrorText::writeError().

Definition at line 41 of file lscript_error.cpp.

Referenced by LLScriptScriptCodeChunk::build(), LLScriptState::gonext(), LLScriptGlobalFunctions::gonext(), LLScriptFunctionDec::gonext(), LLScriptEventHandler::gonext(), LLScriptStatement::gonext(), LLScriptExpression::gonext(), LLScriptScript::recurse(), LLScriptState::recurse(), LLScriptGlobalFunctions::recurse(), LLScriptFunctionDec::recurse(), LLScriptEventHandler::recurse(), LLScriptCompoundStatement::recurse(), LLScriptDeclaration::recurse(), LLScriptWhile::recurse(), LLScriptDoWhile::recurse(), LLScriptFor::recurse(), LLScriptIfElse::recurse(), LLScriptIf::recurse(), LLScriptExpressionStatement::recurse(), LLScriptReturn::recurse(), LLScriptLabel::recurse(), LLScriptJump::recurse(), LLScriptStateChange::recurse(), LLScriptNOOP::recurse(), LLScriptStatementSequence::recurse(), LLScriptConstantExpression::recurse(), LLScriptPrint::recurse(), LLScriptFunctionCall::recurse(), LLScriptPostDecrement::recurse(), LLScriptPostIncrement::recurse(), LLScriptListInitializer::recurse(), LLScriptQuaternionInitializer::recurse(), LLScriptVectorInitializer::recurse(), LLScriptTypeCast::recurse(), LLScriptPreDecrement::recurse(), LLScriptPreIncrement::recurse(), LLScriptBitNot::recurse(), LLScriptBooleanNot::recurse(), LLScriptUnaryMinus::recurse(), LLScriptParenthesis::recurse(), LLScriptShiftRight::recurse(), LLScriptShiftLeft::recurse(), LLScriptBooleanOr::recurse(), LLScriptBooleanAnd::recurse(), LLScriptBitXor::recurse(), LLScriptBitOr::recurse(), LLScriptBitAnd::recurse(), LLScriptMod::recurse(), LLScriptDivide::recurse(), LLScriptTimes::recurse(), LLScriptMinus::recurse(), LLScriptPlus::recurse(), LLScriptGreaterThan::recurse(), LLScriptLessThan::recurse(), LLScriptGreaterEquals::recurse(), LLScriptLessEquals::recurse(), LLScriptNotEquals::recurse(), LLScriptEquality::recurse(), LLScriptModAssignment::recurse(), LLScriptDivAssignment::recurse(), LLScriptMulAssignment::recurse(), LLScriptSubAssignment::recurse(), LLScriptAddAssignment::recurse(), LLScriptAssignment::recurse(), LLScriptLValue::recurse(), LLScriptListExpressionList::recurse(), LLScriptFuncExpressionList::recurse(), LLScriptForExpressionList::recurse(), LLScriptNotAtRotTarget::recurse(), LLScriptAtRotTarget::recurse(), LLScriptNotAtTarget::recurse(), LLScriptAtTarget::recurse(), LLScriptNoSensorEvent::recurse(), LLScriptRezEvent::recurse(), LLScriptEmailEvent::recurse(), LLScriptMoneyEvent::recurse(), LLScriptHTTPResponseEvent::recurse(), LLScriptRemoteEvent::recurse(), LLScriptLinkMessageEvent::recurse(), LLScriptControlEvent::recurse(), LLScriptObjectRezEvent::recurse(), LLScriptSensorEvent::recurse(), LLScriptChatEvent::recurse(), LLScriptRTPEvent::recurse(), LLScriptMovingEndEvent::recurse(), LLScriptMovingStartEvent::recurse(), LLScriptTimerEvent::recurse(), LLScriptDataserverEvent::recurse(), LLScriptAttachEvent::recurse(), LLScriptInventoryEvent::recurse(), LLScriptLandCollisionEndEvent::recurse(), LLScriptLandCollisionEvent::recurse(), LLScriptLandCollisionStartEvent::recurse(), LLScriptCollisionEndEvent::recurse(), LLScriptCollisionEvent::recurse(), LLScriptCollisionStartEvent::recurse(), LLScriptTouchEndEvent::recurse(), LLScriptTouchEvent::recurse(), LLScriptTouchStartEvent::recurse(), LLScriptStateExitEvent::recurse(), LLScriptStateEntryEvent::recurse(), LLScriptGlobalVariable::recurse(), LLScriptSAList::recurse(), LLScriptSAQuaternion::recurse(), LLScriptSAVector::recurse(), LLScriptSAConstant::recurse(), LLScriptSAIdentifier::recurse(), LLScriptSimpleAssignable::recurse(), LLScriptIdentifier::recurse(), LLScriptConstantString::recurse(), LLScriptConstantFloat::recurse(), LLScriptConstantInteger::recurse(), LLScriptConstant::recurse(), and LLScriptType::recurse().

Definition at line 38 of file lscript_error.cpp.

Definition at line 39 of file lscript_error.cpp.

S32 gLine = 0

Definition at line 37 of file lscript_error.cpp.

char* gWarningText[LSWARN_EOF]

Initial value:

                
{
        "INVALID",
        "Dead code found beyond return statement"
}

Definition at line 52 of file lscript_error.cpp.

Referenced by LLScriptGenerateErrorText::writeWarning().


Generated on Fri May 16 08:36:03 2008 for SecondLife by  doxygen 1.5.5