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

Method P

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

Source from the content-addressed store, hash-verified

462}
463
464func (t *tree) P(depth int) Node {
465 debugf(depth, "P pre : %v", t.Cur())
466 n := t.M(depth)
467 debugf(depth, "P post: %v", t.Cur())
468 for {
469 switch cur := t.Cur(); cur.T {
470 case lex.TokenPlus, lex.TokenMinus:
471 t.Next()
472 n = NewBinaryNode(cur, n, t.M(depth+1))
473 default:
474 return n
475 }
476 }
477}
478
479func (t *tree) M(depth int) Node {
480 debugf(depth, "M pre : %v", t.Cur())

Callers 2

CMethod · 0.95
cInnerMethod · 0.95

Calls 5

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

Tested by

no test coverage detected