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.
显示文件 Open project: buttonpusher/NetBase Class Usage Examples

Public Methods

Method Description
GetToken ( ) : void
Match ( string token ) : void
Tokenizer ( string stmt ) : System

Private Methods

Method Description
ChewSpace ( ) : void
GetChar ( ) : void
GetQuotedToken ( ) : string
MatchChar ( char token ) : void

Method Details

GetToken() public method

public GetToken ( ) : void
return void

Match() public method

public Match ( string token ) : void
token string
return void

Tokenizer() public method

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