MCPcopy
hub / github.com/google/mtail / parser

Struct parser

internal/runtime/compiler/parser/driver.go:47–54  ·  view source on GitHub ↗

parser defines the data structure for parsing an mtail program.

Source from the content-addressed store, hash-verified

45
46// parser defines the data structure for parsing an mtail program.
47type parser struct {
48 name string
49 root ast.Node
50 errors errors.ErrorList
51 l *Lexer
52 t Token // Most recently lexed token.
53 pos position.Position // Optionally contains the position of the start of a production
54}
55
56func newParser(name string, input io.Reader) *parser {
57 return &parser{name: name, l: NewLexer(name, input)}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected