Trying the scanner approach

This commit is contained in:
Thomas Pelletier
2021-02-04 10:14:11 -05:00
parent b123c357c5
commit 0ee0fe7f7c
9 changed files with 261 additions and 1126 deletions
-22
View File
@@ -1,22 +0,0 @@
package toml
type parser interface {
Whitespace(b []byte)
Comment(b []byte)
UnquotedKey(b []byte)
LiteralString(b []byte)
BasicString(b []byte)
Dot(b []byte)
Boolean(b []byte)
Equal(b []byte)
ArrayBegin()
ArrayEnd()
ArraySeparator()
InlineTableBegin()
InlineTableEnd()
InlineTableSeparator()
StandardTableBegin()
StandardTableEnd()
ArrayTableBegin()
ArrayTableEnd()
}