Versions in this module Expand all Collapse all v0 v0.0.1 Nov 27, 2018 Changes in this version + func IdentNeedsQuotes(ident string) bool + func QuoteIdent(segments ...string) string + func QuoteString(s string) string + func ScanBareIdent(r io.RuneScanner) string + func ScanDelimited(r io.RuneScanner, start, end rune, escapes map[rune]rune, escapesPassThru bool) ([]byte, error) + func ScanString(r io.RuneScanner) (string, error) + func Walk(v Visitor, expr Expr) + func WalkFunc(e Expr, fn func(Expr)) + type BinaryExpr struct + ExprType Type + LHS Expr + Op Token + RHS Expr + func (e *BinaryExpr) String() string + func (e *BinaryExpr) Type() Type + type BooleanLiteral struct + Val bool + func (l *BooleanLiteral) String() string + func (l *BooleanLiteral) Type() Type + type Call struct + Args []Expr + ExprType Type + Name string + func (c *Call) String() string + func (c *Call) Type() Type + type Case struct + Else Expr + ExprType Type + WhenThens []WhenThen + func (c *Case) String() string + func (c *Case) Type() Type + type Distinct struct + Val string + func (d *Distinct) NewCall() *Call + func (d *Distinct) String() string + func (d *Distinct) Type() Type + type Expr interface + String func() string + Type func() Type + func CloneExpr(expr Expr) Expr + func ParseExpr(s string) (Expr, error) + func Rewrite(r Rewriter, expr Expr) Expr + func RewriteFunc(e Expr, fn func(Expr) Expr) Expr + type GeopointLiteral struct + Val [2]float32 + func (l *GeopointLiteral) String() string + func (l *GeopointLiteral) Type() Type + type NullLiteral struct + func (l *NullLiteral) String() string + func (l *NullLiteral) Type() Type + type NumberLiteral struct + Expr string + ExprType Type + Int int + Val float64 + func (l *NumberLiteral) String() string + func (l *NumberLiteral) Type() Type + type ParenExpr struct + Expr Expr + ExprType Type + func (e *ParenExpr) String() string + func (e *ParenExpr) Type() Type + type ParseError struct + Expected []string + Found string + Message string + Pos Pos + func (e *ParseError) Error() string + type Parser struct + func NewParser(r io.Reader) *Parser + func (p *Parser) ParseExpr(binOpPrcdncLb int) (Expr, error) + type Pos struct + Char int + Line int + type Rewriter interface + Rewrite func(Expr) Expr + type Scanner struct + func NewScanner(r io.Reader) *Scanner + func (s *Scanner) Scan() (tok Token, pos Pos, lit string) + type StringLiteral struct + Val string + func (l *StringLiteral) String() string + func (l *StringLiteral) Type() Type + type Token int + const ADD + const ALL + const AND + const AS + const ASC + const BADESCAPE + const BADSTRING + const BEGIN + const BITWISE_AND + const BITWISE_LEFT_SHIFT + const BITWISE_NOT + const BITWISE_OR + const BITWISE_RIGHT_SHIFT + const BITWISE_XOR + const BY + const CASE + const COMMA + const CONVERT_TZ + const DEFAULT + const DELETE + const DESC + const DISTINCT + const DIV + const DOT + const DROP + const ELSE + const END + const EOF + const EQ + const EXCLAMATION + const EXISTS + const FALSE + const FIELD + const FLOOR + const FOR + const FROM + const GEOGRAPHY_INTERSECTS + const GET_DAY_OF_MONTH + const GET_DAY_OF_YEAR + const GET_HLL_VALUE + const GET_MONTH_OF_YEAR + const GET_MONTH_START + const GET_QUARTER_OF_YEAR + const GET_QUARTER_START + const GET_WEEK_START + const GET_YEAR_START + const GROUP + const GT + const GTE + const IDENT + const IF + const ILLEGAL + const IN + const INF + const INNER + const INSERT + const IS + const IS_FALSE + const IS_NOT_NULL + const IS_NULL + const IS_TRUE + const KEY + const KEYS + const LIMIT + const LPAREN + const LT + const LTE + const MOD + const MUL + const NEQ + const NOT + const NOT_IN + const NULL + const NUMBER + const OFFSET + const ON + const OR + const ORDER + const RPAREN + const SELECT + const STRING + const SUB + const THEN + const TO + const TRUE + const UNARY_MINUS + const UNKNOWN + const VALUES + const WHEN + const WHERE + const WITH + const WS + func Lookup(ident string) Token + func (tok Token) MarshalJSON() ([]byte, error) + func (tok Token) Precedence() int + func (tok Token) String() string + type Type int + const Boolean + const Float + const GeoPoint + const GeoShape + const Signed + const UnknownType + const Unsigned + func (t Type) MarshalJSON() ([]byte, error) + func (t Type) String() string + type UnaryExpr struct + Expr Expr + ExprType Type + Op Token + func (e *UnaryExpr) String() string + func (e *UnaryExpr) Type() Type + type UnknownLiteral struct + func (l *UnknownLiteral) String() string + func (l *UnknownLiteral) Type() Type + type VarRef struct + ColumnID int + DataType memCom.DataType + EnumDict map[string]int + EnumReverseDict []string + ExprType Type + TableID int + Val string + func (r *VarRef) String() string + func (r *VarRef) Type() Type + type Visitor interface + Visit func(Expr) Visitor + type WhenThen struct + Then Expr + When Expr + type Wildcard struct + func (e *Wildcard) String() string + func (e *Wildcard) Type() Type