MCPcopy Create free account
hub / github.com/perkeep/perkeep / newParser

Function newParser

pkg/search/expr.go:87–90  ·  view source on GitHub ↗
(ctx context.Context, exp string)

Source from the content-addressed store, hash-verified

85}
86
87func newParser(ctx context.Context, exp string) parser {
88 _, tokens := lex(exp)
89 return parser{tokens: tokens, ctx: ctx}
90}
91
92func (p *parser) next() *token {
93 if p.peeked != nil {

Callers 6

parseExpressionFunction · 0.85
TestParseOrRhsFunction · 0.85
TestParseConjuctionFunction · 0.85
TestParseGroupFunction · 0.85
TestParseOperandFunction · 0.85
TestParseExpFunction · 0.85

Calls 1

lexFunction · 0.85

Tested by 5

TestParseOrRhsFunction · 0.68
TestParseConjuctionFunction · 0.68
TestParseGroupFunction · 0.68
TestParseOperandFunction · 0.68
TestParseExpFunction · 0.68