this post was submitted on 25 Sep 2025
9 points (100.0% liked)

Rust Programming

9135 readers
2 users here now

founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] balsoft@lemmy.ml 1 points 4 months ago (1 children)

I can't go back to parsers with grammar definitions after using parser combinators; it just feels so unelegant and verbose. I guess Rust doesn't have monadic syntax sugar like more functional languages, so it makes parsers in Nom a bit more ugly than Parsec, but I still prefer it.

[โ€“] TehPers@beehaw.org 2 points 4 months ago

Normally I agree, but I found that Pest's grammar definitions double as documentation on the language syntax. Nom is much more ergonomic though.