parser defines the data structure for parsing an mtail program.
| 45 | |
| 46 | // parser defines the data structure for parsing an mtail program. |
| 47 | type 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 | |
| 56 | func newParser(name string, input io.Reader) *parser { |
| 57 | return &parser{name: name, l: NewLexer(name, input)} |
nothing calls this directly
no outgoing calls
no test coverage detected