Scanner¶
-
class
Scanner
: System.Object -
string
Input
-
int
StartPos
-
int
EndPos
-
string
CurrentFile
-
int
CurrentLine
-
int
CurrentColumn
-
int
CurrentPosition
-
System.Collections.Generic.List<Token>
Skipped
-
System.Collections.Generic.Dictionary<TokenType, Regex>
Patterns
-
public void
Init
(string input) Parameters: - input (string) –
-
public void
Init
(string input, string fileName) Parameters: - input (string) –
- fileName (string) –
-
public Token
Scan
(TwoMGFX.TokenType[] expectedtokens) executes a lookahead of the next token and will advance the scan on the input string
Parameters: - expectedtokens (TwoMGFX.TokenType[]) –
Returns:
-
public Token
LookAhead
(TwoMGFX.TokenType[] expectedtokens) returns token with longest best match
Parameters: - expectedtokens (TwoMGFX.TokenType[]) –
Returns:
-
string