Programatically compiling a grammar #4177
Unanswered
NoahTheDuke
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working on a Clojure codebase that will make use of the java output by antlr4. It's a little awkward to either make two calls (one to compile the grammar, one to compile the
.java
into.class
files) or rely on ajustfile
to perform those in sequence whenever I modify the grammar. I'd love to be able to add antlr4 as a dev dependency and then call in normal Clojure code the antlr compiling in the same call I use for compiling the java code.Is this possible? I couldn't find anything in the docs about calling antlr from within java directly.
Beta Was this translation helpful? Give feedback.
All reactions