Property | Type | Description | |
---|---|---|---|
Advance | void | ||
Bump | void | ||
Bump | void | ||
Bump | void | ||
EatBlockComment | void | ||
EatLineComment | void | ||
ExpectAndAdvance | void | ||
GetLocation | |||
GetSpan | |||
GetString | string | ||
IsCommentStart | bool | ||
IsNotIdentStart | bool | ||
IsOpIdentStart | bool | ||
LexCharLiteral | uint | ||
LexCharLiteralOrSymbol | |||
LexEscapeSequence | uint | ||
LexIdentOperator | |||
LexIdentStr | string | ||
LexNumLiteral | |||
LexOperator | |||
LexOptionalNumSuffix | string | ||
LexPrefixedInt | string | ||
LexStrLiteral | string | ||
Peek | char | ||
Peek | char |
Method | Description | |
---|---|---|
GetToken ( ) : |
||
LexerState ( |
Method | Description | |
---|---|---|
Advance ( ) : void | ||
Bump ( ) : void |
Appends the current character to the string builder and advances to the next character.
|
|
Bump ( char c ) : void |
Appends the given character and does not advance to the next character.
|
|
Bump ( uint c ) : void |
Appends the given character as utf-32 and does not advance to the next character.
|
|
EatBlockComment ( ) : void | ||
EatLineComment ( ) : void | ||
ExpectAndAdvance ( char e ) : void | ||
GetLocation ( ) : |
||
GetSpan ( ) : |
||
GetString ( ) : string | ||
IsCommentStart ( ) : bool | ||
IsNotIdentStart ( ) : bool | ||
IsOpIdentStart ( ) : bool | ||
LexCharLiteral ( bool &fail ) : uint | ||
LexCharLiteralOrSymbol ( ) : |
||
LexEscapeSequence ( bool &fail ) : uint | ||
LexIdentOperator ( ) : |
||
LexIdentStr ( ) : string | ||
LexNumLiteral ( ) : |
||
LexOperator ( ) : |
||
LexOptionalNumSuffix ( ) : string |
Optionally lexes a suffix (basically, just an identifier) after a number. This is used to determine the type of the literal. The built in numeric types are the only types that expect suffixes by default. Those types are ((u|i)(8|16|32|64))|f(16|32|64)).
|
|
LexPrefixedInt ( int radix ) : string | ||
LexStrLiteral ( bool verbatim ) : string | ||
Peek ( ) : char | ||
Peek ( int offset ) : char |
public LexerState ( |
||
log | ||
fileName | string | |
encoding | ||
return | System |