C# Class Ancestry.QueryProcessor.Parse.LexerToken

Show file Open project: Ancestry/DotQL Class Usage Examples

Public Properties

Property Type Description
Error System.Exception
Line int
LinePos int
Token string
Type TokenType

Public Methods

Method Description
CheckSymbol ( string symbol ) : void

Ensures that the current TokenType is a symbol equal to the given symbol.

Will raise a LexerException if it is not.

CheckType ( TokenType token ) : void

Ensures that the current TokenType is of the given type.

Will raise a LexerException if it is not.

DebugCheckSymbol ( string symbol ) : void
DebugCheckType ( TokenType token ) : void
IsSymbol ( string symbol ) : bool

Return true if the token's type is Symbol it matches the given symbol.

Method Details

CheckSymbol() public method

Ensures that the current TokenType is a symbol equal to the given symbol.
Will raise a LexerException if it is not.
public CheckSymbol ( string symbol ) : void
symbol string
return void

CheckType() public method

Ensures that the current TokenType is of the given type.
Will raise a LexerException if it is not.
public CheckType ( TokenType token ) : void
token TokenType
return void

DebugCheckSymbol() public method

public DebugCheckSymbol ( string symbol ) : void
symbol string
return void

DebugCheckType() public method

public DebugCheckType ( TokenType token ) : void
token TokenType
return void

IsSymbol() public method

Return true if the token's type is Symbol it matches the given symbol.
public IsSymbol ( string symbol ) : bool
symbol string
return bool

Property Details

Error public property

public Exception,System Error
return System.Exception

Line public property

public int Line
return int

LinePos public property

public int LinePos
return int

Token public property

public string Token
return string

Type public property

public TokenType Type
return TokenType