Categorygithub.com/winkyao/parser
modulepackage
0.0.0-20181102070703-4acd198f5092
Repository: https://github.com/winkyao/parser.git
Documentation: pkg.go.dev

# README

parser

TiDB SQL Parser

# Packages

Package ast is the abstract syntax tree parsed from a SQL statement by parser.
No description provided by the author
No description provided by the author
No description provided by the author
Goyacc is a version of yacc generating Go parsers.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

New returns a Parser object.
NewScanner returns a new scanner object.
ParseErrorWith returns "You have a syntax error near..." error message compatible with mysql.
TrimComment trim comment for special comment code of MySQL.

# Variables

ErrParse returns for sql parse error.
ErrSyntax returns for sql syntax error.
SpecFieldPattern special result field pattern.

# Structs

Parser represents a parser instance.
Pos represents the position of a token.
Scanner implements the yyLexer interface.