Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
87
func
newParser(ctx context.Context, exp string) parser {
88
_, tokens := lex(exp)
89
return
parser{tokens: tokens, ctx: ctx}
90
}
91
92
func
(p *parser) next() *token {
93
if
p.peeked != nil {
Callers
6
parseExpression
Function · 0.85
TestParseOrRhs
Function · 0.85
TestParseConjuction
Function · 0.85
TestParseGroup
Function · 0.85
TestParseOperand
Function · 0.85
TestParseExp
Function · 0.85
Calls
1
lex
Function · 0.85
Tested by
5
TestParseOrRhs
Function · 0.68
TestParseConjuction
Function · 0.68
TestParseGroup
Function · 0.68
TestParseOperand
Function · 0.68
TestParseExp
Function · 0.68