MCPcopy Create free account
hub / github.com/araddon/qlbridge / ParseExprWithFuncs

Function ParseExprWithFuncs

expr/parse.go:202–206  ·  view source on GitHub ↗

Parse a single Expression, returning an Expression Node @fr = function registry with any additional functions ParseExprWithFuncs("5 * toint(item_name)", funcRegistry)

(p TokenPager, fr FuncResolver)

Source from the content-addressed store, hash-verified

200// ParseExprWithFuncs("5 * toint(item_name)", funcRegistry)
201//
202func ParseExprWithFuncs(p TokenPager, fr FuncResolver) (Node, error) {
203 t := newTreeFuncs(p, fr)
204 // Parser panics on unexpected syntax, convert this into an err
205 return t.parse()
206}
207
208// Parse a single Expression, returning an Expression Node
209//

Callers 13

parseWhereExprMethod · 0.92
parseFirstFiltersMethod · 0.92
parseShowMethod · 0.92
parseColumnsFunction · 0.92
parseUpdateListMethod · 0.92
parseValueListMethod · 0.92
parseSourcesMethod · 0.92
parseWhereMethod · 0.92
parseGroupByMethod · 0.92
parseHavingMethod · 0.92
parseOrderByMethod · 0.92
parseWhereDeleteMethod · 0.92

Calls 2

newTreeFuncsFunction · 0.85
parseMethod · 0.45

Tested by

no test coverage detected