C# Class Ancestry.QueryProcessor.Parse.LexerToken

Datei anzeigen 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_oe property

public Exception,System Error
return System.Exception

Line public_oe property

public int Line
return int

LinePos public_oe property

public int LinePos
return int

Token public_oe property

public string Token
return string

Type public_oe property

public TokenType Type
return TokenType