C# Class Ancestry.QueryProcessor.Parse.Tokenizer

Afficher le fichier Open project: Ancestry/DotQL Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Advance ( ) : void
Résultat void

IsReservedWord() public static méthode

public static IsReservedWord ( string identifier ) : bool
identifier string
Résultat bool

IsValidIdentifier() public static méthode

public static IsValidIdentifier ( string subject ) : bool
subject string
Résultat bool

NextToken() public méthode

public NextToken ( ) : TokenType
Résultat TokenType

SkipComments() public méthode

Skips all comments and whitepace.
public SkipComments ( ) : void
Résultat void

SkipWhiteSpace() public méthode

Skips any whitespace.
public SkipWhiteSpace ( ) : void
Résultat void

Tokenizer() public méthode

public Tokenizer ( string input ) : System
input string
Résultat System