MCPcopy Create free account
hub / github.com/brimdata/super / buildRulesTable

Method buildRulesTable

compiler/parser/parser.go:25100–25105  ·  view source on GitHub ↗
(g *grammar)

Source from the content-addressed store, hash-verified

25098}
25099
25100func (p *parser) buildRulesTable(g *grammar) {
25101 p.rules = make(map[string]*rule, len(g.rules))
25102 for _, r := range g.rules {
25103 p.rules[r.name] = r
25104 }
25105}
25106
25107func (p *parser) parse(g *grammar) (val any, err error) {
25108 if len(g.rules) == 0 {

Callers 1

parseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected