Releases: mike-lischke/antlr4ng
Releases · mike-lischke/antlr4ng
New Point Release
- Fixed addition bug in OrderedHashSet.
- Bug fixes in code which is rarely used (and therefore had no tests)
New point release
- Switched from Jest to vitest for unit tests. This increases test speed by around 30% (from ~9s to ~6s).
- Fixed a few issues too.
- HashMap can now be created without a parameter for the comparator (it uses the DefaultEqualityComparator then).
- Exported more types that were forgotten (like RuntimeMetaData).
New point release
Small HashSet/HashMap improvements.
v3.0.5
What's Changed
- Refactored local error classes in ParseTreePatternMatcher
- Fixed bug where ParseTreeVisitor used ParserRuleContext instead of ParseTree.
- More obvious mentioning of ES6 in this readme.
- Added a number of APIs that are not necessary in the runtime, but needed by the ANTLR tool.
- Fixed bug #71 ParseRuleContext in empty input has undefined stop token
- Fixed bug #72 Unexpected behaviour when token text has zero length
- Extracted these release notes into an own file.
Full Changelog: v3.0.4...v3.0.5
New point release
- Fixed visitor example in this readme file and added build instructions.
- Added back all debug output in the simulators and the prediction context. Useful for finding low level problems.
- Fixed bug #47 Antlr4ng fails to parse codeql/examples/alias.qll
- Fixed bug #46 ParserRulecontext.parent() incorrectly typed
New point release
- Had to make
Lexer.modeStack
public again and allow reading and writing the current lexer mode. - Also fixed a number of spelling errors.
New point release
- Fix bug #26 getRuleContext is incompatible with generated code (2.0.5)
- Fixed ProfilingATNSimulator code.
- Made Token constants explicitly to number, to avoid TSC narrowing them.
New major release
This release completes the conversion of the Java (and JavaScript) ANTRL4 runtime to TypeScript. It's a significant improvement over the existing TS (and JS) runtimes, as it includes now all relevant parts from the Java runtime and has been optimized for performance. It's now twice as fast for cold runs and 20% faster with a warm parser/lexer.
New major release CLI
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).
v2.0.11
- Fixed bug #30 ReferenceError: Super constructor may only be called once
- The entire runtime test library from the Java runtime has now been ported to TypeScript and is used from now on to check the correctness of this runtime.
- The bit set class used bigint to store the values, which is a problem with bundlers like webpack that have no support for bigint. For this reason that type has been replaced (PR #40 feat: replace bigint and BigUint64Array).
- The bundle is no longer minified and hence larger than before. Bundling a minfied bundle with other bundlers (like terser) in dependent projects might cause trouble. Additionally, minifying a bundle has no benefit in execution time, it's just a size difference (related bugs: #31, #34, #38).