C# Класс Ancestry.QueryProcessor.Parse.Lexer

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
ReadNext ( int index ) : bool

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

Описание методов

Lexer() публичный Метод

It is an error to access the current TokenType until NextToken has been called.
public Lexer ( string input ) : System
input string
Результат System

NextToken() публичный Метод

Advances the current token.
public NextToken ( ) : LexerToken
Результат LexerToken

PeekToken() публичный Метод

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
Результат LexerToken

PeekTokenSymbol() публичный Метод

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
Результат string

this() публичный Метод

public this ( int index ) : LexerToken
index int
Результат LexerToken

this() публичный Метод

The token a specific number of tokens ahead of the current token.
public this ( int index, bool checkActive ) : LexerToken
index int
checkActive bool
Результат LexerToken