Skip to content

This program generates a png image displaying the ast that is created by antlr after tree annotations in the antlr grammar

Notifications You must be signed in to change notification settings

Martikos/antlr-ast-graph-visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Have the main rule in your parsers (the one you will be using) be called 'mainrule'.
Move your ANTLR parser and lexer to /src/parsers/ and call them specParser and specLexer, respectively.
Build project, to draw the graph: run using java -jar and make sure you specify input file with -i and output file with -o.

About

This program generates a png image displaying the ast that is created by antlr after tree annotations in the antlr grammar

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published