Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Subtlesplendor/roc-parser
A port of Elm's Parser library to Roc, empowered by Roc's type system
https://github.com/Subtlesplendor/roc-parser
Last synced: 3 months ago
JSON representation
A port of Elm's Parser library to Roc, empowered by Roc's type system
- Host: GitHub
- URL: https://github.com/Subtlesplendor/roc-parser
- Owner: Subtlesplendor
- Created: 2023-03-07T11:56:37.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-22T20:12:12.000Z (about 1 year ago)
- Last Synced: 2024-02-12T15:14:59.833Z (9 months ago)
- Homepage: https://www.roc-lang.org/
- Size: 8.44 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- roc-awesome - Subtlesplendor/roc-parser
README
# roc-parser
Work In Progress: a port of Elm's Parser library to Roc, empowered by Roc's type system.https://www.roc-lang.org/
## Differences to the Elm parser
This parser library works for parsing generic lists, not just strings. This means that some of the concepts of the Elm parser do not carry over. So the parsers now do not keep track of row, column, or indent --- because those do not make sense for arbitrary lists.A slight complication is hence that to generate a nice error message that refers to e.g. a row and column requires a second pass through of the source to determine these quantities at the location of the error.