阿里云携手开源中国众包平台发布百万悬赏项目 »
ANTLR 4.5.1 发布在7月15日发布了,下载地址:http://www.antlr.org/download/antlr-4.5.1-complete.jar
改进记录: Summary of Major Changes
Maven build was added back in, thanks to new contributor Jason van Zyl; you can just open the topmost pom.xml in your favorite IDE
We completely overhauled runtime test generation
We merged all existing target repositories such as antlr4-python2 into the main antlr4repo so that everything is now included in a single spot.
We removed runtime jar dependency on Swing. Class org.antlr.v4.runtime.misc.TestRighas moved to org.antlr.v4.gui.TestRig but we left a proxy in so thatorg.antlr.v4.runtime.misc.TestRig still works. The org.antlr.v4.runtime.tree.guipackage moved to org.antlr.v4.gui in the tool area from the runtime. A few classes fromorg.antlr.v4.runtime.misc had to move. Convenience methods for saving/viewing parse trees were moved from RuleContext (parse tree) and org.antlr.v4.runtime.tree.Trees toorg.antlr.v4.gui.Trees.
You can view all Issues fixed in 4.5.1, all pull requests merged and all commits for this release. Features
Add goto to reserved words for java
Create functionality to get all possible parse trees for ambiguous input.
Makes TestRig's dialog to save and restore its state
Parser.setProfile() should keep settings like prediction mode
Make Grammar-object-aware ParserInterpreter (This interpreter will have parse tree nodes that know which alternative or label was matched for a particular parse tree subtree root.)
Check for nonconforming left-recursive rules.
Bug Fixes
Null pointer in named alternative with attributes
NullPointerException in bad recursion
Parser.setProfile() should keep settings like prediction mode
Allow parsing decision override for (decision, input index) in parsers
Random ArrayIndexOutOfBounds exceptions coming from ParserATNSimulator
Empty rule matched first gives invalid source interval
EOF leaf not included in parent tree source interval
Rule parameter in left recursive rules disallowed
wrong location on import error message reference to undefined rule