email github twitter twitter

nasseri.io

The Blog of Dean Nasseri

The Structure and Interpretation of Ruby Programs

Posted on August 16th, 2017

Whenever a ruby program is run, the program is first lexed into tokens, then the tokens are assembled into an abstract syntax tree, and finally the AST is compiled into virtual machine instructions. In this post, we will explore each of these steps in detail.

Tokenization, parsing, and compiling.