gomme
gomme copied to clipboard
Parser combinator library for Go
Salut Théo, consider: ``` // Count runs the provided parser `count` times. func Count()... ``` Although I am not a native English speaker, I think that the name `Count` in...
As we've been implementing an example JSON parser, we encountered the need to manage "escaped" strings. Go strings are escaped, and when parsing the following string: `{"abc": "123"}`, it is...
Necessary to implement a JSON parser
The library should have some version of a `Whitespace0` and `Whitespace1` character parser combinators. Those combinators would consume zero or more white space characters: spaces, linefeed, carriage return, and horizontal...
As requested in #1 we should add an example of a JSON parser built with gomme.
The library should have some version of a `TakeWhile` and/or `TakeWhile1` character parser combinators. ## TakeWhile The combinator would return the longest continuous subset of the input that matched the...
Hello, I have two questions: - Is gomme suited to parse indentation-based non context-free languages like YAML ? - The round-trip refers to the fact that I would like to...
To support a Cut function, Alternative should fail for a fatal error and return it as is. I might be able to create a PR for that later today.