Parser/Lexer/Advice for implementing a Lisp in Rust?

I have been interested in building my own Lisp for a while, and I
planned to do it in C, but I have decided to do it in Rust for the
safety/concurrency benefits. Are there any decent parsers or lexers to work with?
If not, are there any decent guides to writing my own?

2 Likes

GitHub - Geal/nom: Rust parser combinator framework is pretty nice for creating parsers, it's a bit of a learning curve to understand how the system of macros works, but it's efficient and effective.

I've also heard of https://github.com/Marwes/parser-combinators, though I haven't used it myself.

Both of those are tools for creating reusable parser parts, I'd suggesting looking into one or both of those libraries - they will make writing a parser a ton easier.

1 Like