tunnelvisionlabs / antlrworks2

Tunnel Vision Labs' ANTLRWorks 2 IDE
http://tunnelvisionlabs.com/products/antlrworks
Other
49 stars 21 forks source link

How can I get python lexer or parser in ANTLRWorks 2 ? #36

Closed maryammm closed 10 years ago

maryammm commented 10 years ago

I'm using ANTLRWorks 2.1 for grammar creation and subsequent creation of the lexer and parser. I did that for Java target, but my preffered language is python. In this address you can find Python 3 runtime libraries for ANTLR 4 :https://github.com/antlr. I'm quite puzzled by this: how can I specify my target language in ANTLRWorks 2.1? I would be really appriciate if anyone can guid me.

sharwell commented 10 years ago

The set of supported target languages is hard coded in ANTLRWorks 2. To support the Python target, the following changes will be required for the next release of ANTLRWorks 2.

  1. Update the reference build of ANTLR 4 to the latest 4.4 release (which includes the Python target).
  2. Add Python 2 and Python 3 to the list of supported targets in ANTLRWorks 2.
  3. Update the wizard forms to enable/disable properties relevant to the Python targets, and add support for any custom properties added by that target.
  4. Update the getCommandArguments() method to include the -Dlanguage={language} option when necessary.
maryammm commented 10 years ago

Thank you so much Mr.Harwell, when will be next ANTLRWorks 2 released?! Can I hope in near future?

sharwell commented 10 years ago

Fixed in 2fcec519b9eed29909da0cfb992e114bd25fbf0d