Documentation ¶
Index ¶
- type Lexer
- func (l *Lexer) AppendError(err error)
- func (l *Lexer) AppendWarn(err error)
- func (l *Lexer) Errorf(format string, a ...interface{}) (err error)
- func (l *Lexer) Errors() (warns []error, errs []error)
- func (l *Lexer) InheritScanner(sql string) *Lexer
- func (l *Lexer) Lex(v *yySymType) int
- func (l *Lexer) LexLiteral() interface{}
- type Parser
- type Pos
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lexer ¶
type Lexer struct {
// contains filtered or unexported fields
}
Lexer implements the yyLexer interface.
func (*Lexer) AppendError ¶
AppendError sets error into scanner. Lexer satisfies yyLexer interface which need this function.
func (*Lexer) AppendWarn ¶
AppendWarn sets warning into scanner.
func (*Lexer) Errorf ¶
Errorf tells scanner something is wrong. Lexer satisfies yyLexer interface which need this function.
func (*Lexer) InheritScanner ¶
InheritScanner returns a new scanner object which inherits configurations from the parent scanner.
func (*Lexer) Lex ¶
Lex returns a token and store the token value in v. Lexer satisfies yyLexer interface. 0 and invalid are special token id this function would return: return 0 tells parser that scanner meets EOF, return invalid tells parser that scanner meets illegal character.
func (*Lexer) LexLiteral ¶
func (l *Lexer) LexLiteral() interface{}
LexLiteral returns the value of the converted literal
Directories ¶
Path | Synopsis |
---|---|
Package ast is the abstract syntax tree parsed from a SQL statement by parser.
|
Package ast is the abstract syntax tree parsed from a SQL statement by parser. |
Goyacc is a version of yacc generating Go parsers.
|
Goyacc is a version of yacc generating Go parsers. |