8 votes

Rewriting a Chumsky Parser By Hand in Rust

2 comments

  1. ignorabimus
    Link
    Chumsky is very nice although I mostly use lalrpop because it is (to me at least) a bit simpler– refactoring grammars to avoid left recursion is a bit painful but not impossible and it has the...

    Chumsky is very nice although I mostly use lalrpop because it is (to me at least) a bit simpler– refactoring grammars to avoid left recursion is a bit painful but not impossible and it has the added bonus of producing a formal grammar for the language in the process.

    3 votes
  2. LGUG2Z
    Link
    These days I reach for chumsky pretty much any time I need to write a DSL parser. I thought it would be an interesting exercise to take a DSL parser that I've written using chumsky and reimplement...

    These days I reach for chumsky pretty much any time I need to write a DSL parser.

    I thought it would be an interesting exercise to take a DSL parser that I've written using chumsky and reimplement it the "old fashioned" way.

    1 vote