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

Method M

expr/parse.go:479–492  ·  view source on GitHub ↗
(depth int)

Source from the content-addressed store, hash-verified

477}
478
479func (t *tree) M(depth int) Node {
480 debugf(depth, "M pre : %v", t.Cur())
481 n := t.F(depth)
482 debugf(depth, "M post: %v %v", t.Cur(), n)
483 for {
484 switch cur := t.Cur(); cur.T {
485 case lex.TokenStar, lex.TokenMultiply, lex.TokenDivide, lex.TokenModulus:
486 t.Next()
487 n = NewBinaryNode(cur, n, t.F(depth+1))
488 default:
489 return n
490 }
491 }
492}
493
494// F -> v | "(" O ")" | "!" O | "-" O | "NOT" C | "EXISTS" v | "IS" O | "AND (" O ")" | "OR (" O ")"
495func (t *tree) F(depth int) Node {

Callers 1

PMethod · 0.95

Calls 5

FMethod · 0.95
NewBinaryNodeFunction · 0.85
debugfFunction · 0.70
CurMethod · 0.65
NextMethod · 0.65

Tested by

no test coverage detected