Refactor to use parser state

This commit is contained in:
Thomas Pelletier
2021-02-01 09:00:36 -05:00
parent d54ad15d16
commit 07aa85ea0b
2 changed files with 192 additions and 145 deletions
+1
View File
@@ -26,6 +26,7 @@ func TestParse(t *testing.T) {
for i, data := range inputs {
t.Run(fmt.Sprintf("example %d", i), func(t *testing.T) {
fmt.Printf("input:\n\t`%s`\n", data)
doc, err := Parse([]byte(data))
assert.NoError(t, err)
fmt.Println(doc)