Property | Type | Description | |
---|---|---|---|
DefaultPunctuation | idTech4.Text.LexerPunctuation[] |
Method | Description | |
---|---|---|
CheckTokenString ( string str ) : bool |
Checks if the next token matches the given string.
|
|
CheckTokenType ( TokenType type, TokenSubType subType ) : |
Reads the token when a token with the given type is available.
|
|
Error ( string format ) : void | ||
ExpectAnyToken ( ) : |
||
ExpectTokenString ( string str ) : bool | ||
ExpectTokenType ( TokenType type, TokenSubType subType ) : |
||
GetPunctuationFromID ( TokenSubType id ) : string | ||
LoadFile ( string fileName, bool osPath = false ) : bool | ||
LoadMemory ( string text, string name ) : bool |
Load a script from the given memory.
|
|
LoadMemory ( string text, string name, int startLine ) : bool |
Load a script from the given memory and a specified line offset, so source strings extracted from a file can still refer to proper line numbers in the file.
|
|
Parse1DMatrix ( int elementCount ) : float[] | ||
Parse2DMatrix ( int y, int x ) : ].float[ | ||
ParseBool ( ) : bool |
Parses a bool.
|
|
ParseFloat ( ) : float |
Parses a floating point number.
|
|
ParseFloat ( bool &errorFlag ) : float |
Parses a floating point number. If errorFlag is NULL, a non-numeric token will issue an Error(). If it isn't NULL, it will issue a Warning() and set *errorFlag = true. |
|
ParseInt ( ) : int |
Parses an int.
|
|
ParseRestOfLine ( ) : string | ||
ReadToken ( ) : idToken |
Reads the next token.
|
|
ReadTokenOnLine ( ) : idToken |
Read a token only if on the same line.
|
|
SkipBracedSection ( ) : bool |
Skips until a matching close brace is found.
|
|
SkipBracedSection ( bool parseFirstBrace ) : bool |
Skips until a matching close brace is found.
|
|
SkipRestOfLine ( ) : bool |
Skip the rest of the current line.
|
|
SkipUntilString ( string str ) : bool | ||
Warning ( string format ) : void | ||
idLexer ( ) : System | ||
idLexer ( LexerOptions options ) : System |
Method | Description | |
---|---|---|
CheckString ( string str ) : bool | ||
GetBufferCharacter ( int position ) : char | ||
ParseFloat ( bool &errorFlag, bool useErrorFlag ) : float | ||
ReadEscapeCharacter ( char &escapeCharacter ) : bool |
Reads two strings with only a white space between them as one string.
|
|
ReadName ( |
||
ReadNumber ( |
||
ReadPunctuation ( |
||
ReadString ( idToken token, char quote ) : bool | ||
ReadWhiteSpace ( ) : bool |
Reads spaces, tabs, C-like comments, etc. When a newline character is found the scripts line counter is increased. |
public CheckTokenString ( string str ) : bool | ||
str | string | |
return | bool |
public CheckTokenType ( TokenType type, TokenSubType subType ) : |
||
type | TokenType | |
subType | TokenSubType | |
return |
public ExpectTokenString ( string str ) : bool | ||
str | string | |
return | bool |
public ExpectTokenType ( TokenType type, TokenSubType subType ) : |
||
type | TokenType | |
subType | TokenSubType | |
return |
public GetPunctuationFromID ( TokenSubType id ) : string | ||
id | TokenSubType | |
return | string |
public LoadFile ( string fileName, bool osPath = false ) : bool | ||
fileName | string | |
osPath | bool | |
return | bool |
public LoadMemory ( string text, string name ) : bool | ||
text | string | |
name | string | |
return | bool |
public LoadMemory ( string text, string name, int startLine ) : bool | ||
text | string | |
name | string | |
startLine | int | |
return | bool |
public Parse1DMatrix ( int elementCount ) : float[] | ||
elementCount | int | |
return | float[] |
public Parse2DMatrix ( int y, int x ) : ].float[ | ||
y | int | |
x | int | |
return | ].float[ |
public ParseFloat ( bool &errorFlag ) : float | ||
errorFlag | bool | |
return | float |
public SkipBracedSection ( bool parseFirstBrace ) : bool | ||
parseFirstBrace | bool | |
return | bool |
public idLexer ( LexerOptions options ) : System | ||
options | LexerOptions | |
return | System |