Skip to content

New major release CLI

Compare
Choose a tag to compare
@mike-lischke mike-lischke released this 02 Mar 20:41
· 50 commits to master since this release
v2.0.0-cli
77d0d47

This is the next major release of the code generator, after an overhaul of the antlr4ng runtime. It introduces a number of API changes, but no changes to the original working mechanism. The other targets (C++, Java, etc.) are not affected by this release. All changes in this release are to support the new antlr4ng major release 3.0.0:

  • Renamed class members (_type -> type, _channel -> channel, _mode -> mode, _parseListeners -> parseListeners).
  • Specialized getText methods for the token stream, to avoid frequent parameter checking in method overloading.
  • Merged the class RuleContext into ParserRuleContext. It's not used anywhere else, so why keeping it around?
  • ParserRuleContext.exception has been removed and it is no longer set in generated code (only relevant for error conditions, where a proper exception is passed to error listeners.
  • More non-null assertions and null-safety checks have been added (mostly relevant for local rule variables and return values).