Generating AST in antlr4 v4.10.1 #3749
Unanswered
CHETOSRODRIGUEZ
asked this question in
Q&A
Replies: 1 comment
-
ANTLR4 doesn't directly generate an AST. However, you can use listeners or visitors to build an AST for you. If you don't want to start from scratch, you could use a library like Kolasu that provides the building blocks to develop an AST. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, my question is if i can to generate an AST in antlr4 WITH JAVA?
i only found that i can to generate a CST
TreeViewer viewr = new TreeViewer(rulesName,tree);
viewr.open();
but i wish an AST like the antlr2 version
IM USING VISITORS
Thank you!!!
Beta Was this translation helpful? Give feedback.
All reactions