Simple Dummy Clojure Parser in Rust

This is not a production-ready neither serious parser, it’s for pure fun! I was bored during one of the pandemics late nights watching Sam Rose’s 3h parser video. So I decided to do something similar, inspired by Sam’s video. Of course, I did not want to make a 3 hours video fighting Rust compiler — which is the ultimate reality but something shorter. The code is similar but I have few more operations like * and inc. I also using a queue for Args not Stack so we can preserve ordering. So this is a cool way to learn rust because in the code we will be using Stack and Queue Data Structures and basics of borrow and ownership in rust. Let’s get started!

The Video

The Code

Cheers,

Diego Pacheco

Originally published at http://diego-pacheco.blogspot.com on July 2, 2021.

Brazilian, Software Architect, SWE(Java, Scala, Rust, Go) SOA & DevOps expert, Author. Working with EKS/K8S. diegopacheco.github.io (Opinions on my own)