Introduction

I previously read Writing An Interpreter In Go and implemented the interpreter in Rust for learning purposes. I’ll put what I learned in this article.

The Output

The completed interpreter can be found here. Since it’s Rust source code mimicking Go, I named the repository imitation_interpreter.

GitHub Repository

Since it’s for learning purposes, there are some minor issues like lack of newline support, but it can perform minimum viable programming including variable assignment, if statements, and function usage.

For the runtime environment, if you have cargo*2 installed you can run it locally. If you don’t but want to try it, you can run the …

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help