This program is useful both to understand how abstract syntax trees are represented in the m3tk library, and how to use the m3tk library for simple applications.
It accepts the usual m3tk options for specifying the location of units (modules, interfaces, generic modules...) and the name of units to process. Then, options specific to "m3astcontent" specify the compilations phases to perform before printing the ast. The options are the following:
Here is a sample usage executed from within the m3astcontent package on a LINUXELF machine. It takes some time because many units within the m3tk library have to be processed for the full semantic analysis.
LINUXELF/m3astcontent -TLINUXELF/.M3IMPTAB src/Main.m3