C# Class Ancestry.QueryProcessor.Parse.Lexer

Afficher le fichier Open project: Ancestry/DotQL Class Usage Examples

Méthodes publiques

Méthode Description
Lexer ( string input ) : System It is an error to access the current TokenType until NextToken has been called.
NextToken ( ) : LexerToken

Advances the current token.

PeekToken ( int count ) : LexerToken

Gets the symbol the specified number of tokens ahead without advancing the current token.

If the token is not a symbol, returns an empty string.

PeekTokenSymbol ( int count ) : string

Gets the symbol the specified number of tokens ahead without advancing the current token.

If the token is not a symbol, returns an empty string.

this ( int index ) : LexerToken
this ( int index, bool checkActive ) : LexerToken

The token a specific number of tokens ahead of the current token.

Private Methods

Méthode Description
ReadNext ( int index ) : bool

Reads the next token into the specified location within the buffer.

Method Details

Lexer() public méthode

It is an error to access the current TokenType until NextToken has been called.
public Lexer ( string input ) : System
input string
Résultat System

NextToken() public méthode

Advances the current token.
public NextToken ( ) : LexerToken
Résultat LexerToken

PeekToken() public méthode

Gets the symbol the specified number of tokens ahead without advancing the current token.
If the token is not a symbol, returns an empty string.
public PeekToken ( int count ) : LexerToken
count int
Résultat LexerToken

PeekTokenSymbol() public méthode

Gets the symbol the specified number of tokens ahead without advancing the current token.
If the token is not a symbol, returns an empty string.
public PeekTokenSymbol ( int count ) : string
count int
Résultat string

this() public méthode

public this ( int index ) : LexerToken
index int
Résultat LexerToken

this() public méthode

The token a specific number of tokens ahead of the current token.
public this ( int index, bool checkActive ) : LexerToken
index int
checkActive bool
Résultat LexerToken