#chumsky — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #chumsky, aggregated by home.social.
-
To the #Rust #rustlang community: I once started to write a #compiler / #parser with #nom #crate. However I had some struggles with it of how to provide **multiple** errors with line+column indicators for a parsed context.
Now I read a tiny bit about #syn and #chumsky 👀
Are they the right crates for me? Are there others?
I do not parse rust-code, but a completely custom language (similar to pugjs)(Boost for reach 🙏)
-
Many people say that #Rust is very hard to #prototype with or to #refactor. This couldn't be further from the truth! It is the exact opposite!
Let me share with you one of the most profound experiences I had with #RustLang on a casual sunday - a thread 🧵
I'm currently rewriting my #transpiler from #nom to #chumsky and until now everything has turned out great so far, until I've hit the following road block:
Implementing parsers by using #parser functions that have indirect #recursion.1/11
-
While I'm rewriting my #transpiler from #nom to #chumsky, I'm actually thinking about writing a nom-to-chumsky transpiler...
➰ 🙃
-
Uh, ohhh... I think it's time for me to migrate away from #nom v4.2 😮
Yeah, I know, I've procrastinated on this a lot. This will probably be a lot of work and "slow me down" for a bit. 😪 On the upside, though: I can correct all my mistakes along the way (like having spans).
I'll probably migrate to #chumsky, but #winnow also looks really nice. 🙂
chumsky:
https://github.com/zesterer/chumskywinnow:
https://github.com/winnow-rs/winnow#Rust #RustLang #selecuery #Migration #OpenSource #Refactoring #Parser #Compiler
-
winnow - Making parsing a breeze (by epage and contributors):
https://github.com/winnow-rs/winnow
winnow is a parser combinator library written in Rust that started as a fork of #nom.
Not sure yet, if I should migrate from nom 4.* to #winnow or #chumsky. I really do like the good error recovery and parsing capabilities for PEGs of chumsky.🥰