Versions in this module Expand all Collapse all v0 v0.0.1 Oct 1, 2021 Changes in this version + const T_AND + const T_ASC + const T_COMMENT + const T_CONSTANT_STRING + const T_COUNT + const T_DESC + const T_DNUMBER + const T_DOC_COMMENT + const T_EQUAL + const T_FROM + const T_GREATER + const T_GREATER_OR_EQUAL + const T_LIMIT + const T_LNUMBER + const T_NOT + const T_NOT_EQUAL + const T_OBJECT_OPERATOR + const T_OFFSET + const T_OR + const T_ORDER_BY + const T_SELECT + const T_SMALLER + const T_SMALLER_OR_EQUAL + const T_STRING + const T_VARIABLE + const T_WHERE + const T_WHITESPACE + const T_WITH + const T_XOR + type ArgumentList struct + Arguments []ast.Node + CloseParenthesisTkn *token.Token + EllipsisTkn *token.Token + OpenParenthesisTkn *token.Token + Pos *position.Pos + SeparatorTkns []*token.Token + func (n *ArgumentList) GetPos() *position.Pos + func (n *ArgumentList) Walk(v ast.Visitor) + type Builder struct + Parser *Parser + Pos *position.Builder + func NewBuilder(pos *position.Builder, parser *Parser) *Builder + func (b *Builder) AppendToSeparatedList(list ast.Node, tkn *token.Token, node ast.Node) *ast.CommaSeparatedList + func (b *Builder) NewBasicLit(LiteralTkn *token.Token) *ast.BasicLit + func (b *Builder) NewBinaryExpr(Left ast.Node, OpTkn *token.Token, Right ast.Node) *ast.BinaryExpr + func (b *Builder) NewComparisonExpr(Variable ast.Node, OpTkn *token.Token, Expr ast.Node) *ast.ComparisonExpr + func (b *Builder) NewEmptySeparatedList() *ast.CommaSeparatedList + func (b *Builder) NewFromExpr(FromTkn *token.Token, From ast.Node) *ast.FromExpr + func (b *Builder) NewIdentifier(IdentifierTkn *token.Token) *ast.Identifier + func (b *Builder) NewLimitExpr(LimitTkn *token.Token, Value ast.Node) *ast.LimitExpr + func (b *Builder) NewMethodCallExpr(Variable ast.Node, OpTkn *token.Token, MethodName *token.Token, ...) *ast.MethodCallExpr + func (b *Builder) NewNonEmptySeparatedList(nodes []ast.Node, tkns []*token.Token) *ast.CommaSeparatedList + func (b *Builder) NewNotExpr(NotTkn *token.Token, Expr ast.Node) *ast.NotExpr + func (b *Builder) NewOrderByExpr(OrderByTkn *token.Token, Value ast.Node, DescOrAscTkn *token.Token) *ast.OrderByExpr + func (b *Builder) NewRoot(Stmts []ast.Node) *ast.Root + func (b *Builder) NewSelectExpr(SelectTkn *token.Token, Select ast.Node, FromExpr ast.Node, WhereExpr ast.Node, ...) *ast.SelectExpr + func (b *Builder) NewSelectSubjectExpr(List ast.Node, Count *token.Token, Star *token.Token) *ast.SelectSubjectExpr + func (b *Builder) NewSeparatedList(node ast.Node) *ast.CommaSeparatedList + func (b *Builder) NewSeparatedListWithTwoElements(node1 ast.Node, tkn *token.Token, node2 ast.Node) *ast.CommaSeparatedList + func (b *Builder) NewVariable(VariableTkn *token.Token) *ast.Variable + func (b *Builder) NewWhereExpr(WhereTkn *token.Token, Expr ast.Node) *ast.WhereExpr + func (b *Builder) NewWithExpr(WithTkn *token.Token, WithList ast.Node) *ast.WithExpr + func (b *Builder) SeparatedListItems(list ast.Node) (items []ast.Node, sepTkns []*token.Token) + type EnumCaseExpr struct + AssignTkn *token.Token + Expr ast.Node + Pos *position.Pos + func (n *EnumCaseExpr) GetPos() *position.Pos + func (n *EnumCaseExpr) Walk(v ast.Visitor) + type Lexer struct + func NewLexer(data []byte, config conf.Config) *Lexer + func (lex *Lexer) Lex() *token.Token + type NewLines struct + func (nl *NewLines) Append(p int) + func (nl *NewLines) GetLine(p int) int + type Parser struct + Lexer *Lexer + func NewParser(lexer *Lexer) *Parser + func (p *Parser) Error(msg string) + func (p *Parser) GetRootNode() ast.Node + func (p *Parser) Lex(lval *yySymType) int + func (p *Parser) Parse() int + type ParserBrackets struct + Child ast.Node + CloseBracketTkn *token.Token + OpenBracketTkn *token.Token + Pos *position.Pos + func (n *ParserBrackets) GetPos() *position.Pos + func (n *ParserBrackets) Walk(v ast.Visitor) + type ParserSeparatedList struct + Items []ast.Node + Pos *position.Pos + SeparatorTkns []*token.Token + func (n *ParserSeparatedList) GetPos() *position.Pos + func (n *ParserSeparatedList) Walk(v ast.Visitor) + type ReturnType struct + ColonTkn *token.Token + Pos *position.Pos + Type ast.Node + func (n *ReturnType) GetPos() *position.Pos + func (n *ReturnType) Walk(v ast.Visitor) + type TraitAdaptationList struct + Adaptations []ast.Node + CloseCurlyBracketTkn *token.Token + OpenCurlyBracketTkn *token.Token + Pos *position.Pos + func (n *TraitAdaptationList) GetPos() *position.Pos + func (n *TraitAdaptationList) Walk(v ast.Visitor) + type TraitMethodRef struct + DoubleColonTkn *token.Token + Method ast.Node + Pos *position.Pos + Trait ast.Node + func (n *TraitMethodRef) GetPos() *position.Pos + func (n *TraitMethodRef) Walk(v ast.Visitor)