C# 클래스 idTech4.Text.idScriptParser

파일 보기 프로젝트 열기: iainmckay/idtech4.net 1 사용 예제들

공개 메소드들

메소드 설명
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