rrevenantt / antlr4rust

ANTLR4 parser generator runtime for Rust programming laguage
Other
398 stars 70 forks source link

Is It possible that generate AST for g4 file dynamically? #48

Closed songtianyi closed 2 years ago

songtianyi commented 2 years ago

As I know, there is a plugin in Intellij IDEA that can preview the AST on the fly, is it possible in pure rust?

yuriry commented 2 years ago

@songtianyi If you are asking about ANTLR Preview tool window in IntelliJ: ANTLR Preview is independent of the target language. It needs a g4 file and an input file (input can also be typed in the tool window directly). I hope I understood your question correctly.

image