Sinisterly
Design your own interpreter - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Coding (https://sinister.ly/Forum-Coding)
+--- Forum: Coding (https://sinister.ly/Forum-Coding--71)
+--- Thread: Design your own interpreter (/Thread-Design-your-own-interpreter)



Design your own interpreter - Inori - 11-22-2016

I've always been interested in how interpreted languages (Python, PHP, and especially Perl and Ruby with their extremely open syntax) are processed and executed, and I've wanted to design my own since I got a decent grasp on code structure.

I decided to finally do some digging and came up with a presentation from Golden Gate Ruby Conference 2013 that outlines how to write an interpreter in Ruby with a few gems to help you along the way. Enjoy!


Code is available here on github if you want to jump right in.


RE: Design your own interpreter - Bish0pQ - 11-22-2016

Thanks for the video! Was an interesting watch for sure.

It doesn't even look as hard as I thought it would be.


RE: Design your own interpreter - Inori - 11-22-2016

(11-22-2016, 10:26 AM)Bish0pQ Wrote: Thanks for the video! Was an interesting watch for sure.

It doesn't even look as  hard as I thought it would be.

Using the gems he talked about it's not a difficult task, but if you build your own parsers it becomes more of a challenge.


RE: Design your own interpreter - zorrophreak - 11-23-2016

Dang, I was looking for this a few years back and while I found some stuff it was nothing even remotely practical. Thanks for the share Ao!