parser: implement initial tokeniser

only logging position, errors and non-whitespace elements

Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
2023-08-30 00:25:15 +00:00
parent 1dba6d6b48
commit 235c8ad85c
3 changed files with 94 additions and 0 deletions
+2
View File
@@ -10,6 +10,8 @@ import (
// Parser parses a dosini-style document
type Parser struct {
src *lexer.Reader
pos lexer.Position
}
// NewParser creates a dosini-style parser using