January 2020
Intermediate to advanced
532 pages
13h 31m
English
Because the abstract syntax tree is just a data structure, we can examine it directly within the Julia REPL environment. Let's just start with a simple expression: x + y:

In Julia, every expression is represented as an Expr object. We can create an Expr object by just parsing a string with the Meta.parse function.
Here, the expression object is displayed with a syntax that resembles the original source code so that it is easier to read. We can confirm that the object has the type of Expr as follows:

In order to ...
Read now
Unlock full access