Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make a complete example with a simple language #52

Open
fflorent opened this issue Feb 16, 2020 · 1 comment
Open

Make a complete example with a simple language #52

fflorent opened this issue Feb 16, 2020 · 1 comment

Comments

@fflorent
Copy link
Owner

It could be really helpful to implement a full example using a simple language like JSON or toml.

https://github.com/Geal/nom/blob/master/examples/json.rs

Originally suggested by @Geal.

@bikeshedder
Copy link

I'm using nom + nom_locate in the webwire CLI tool for parsing the IDL:

Language spec: https://webwire.dev/idl.html
Parser implementation: https://github.com/webwire/webwire-cli/tree/master/src/idl

I consider this to be a rather simple language and the code contains testcases including checks that the parser errors report the correct line and column numbers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants