C# Class Ancestry.QueryProcessor.Parse.Tokenizer

Datei anzeigen Open project: Ancestry/DotQL Class Usage Examples

Public Methods

Method Description
Advance ( ) : void
IsReservedWord ( string identifier ) : bool
IsValidIdentifier ( string subject ) : bool
NextToken ( ) : TokenType
SkipComments ( ) : void

Skips all comments and whitepace.

SkipWhiteSpace ( ) : void

Skips any whitespace.

Tokenizer ( string input ) : System

Private Methods

Method Description
ExceedsInt32 ( StringBuilder builder ) : bool
ExceedsInt32Hex ( StringBuilder builder ) : bool
IsSymbol ( char charValue ) : bool
ReadNext ( ) : void

Pre-reads the next TokenType (does not affect current).

SkipLineComments ( ) : bool Used internally by SkipComments().

Method Details

Advance() public method

public Advance ( ) : void
return void

IsReservedWord() public static method

public static IsReservedWord ( string identifier ) : bool
identifier string
return bool

IsValidIdentifier() public static method

public static IsValidIdentifier ( string subject ) : bool
subject string
return bool

NextToken() public method

public NextToken ( ) : TokenType
return TokenType

SkipComments() public method

Skips all comments and whitepace.
public SkipComments ( ) : void
return void

SkipWhiteSpace() public method

Skips any whitespace.
public SkipWhiteSpace ( ) : void
return void

Tokenizer() public method

public Tokenizer ( string input ) : System
input string
return System