C# Class NetBase.Sql.Tokenizer

Does quite a lot of hard work to parse the query. Based on Jack Crenshaw's "Let's Build a compiler". I know, should really be using a parser generator, but the point is to learn how these kind of things work.
Afficher le fichier Open project: buttonpusher/NetBase Class Usage Examples

Méthodes publiques

Méthode Description
GetToken ( ) : void
Match ( string token ) : void
Tokenizer ( string stmt ) : System

Private Methods

Méthode Description
ChewSpace ( ) : void
GetChar ( ) : void
GetQuotedToken ( ) : string
MatchChar ( char token ) : void

Method Details

GetToken() public méthode

public GetToken ( ) : void
Résultat void

Match() public méthode

public Match ( string token ) : void
token string
Résultat void

Tokenizer() public méthode

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