Skip to content

DumpAst

The tool called DumpAst (see in repo) is used to create a snapshot of an AST and visualise it.

It has to be used within your application code, and comes with a fluent interface to add and/or filter parts of the AST. First, import the entry point class Dumper

import de.tudresden.inf.st.jastadd.dumpAst.ast.Dumper;

Then, read in the ASTNode in question:

Dumper.read(astNode)

Using the return value (a DumpBuilder), use methods to filter out unwanted parts and add styling or other settings. All methods can be chained together. Please see the subpage on using DumpAst and the API documentation for more details.


Last update: September 30, 2022 13:09:41