C# Class VBF.Compilers.Scanners.Lexeme

Mostrar archivo Open project: Ninputer/VBF Class Usage Examples

Public Methods

Method Description
CreateEmptyLexeme ( ) : Lexeme
GetErrorCorrectionLexeme ( int expectedTokenIndex, string expectedValue ) : Lexeme
GetTokenIndex ( int lexerState ) : int
ToContentString ( ) : string

Generates the content string of this lexeme.

Private Methods

Method Description
Lexeme ( VBF.Compilers.Scanners.ScannerInfo scannerInfo, int state, SourceSpan span, string content ) : System
SetTrivia ( IReadOnlyList trivia ) : void

Method Details

CreateEmptyLexeme() public static method

public static CreateEmptyLexeme ( ) : Lexeme
return Lexeme

GetErrorCorrectionLexeme() public method

public GetErrorCorrectionLexeme ( int expectedTokenIndex, string expectedValue ) : Lexeme
expectedTokenIndex int
expectedValue string
return Lexeme

GetTokenIndex() public method

public GetTokenIndex ( int lexerState ) : int
lexerState int
return int

ToContentString() public method

Generates the content string of this lexeme.
public ToContentString ( ) : string
return string