parser: introduce parsing callbacks

Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
2023-08-30 02:26:04 +01:00
parent 235c8ad85c
commit 27ca07b8a0
2 changed files with 52 additions and 0 deletions
+2
View File
@@ -8,6 +8,8 @@ import (
// Run parses the source
func (p *Parser) Run() error {
p.setDefaults()
p.pos.Reset()
return lexer.Run(p.lexStart)
}