Breaks a string into a series of tokens to use for parsing the debug consoles command language
More...
|
| MBConsoleLexer () |
| Initializes a new instance of the T:MidnightBlue.MBConsoleLexer class. More...
|
|
void | Lex (string command) |
| Lexes the command string breaking it up into token representation and a second raw string array for retrieving values. More...
|
|
string | RawToken (int index) |
| Gets an untokenized representation of a string at a specific index More...
|
|
Token | NextToken () |
| Gets the next token in the tokenized representation of the command More...
|
|
Breaks a string into a series of tokens to use for parsing the debug consoles command language
§ MBConsoleLexer()
MB2D.MBConsoleLexer.MBConsoleLexer |
( |
| ) |
|
|
inline |
Initializes a new instance of the T:MidnightBlue.MBConsoleLexer class.
§ Lex()
void MB2D.MBConsoleLexer.Lex |
( |
string |
command | ) |
|
|
inline |
Lexes the command string breaking it up into token representation and a second raw string array for retrieving values.
- Parameters
-
command | Command string to scan. |
§ NextToken()
Token MB2D.MBConsoleLexer.NextToken |
( |
| ) |
|
|
inline |
Gets the next token in the tokenized representation of the command
The next token.
§ RawToken()
string MB2D.MBConsoleLexer.RawToken |
( |
int |
index | ) |
|
|
inline |
Gets an untokenized representation of a string at a specific index
- Returns
- The string representation.
- Parameters
-
§ CurrentPos
int MB2D.MBConsoleLexer.CurrentPos |
|
get |
Gets the current token index in the lexer
The current position.
§ NextPos
int MB2D.MBConsoleLexer.NextPos |
|
get |
Gets the next token index in the lexer
The next position.
§ NumTokens
int MB2D.MBConsoleLexer.NumTokens |
|
get |
Gets the number of tokens scanned.
The number of tokens.
The documentation for this class was generated from the following file:
- MB2D/src/MBConsole/MBConsoleLexer.cs