Skip to content
Snippets Groups Projects
Select Git revision
  • 371b5dfc1c59df2ef6788ad0fd4ec061d20acb11
  • dev default protected
  • main protected
  • chore/using-handlebars
4 results

docs

rschoene's avatar
René Schöne authored
- prepare new release
- use version in Gradle snippets
371b5dfc
History
Name Last commit Last update
..
img
adding.md
index.md
using.md

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.