C# Class Laan.Sql.Parser.CustomTokenizer

Datei anzeigen Open project: benlaan/sqlformat Class Usage Examples

Public Methods

Method Description
ExpectBrackets ( ) : Laan.Sql.Parser.BracketStructure
ExpectToken ( string token ) : void

Verify current token matches expected token. Read next token if successful.

ExpectTokens ( string tokens ) : void

Verify current tokens match expected tokens. Read next token if successful.

IsNextToken ( ) : bool
ReadNextToken ( ) : void
TokenEquals ( string value ) : bool

Method Details

ExpectBrackets() public method

public ExpectBrackets ( ) : Laan.Sql.Parser.BracketStructure
return Laan.Sql.Parser.BracketStructure

ExpectToken() public method

Verify current token matches expected token. Read next token if successful.
current token did not match
public ExpectToken ( string token ) : void
token string Expected token
return void

ExpectTokens() public method

Verify current tokens match expected tokens. Read next token if successful.
current token did not match
public ExpectTokens ( string tokens ) : void
tokens string Expected tokens
return void

IsNextToken() public method

public IsNextToken ( ) : bool
return bool

ReadNextToken() public method

public ReadNextToken ( ) : void
return void

TokenEquals() public method

public TokenEquals ( string value ) : bool
value string
return bool