C# 클래스 Ancestry.QueryProcessor.Parse.Lexer

파일 보기 프로젝트 열기: Ancestry/DotQL 1 사용 예제들

공개 메소드들

메소드 설명
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