January 2020
Intermediate to advanced
532 pages
13h 31m
English
In order to traverse the whole abstract syntax tree, we can use the MacroTool's postwalk function. To understand how it works, we can play with a simple example, as outlined in the following steps:

Here, we have used the rmlines function to remove the line number nodes since we do not need them in this exercise.

The postwalk function accepts a function ...
Read now
Unlock full access