[Solved] Haskell Token.LanguageDef in Rust

I am convering some Haskell code to Rust. The Haskell code uses Text.Parsec.Token for parsing.

What Rust library is closest to the above?

Nom or lalrpop

1 Like

I personally enjoyed using combine - Rust to define parsers; I found the approach produces more readable code than nom does overall. It's probably closer to parsec as well whereas nom might be closer to attoparsec.

1 Like

@Fiedzia , @Centril : Thanks for the suggestions. I worked through the lalrpop and combine examples -- and ended up going with combine + combine-language (modeled after Token.LanguageDef).