(msg string, args ...any)
| 14 | } |
| 15 | |
| 16 | func (p *Parser) errorf(msg string, args ...any) error { |
| 17 | return p.error(fmt.Sprintf(msg, args...)) |
| 18 | } |
| 19 | |
| 20 | func (p *Parser) error(msg string) error { |
| 21 | return fmt.Errorf("line %d: parse error: %s", p.lexer.line, msg) |
no test coverage detected