Reputation: 15
when clicking on "generate ANTLR recognizer" its only generating the java files and I'm not able to find how to generate python files instead of java files.
Upvotes: 0
Views: 218
Reputation: 170158
Add a language=...;
to the options { ... }
of your grammar:
grammar Test;
options {
language=Python3;
}
parse
: ANY*? EOF
;
ANY
: .
;
Or right click the grammar and choose the option Configure ANTLR...
, and then set the language property in there.
Upvotes: 2