9
submitted 5 days ago by tomtau@aussie.zone to c/rust@lemmy.ml
top 2 comments
sorted by: hot top controversial new old
[-] balsoft@lemmy.ml 1 points 4 days ago

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 days 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.

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

Rust Programming

8979 readers
1 users here now

founded 6 years ago
MODERATORS