parser: introduce parsing callbacks
Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
@@ -8,6 +8,8 @@ import (
|
||||
|
||||
// Run parses the source
|
||||
func (p *Parser) Run() error {
|
||||
p.setDefaults()
|
||||
|
||||
p.pos.Reset()
|
||||
return lexer.Run(p.lexStart)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user