MCPcopy
hub / github.com/uber/aresdb / ParseExpr

Function ParseExpr

query/expr/parser.go:42–42  ·  view source on GitHub ↗

ParseExpr parses an expression string and returns its AST representation.

(s string)

Source from the content-addressed store, hash-verified

40
41// ParseExpr parses an expression string and returns its AST representation.
42func ParseExpr(s string) (Expr, error) { return NewParser(strings.NewReader(s)).ParseExpr(0) }
43
44// parseInt parses a string and returns an integer literal.
45func (p *Parser) parseInt(min, max int) (int, error) {

Callers 9

parseExprsMethod · 0.92
splitAvgQueryFunction · 0.92
processJoinsMethod · 0.92
processFiltersMethod · 0.92
processMeasuresMethod · 0.92
processDimensionsMethod · 0.92
TestRewriteFunction · 0.85

Calls 2

ParseExprMethod · 0.80
NewParserFunction · 0.70

Tested by 1

TestRewriteFunction · 0.68