It is now simply p.UnexpectedInput(string). This makes the naming of unexpected input not as magical, but explicit (which is a GoodThing). With one of the earlier incarnations of parsekit it did make sense, but it went in a way in which explicit is more idiomatic for the package. |
||
|---|---|---|
| examples | ||
| .gitignore | ||
| LICENSE | ||
| README.md | ||
| assertions_test.go | ||
| cursor.go | ||
| cursor_test.go | ||
| error.go | ||
| error_test.go | ||
| go.mod | ||
| parseapi.go | ||
| parser.go | ||
| parser_test.go | ||
| reader.go | ||
| reader_test.go | ||
| tokenapi.go | ||
| tokenapi_example_test.go | ||
| tokenhandler_test.go | ||
| tokenhandlerresult.go | ||
| tokenhandlers_builtin.go | ||
| tokenhandlers_builtin_test.go | ||
| tokenizer.go | ||
| tokenizer_test.go | ||
| tokenresult_test.go | ||
README.md
go-parsekit
A toolkit that facilitates writing text parsers, based on a flexible combination of parser/combinator technology and a parser state machine.