Documentation ¶
Index ¶
- func Converter(oo ...op) *converter
- func DefaultRefHandler(n *ql.ASTNode, args ...exp.Expression) (exp.Expression, error)
- func DefaultSymbolHandler(n *ql.ASTNode) (exp.Expression, error)
- func DefaultValueHandler(n *ql.ASTNode) (exp.Expression, error)
- func RefHandler(h refHandler) op
- func SymHandler(h symHandler) op
- func ValHandler(h valHandler) op
- type ASTNode
- type ExprHandler
- type ExprHandlerMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultRefHandler ¶
func DefaultRefHandler(n *ql.ASTNode, args ...exp.Expression) (exp.Expression, error)
DefaultRefHandler converts ref from the AST node using ref2exp
func DefaultSymbolHandler ¶
func DefaultSymbolHandler(n *ql.ASTNode) (exp.Expression, error)
DefaultSymbolHandler parses symbol from the AST node into an identifier
func DefaultValueHandler ¶
func DefaultValueHandler(n *ql.ASTNode) (exp.Expression, error)
DefaultValueHandler converts node into placeholder and a new attribute
Types ¶
type ExprHandler ¶
type ExprHandler struct { Handler func(...exp.Expression) exp.Expression HandlerE func(...exp.Expression) (exp.Expression, error) RangeHandler func(exp.Expression, exp.RangeVal) exp.Expression }
type ExprHandlerMap ¶
type ExprHandlerMap map[string]*ExprHandler
func (ExprHandlerMap) ExprHandlers ¶
func (ee ExprHandlerMap) ExprHandlers() (out ExprHandlerMap)
func (ExprHandlerMap) RefHandler ¶
func (ee ExprHandlerMap) RefHandler(n *ql.ASTNode, args ...exp.Expression) (exp.Expression, error)
Click to show internal directories.
Click to hide internal directories.