9 ms·
I haven't written a parser with Chumsky, but I've played with a little one a bit if you wanna see an example syntax. The error reporting for this project is imp
by jitl 4y ago
I haven't written a parser with Chumsky, but I've played with a little one a bit if you wanna see an example syntax. The error reporting for this project is implemented with `ariadne` which is also really slick.
Parser: https://github.com/ekzhang/percival/blob/main/crates/percival/src/parser.rs https://github.com/ekzhang/percival/blob/main/crates/perciva...
Error reporting: https://github.com/ekzhang/percival/blob/main/crates/percival/src/errors.rs https://github.com/ekzhang/percival/blob/main/crates/perciva...
Datalog playground: https://percival.ink/ https://percival.ink/
To see an error report, delete some punctuation from one of the Datalog code blocks then press shift-return.
- brundolf 4y agoI'm probably going to convert my compiler project to Rust just so I can use Chumsky and Ariadne. The error feedback and recovery is so much better than anything I could have written by hand