lscript_error.h File Reference

error reporting class and strings More...

#include "lscript_scope.h"

Include dependency graph for lscript_error.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  LLScriptFilePosition
class  LLScriptGenerateErrorText

Typedefs

typedef enum e_lscript_compile_pass LSCRIPTCompilePass
typedef enum e_lscript_prune_type LSCRIPTPruneType
typedef enum e_lscript_warnings LSCRIPTWarnings
typedef enum e_lscript_errors LSCRIPTErrors

Enumerations

enum  e_lscript_compile_pass {
  LSCP_INVALID, LSCP_PRETTY_PRINT, LSCP_PRUNE, LSCP_SCOPE_PASS1,
  LSCP_SCOPE_PASS2, LSCP_TYPE, LSCP_RESOURCE, LSCP_EMIT_ASSEMBLY,
  LSCP_EMIT_BYTE_CODE, LSCP_DETERMINE_HANDLERS, LSCP_LIST_BUILD_SIMPLE, LSCP_TO_STACK,
  LSCP_BUILD_FUNCTION_ARGS, LSCP_EMIT_CIL_ASSEMBLY, LSCP_EOF
}
enum  e_lscript_prune_type {
  LSPRUNE_INVALID, LSPRUNE_GLOBAL_VOIDS, LSPRUNE_GLOBAL_NON_VOIDS, LSPRUNE_EVENTS,
  LSPRUNE_DEAD_CODE, LSPRUNE_EOF
}
enum  e_lscript_warnings { LSWARN_INVALID, LSWARN_DEAD_CODE, LSWARN_EOF }
enum  e_lscript_errors {
  LSERROR_INVALID, LSERROR_SYNTAX_ERROR, LSERROR_NO_RETURN, LSERROR_INVALID_VOID_RETURN,
  LSERROR_INVALID_RETURN, LSERROR_STATE_CHANGE_IN_GLOBAL, LSERROR_DUPLICATE_NAME, LSERROR_UNDEFINED_NAME,
  LSERROR_TYPE_MISMATCH, LSERROR_EXPRESSION_ON_LVALUE, LSERROR_ASSEMBLE_OUT_OF_MEMORY, LSERROR_FUNCTION_TYPE_ERROR,
  LSERROR_VECTOR_METHOD_ERROR, LSERROR_NO_LISTS_IN_LISTS, LSERROR_NO_UNITIALIZED_VARIABLES_IN_LISTS, LSERROR_NEED_NEW_SCOPE,
  LSERROR_EOF
}

Variables

S32 gColumn
S32 gLine
S32 gInternalColumn
S32 gInternalLine
LLScriptGenerateErrorText gErrorToText


Detailed Description

error reporting class and strings

LicenseInfo
firstyear=2002&license=viewergpl

Copyright (c) 2002-2007, 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://secondlife.com/developers/opensource/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://secondlife.com/developers/opensource/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.h.


Typedef Documentation

typedef enum e_lscript_compile_pass LSCRIPTCompilePass

typedef enum e_lscript_errors LSCRIPTErrors

typedef enum e_lscript_prune_type LSCRIPTPruneType

typedef enum e_lscript_warnings LSCRIPTWarnings


Enumeration Type Documentation

enum e_lscript_compile_pass

Enumerator:
LSCP_INVALID 
LSCP_PRETTY_PRINT 
LSCP_PRUNE 
LSCP_SCOPE_PASS1 
LSCP_SCOPE_PASS2 
LSCP_TYPE 
LSCP_RESOURCE 
LSCP_EMIT_ASSEMBLY 
LSCP_EMIT_BYTE_CODE 
LSCP_DETERMINE_HANDLERS 
LSCP_LIST_BUILD_SIMPLE 
LSCP_TO_STACK 
LSCP_BUILD_FUNCTION_ARGS 
LSCP_EMIT_CIL_ASSEMBLY 
LSCP_EOF 

Definition at line 37 of file lscript_error.h.

enum e_lscript_errors

Enumerator:
LSERROR_INVALID 
LSERROR_SYNTAX_ERROR 
LSERROR_NO_RETURN 
LSERROR_INVALID_VOID_RETURN 
LSERROR_INVALID_RETURN 
LSERROR_STATE_CHANGE_IN_GLOBAL 
LSERROR_DUPLICATE_NAME 
LSERROR_UNDEFINED_NAME 
LSERROR_TYPE_MISMATCH 
LSERROR_EXPRESSION_ON_LVALUE 
LSERROR_ASSEMBLE_OUT_OF_MEMORY 
LSERROR_FUNCTION_TYPE_ERROR 
LSERROR_VECTOR_METHOD_ERROR 
LSERROR_NO_LISTS_IN_LISTS 
LSERROR_NO_UNITIALIZED_VARIABLES_IN_LISTS 
LSERROR_NEED_NEW_SCOPE 
LSERROR_EOF 

Definition at line 109 of file lscript_error.h.

enum e_lscript_prune_type

Enumerator:
LSPRUNE_INVALID 
LSPRUNE_GLOBAL_VOIDS 
LSPRUNE_GLOBAL_NON_VOIDS 
LSPRUNE_EVENTS 
LSPRUNE_DEAD_CODE 
LSPRUNE_EOF 

Definition at line 56 of file lscript_error.h.

enum e_lscript_warnings

Enumerator:
LSWARN_INVALID 
LSWARN_DEAD_CODE 
LSWARN_EOF 

Definition at line 102 of file lscript_error.h.


Variable Documentation

S32 gColumn

Definition at line 36 of file lscript_error.cpp.

LLScriptGenerateErrorText gErrorToText

Definition at line 41 of file lscript_error.cpp.

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

S32 gInternalColumn

Definition at line 38 of file lscript_error.cpp.

S32 gInternalLine

Definition at line 39 of file lscript_error.cpp.

S32 gLine

Definition at line 37 of file lscript_error.cpp.


Generated on Thu Jul 1 06:10:52 2010 for Second Life Viewer by  doxygen 1.4.7