parser: add internal []Token queue to the Parser

Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
2023-08-30 20:08:29 +00:00
parent d081fe7d1c
commit c1d3f61b73
2 changed files with 46 additions and 1 deletions
+2 -1
View File
@@ -11,7 +11,8 @@ import (
type Parser struct {
src *lexer.Reader
pos lexer.Position
pos lexer.Position
queue []Token
// OnSection is called after a [section] is parsed.
// Returning an error will abort the process.