3 ms·
Writing interpreters in any language is a great exercise. And in Rust you can take advantage of ADTs, traits and unit testing to implement an interpreter of you
by siraben 6y ago
Writing interpreters in any language is a great exercise. And in Rust you can take advantage of ADTs, traits and unit testing to implement an interpreter of your choice. Plus there's also great parser combinator libraries you can use. Here's a very simple lambda calculus interpreter I wrote some time ago.[0]
[0] https://gist.github.com/siraben/5209bfc7165c45aec18eeae852ec7d62 https://gist.github.com/siraben/5209bfc7165c45aec18eeae852ec...