C# Класс idTech4.Text.idScriptParser

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CheckTokenString ( string str ) : bool

Returns true if the next token equals the given string and removes the token from the source.

Error ( string format ) : void
ExpectAnyToken ( ) : idToken
ExpectTokenString ( string str ) : bool
ExpectTokenType ( TokenType type, TokenSubType subType ) : idToken
LoadFile ( string fileName, bool osPath ) : bool

Load the given source.

LoadMemory ( string content, string name ) : bool

Load the given source.

ParseBool ( ) : bool
ParseFloat ( ) : float
ParseInteger ( ) : int
ReadToken ( ) : idToken
SetMarker ( ) : void
UnreadToken ( idToken token ) : void
Warning ( string format ) : void
idScriptParser ( LexerOptions options ) : System

Приватные методы

Метод Описание
AddDefineToHash ( ScriptDefinition define, ScriptDefinition>.Dictionary dict ) : void
AddGlobalDefinesToSource ( ) : void
CopyDefine ( ScriptDefinition define ) : ScriptDefinition
Directive_Define ( ) : bool
Directive_Else ( ) : bool
Directive_ElseIf ( ) : bool
Directive_EndIf ( ) : bool
Directive_Error ( ) : bool
Directive_Eval ( ) : bool
Directive_EvalFloat ( ) : bool
Directive_If ( ) : bool
Directive_IfDefined ( ) : bool
Directive_IfDefinedActual ( IndentType type ) : bool
Directive_IfNotDefined ( ) : bool
Directive_Include ( ) : bool
Directive_Line ( ) : bool
Directive_Pragma ( ) : bool
Directive_UnDefine ( ) : bool
Directive_Warning ( ) : bool
DollarDirective_EvalFloat ( ) : bool
DollarDirective_EvalInt ( ) : bool
DollarEvaluate ( long &intValue, double &floatValue, bool integer ) : bool
Evaluate ( long &intValue, double &floatValue, bool integer ) : bool
FindDefineParameter ( ScriptDefinition define, string name ) : int
PopIndent ( IndentType &type, int &skip ) : void
PushIndent ( IndentType type, int skip ) : void
PushScript ( idLexer script ) : void
ReadDirective ( ) : bool
ReadDollarDirective ( ) : bool
ReadLine ( ) : idToken

Reads a token from the current line, continues reading on the next line only if a backslash '\' is found.

ReadSourceToken ( ) : idToken
UnreadSignToken ( ) : void
UnreadSourceToken ( idToken token ) : void

Описание методов

CheckTokenString() публичный Метод

Returns true if the next token equals the given string and removes the token from the source.
public CheckTokenString ( string str ) : bool
str string
Результат bool

Error() публичный Метод

public Error ( string format ) : void
format string
Результат void

ExpectAnyToken() публичный Метод

public ExpectAnyToken ( ) : idToken
Результат idToken

ExpectTokenString() публичный Метод

public ExpectTokenString ( string str ) : bool
str string
Результат bool

ExpectTokenType() публичный Метод

public ExpectTokenType ( TokenType type, TokenSubType subType ) : idToken
type TokenType
subType TokenSubType
Результат idToken

LoadFile() публичный Метод

Load the given source.
public LoadFile ( string fileName, bool osPath ) : bool
fileName string
osPath bool
Результат bool

LoadMemory() публичный Метод

Load the given source.
public LoadMemory ( string content, string name ) : bool
content string
name string
Результат bool

ParseBool() публичный Метод

public ParseBool ( ) : bool
Результат bool

ParseFloat() публичный Метод

public ParseFloat ( ) : float
Результат float

ParseInteger() публичный Метод

public ParseInteger ( ) : int
Результат int

ReadToken() публичный Метод

public ReadToken ( ) : idToken
Результат idToken

SetMarker() публичный Метод

public SetMarker ( ) : void
Результат void

UnreadToken() публичный Метод

public UnreadToken ( idToken token ) : void
token idToken
Результат void

Warning() публичный Метод

public Warning ( string format ) : void
format string
Результат void

idScriptParser() публичный Метод

public idScriptParser ( LexerOptions options ) : System
options LexerOptions
Результат System