[antlr-interest] updated honey badger v4 listener events

Terence Parr parrt at cs.usfca.edu
Tue Feb 14 16:38:40 PST 2012


Hi, pushed a lot of small fixes and did a major overhaul of the listener event mechanism:

* See https://github.com/antlr/antlr4/issues/8

* Renamed BlankXListener to XBaseListener

* removed "Rule" from the listener events: enter(MyParser.XContext ctx)

* added getter methods for all elements in a rule or labeled alternative for easy access within the listeners.

See A.g4 and A2.g4 and their test rigs to see with the listeners look like. pretty damn cool.

http://www.antlr.org/wiki/display/ANTLR4/Examples

can grab the latest from here:

https://github.com/antlr/antlr4/downloads

jump inside and say "ant distribute" or "ant"

Ter




More information about the antlr-interest mailing list