2012-09-19 02:01:52 +08:00
|
|
|
ANTLR v4 Honey Badger
|
2012-01-05 09:36:24 +08:00
|
|
|
|
2013-03-27 07:13:00 +08:00
|
|
|
March 7, 2013
|
|
|
|
|
|
|
|
* Added export to PNG feature to the parse tree viewer
|
|
|
|
|
|
|
|
March 6, 2013
|
|
|
|
|
|
|
|
* Allow direct calls to left-recursive rules (fixes #161)
|
|
|
|
* Change error type 146 (EPSILON_TOKEN) to a warning (fixes #180)
|
|
|
|
* Specify locale for all format operations (fixes #158)
|
|
|
|
* Fix generation of invalid Unicode escape sequences in Java code (fixes #164)
|
|
|
|
* Do not require escape for $ in action when not followed by an ID start char
|
|
|
|
(fixes #176)
|
|
|
|
|
|
|
|
February 23, 2013
|
|
|
|
|
|
|
|
* Refactoring Target-related classes to improve support for additional language
|
|
|
|
targets
|
|
|
|
|
|
|
|
February 22, 2013
|
|
|
|
|
|
|
|
* Do not allow raw newline characters in literals
|
|
|
|
* Pair and Triple are immutable; Triple is not a Pair
|
|
|
|
|
|
|
|
February 5, 2013
|
|
|
|
|
|
|
|
* Fix IntervalSet.add when multiple merges are required (fixes #153)
|
|
|
|
|
|
|
|
January 29, 2013
|
|
|
|
|
|
|
|
* don't call process() if args aren't specified (Dave Parfitt)
|
|
|
|
|
2013-01-21 08:51:11 +08:00
|
|
|
January 21, 2013 -- Release 4.0
|
|
|
|
|
2013-01-22 03:15:53 +08:00
|
|
|
* Updated PredictionContext Javadocs
|
|
|
|
* Updated Maven site documentation
|
|
|
|
* Minor tweaks in Java.stg
|
|
|
|
|
2013-01-15 22:58:00 +08:00
|
|
|
January 15, 2013
|
|
|
|
|
|
|
|
* Tweak error messages
|
|
|
|
* (Tool) Make TokenVocabParser fields `protected final`
|
2013-01-15 23:19:10 +08:00
|
|
|
* Fix generated escape sequences for literals containing backslashes
|
2013-01-15 22:58:00 +08:00
|
|
|
|
2013-01-15 08:06:21 +08:00
|
|
|
January 14, 2013
|
|
|
|
|
|
|
|
* Relax parser in favor of errors during semantic analysis
|
|
|
|
* Add error 145: lexer mode must contain at least one non-fragment rule
|
|
|
|
* Add error 146: non-fragment lexer rule can match the empty string
|
|
|
|
|
2013-01-12 02:55:26 +08:00
|
|
|
January 11, 2013
|
|
|
|
|
|
|
|
* Updated error 72, 76; added 73-74 and 136-143: detailed errors about name
|
|
|
|
conflicts
|
|
|
|
* Report exact location for parameter/retval/local name conflicts
|
|
|
|
* Add error 144: multi-character literals are not allowed in lexer sets
|
|
|
|
* Error 134 now only applies to rule references in lexer sets
|
|
|
|
* Updated error messages (cleanup)
|
2013-01-12 03:34:08 +08:00
|
|
|
* Reduce size of _serializedATN by adding 2 to each element: new representation
|
|
|
|
avoids embedded values 0 and 0xFFFF which are common and have multi-byte
|
|
|
|
representations in Java's modified UTF-8
|
2013-01-12 02:55:26 +08:00
|
|
|
|
2013-01-11 05:00:16 +08:00
|
|
|
January 10, 2013
|
|
|
|
|
|
|
|
* Add error 135: cannot assign a value to list label: $label
|
|
|
|
(fixes antlr/antlr4#128)
|
|
|
|
|
|
|
|
January 2, 2013
|
2013-01-03 03:58:42 +08:00
|
|
|
|
|
|
|
* Fix EOF handling (antlr/antlr4#110)
|
|
|
|
* Remove TREE_PARSER reference
|
|
|
|
* Additional validation checks in ATN deserialization
|
|
|
|
* Fix potential NPE in parser predicate evaluation
|
|
|
|
* Fix termination condition detection in full-context parsing
|
|
|
|
|
2013-01-11 05:00:16 +08:00
|
|
|
January 1, 2013
|
2013-01-02 20:44:07 +08:00
|
|
|
|
|
|
|
* Updated documentation
|
|
|
|
* Minor code cleanup
|
|
|
|
* Added the `-XdbgSTWait` command line option for the Tool
|
|
|
|
* Removed method override since bug was fixed in V3 runtime
|
|
|
|
|
2013-01-01 07:04:36 +08:00
|
|
|
December 31, 2012
|
|
|
|
|
|
|
|
* I altered Target.getTargetStringLiteralFromANTLRStringLiteral() so that
|
|
|
|
it converts \uXXXX in an ANTLR string to \\uXXXX, thus, avoiding Java's
|
|
|
|
conversion to a single character before compilation.
|
|
|
|
|
2012-12-17 07:24:31 +08:00
|
|
|
December 16, 2012
|
|
|
|
|
|
|
|
* Encapsulate some fields in ANTLRMessage
|
|
|
|
* Remove ErrorType.INVALID
|
|
|
|
* Update error/warning messages, show all v3 compatibility messages
|
|
|
|
|
2012-12-12 23:39:01 +08:00
|
|
|
December 12, 2012
|
|
|
|
|
|
|
|
* Use arrays instead of HashSet to save memory in SemanticContext.AND/OR
|
|
|
|
* Use arrays instead of HashSet to save memory in cached DFA
|
|
|
|
* Reduce single-operand SemanticContext.and/or operations
|
|
|
|
|
2012-12-11 22:31:49 +08:00
|
|
|
December 11, 2012
|
|
|
|
|
|
|
|
* Add -long-messages option; only show exceptions with errors when set
|
2012-12-11 22:32:48 +08:00
|
|
|
* "warning treated as error" is a one-off error
|
2012-12-11 22:36:47 +08:00
|
|
|
* Listen for issues reported by StringTemplate, report them as warnings
|
2012-12-11 22:39:44 +08:00
|
|
|
* Fix template issues
|
2012-12-11 22:27:56 +08:00
|
|
|
* GrammarASTWithOptions.getOptions never returns null
|
2012-12-11 22:40:40 +08:00
|
|
|
* Use EnumSet instead of HashSet
|
2012-12-11 22:41:59 +08:00
|
|
|
* Use new STGroup.GROUP_FILE_EXTENSION value
|
2012-12-11 22:31:49 +08:00
|
|
|
|
2012-12-03 02:31:58 +08:00
|
|
|
December 2, 2012
|
|
|
|
|
|
|
|
* Remove -Xverbose-dfa option
|
2012-12-03 07:57:28 +08:00
|
|
|
* Create the ParseTreeVisitor interface for all visitors, rename previous base
|
|
|
|
visitor class to AbstractParseTreeVisitor
|
2012-12-03 02:31:58 +08:00
|
|
|
|
2012-12-02 06:36:59 +08:00
|
|
|
December 1, 2012
|
|
|
|
|
|
|
|
* escape [\n\r\t] in lexical error messages; e.g,:
|
|
|
|
line 2:3 token recognition error at: '\t'
|
|
|
|
line 2:4 token recognition error at: '\n'
|
|
|
|
|
2012-12-02 07:43:15 +08:00
|
|
|
* added error for bad sets in lexer; e.g.:
|
|
|
|
lexer set element A is invalid (either rule ref or literal with > 1 char)
|
|
|
|
some tests in TestSets appeared to allow ~('a'|B) but it was randomly working.
|
|
|
|
('a'|B) works, though doesn't collapse to a set.
|
|
|
|
|
2012-12-02 08:26:06 +08:00
|
|
|
* label+='foo' wasn't generating good code. It was generating token type as
|
|
|
|
variable name. Now, I gen "s<ttype>" for implicit labels on string literals.
|
|
|
|
|
2012-12-02 09:23:50 +08:00
|
|
|
* tokens now have token and char source to draw from.
|
|
|
|
|
2012-12-02 09:30:12 +08:00
|
|
|
* remove -Xsave-lexer option; log file as implicit lexer AST.
|
|
|
|
|
2012-12-01 02:34:54 +08:00
|
|
|
November 30, 2012
|
|
|
|
|
|
|
|
* Maven updates (cleanup, unification, and specify Java 6 bootstrap classpath)
|
|
|
|
|
|
|
|
November 28, 2012
|
|
|
|
|
|
|
|
* Maven updates (uber-jar, manifest details)
|
|
|
|
|
|
|
|
November 27, 2012
|
|
|
|
|
|
|
|
* Maven updates (prepare for deploying to Sonatype OSS)
|
|
|
|
* Use efficient bitset tests instead of long chains of operator ==
|
|
|
|
|
2012-11-27 04:36:16 +08:00
|
|
|
November 26, 2012
|
|
|
|
|
2012-12-01 02:34:54 +08:00
|
|
|
* Maven updates (include sources and javadocs, fix warnings)
|
2012-11-27 04:36:16 +08:00
|
|
|
* Don't generate action methods for lexer rules not containing an action
|
|
|
|
* Generated action and sempred methods are private
|
|
|
|
* Remove unused / problematic methods:
|
|
|
|
** (unused) TerminalNodeImpl.isErrorNode
|
|
|
|
** (unused) RuleContext.conflictsWith, RuleContext.suffix.
|
|
|
|
** (problematic) RuleContext.hashCode, RuleContext.equals.
|
|
|
|
|
|
|
|
November 23, 2012
|
|
|
|
|
|
|
|
* Updated Maven build (added master POM, cleaned up module POMs)
|
|
|
|
|
2012-11-23 04:26:08 +08:00
|
|
|
November 22, 2012
|
|
|
|
|
|
|
|
* make sure left-recur rule translation uses token stream from correct imported file.
|
2012-11-23 07:43:21 +08:00
|
|
|
* actions like @after in imported rules caused inf loop.
|
2012-11-23 07:50:21 +08:00
|
|
|
* This misidentified scope lexer/parser: @lexer::members { } @parser::members { }
|
2012-11-23 04:26:08 +08:00
|
|
|
|
2012-11-19 01:56:41 +08:00
|
|
|
November 18, 2012
|
|
|
|
|
|
|
|
* fixed: undefined rule refs caused exception
|
2012-11-19 03:00:06 +08:00
|
|
|
* cleanup, rm dead etypes, add check for ids that cause code gen issues
|
|
|
|
* added notion of one-off error
|
2012-11-19 04:53:21 +08:00
|
|
|
* added check for v3 backward incompatibilities:
|
|
|
|
** tree grammars
|
2012-11-19 05:03:37 +08:00
|
|
|
** labels in lexer rules
|
2012-11-19 05:39:09 +08:00
|
|
|
** tokens {A;B;} syntax
|
|
|
|
** tokens {A='C';} syntax
|
2012-11-19 05:59:43 +08:00
|
|
|
** {...}?=> gate semantic predicates
|
2012-11-19 06:10:28 +08:00
|
|
|
** (...)=> syntactic predicates
|
2012-11-19 06:24:18 +08:00
|
|
|
* Detect EOF in lexer rule
|
2012-11-19 01:56:41 +08:00
|
|
|
|
2012-11-18 08:25:51 +08:00
|
|
|
November 17, 2012
|
|
|
|
|
|
|
|
* .tokens files goes in output dir like parser file.
|
2012-11-18 08:50:38 +08:00
|
|
|
* added check: action in lexer rules must be last element of outermost alt
|
2012-11-18 09:24:13 +08:00
|
|
|
* properly check for grammar/filename difference
|
2012-11-18 10:06:23 +08:00
|
|
|
* if labels, don't allow set collapse for
|
|
|
|
a : A # X | B ;
|
2012-11-19 01:07:30 +08:00
|
|
|
* wasn't checking soon enough for rule redef; now it sets a dead flag in
|
|
|
|
AST so no more walking dup.
|
|
|
|
error(51): T.g:7:0: rule s redefinition (ignoring); previous at line 3
|
2012-11-18 08:25:51 +08:00
|
|
|
|
2012-11-12 02:41:04 +08:00
|
|
|
November 11, 2012
|
|
|
|
|
|
|
|
* Change version to 4.0b4 (btw, forgot to push 4.0b3 in build.properties when
|
|
|
|
I made git tag 4.0b3...ooops).
|
|
|
|
|
2012-11-05 07:47:00 +08:00
|
|
|
November 4, 2012
|
|
|
|
|
|
|
|
* Kill box in tree dialog box makes dialog dispose of itself
|
|
|
|
|
2012-10-30 02:27:46 +08:00
|
|
|
October 29, 2012
|
2012-02-19 04:40:47 +08:00
|
|
|
|
2012-10-30 02:27:46 +08:00
|
|
|
* Sam fixes nongreedy more.
|
|
|
|
* -Werror added.
|
2012-10-30 03:47:09 +08:00
|
|
|
* Sam made speed improvement re preds in lexer.
|
2012-02-19 08:50:12 +08:00
|
|
|
|
2012-10-21 03:15:43 +08:00
|
|
|
October 20, 2012
|
|
|
|
|
|
|
|
* Merged Sam's fix for nongreedy lexer/parser. lots of unit tests. A fix in
|
|
|
|
prediction ctx merge. https://github.com/parrt/antlr4/pull/99
|
|
|
|
|
2012-10-15 09:53:54 +08:00
|
|
|
October 14, 2012
|
|
|
|
|
|
|
|
* Rebuild how ANTLR detects SLL conflict and failover to full LL. LL is
|
|
|
|
a bit slower but correct now. Added ability to ask for exact ambiguity
|
|
|
|
detection.
|
|
|
|
|
2012-10-09 02:33:40 +08:00
|
|
|
October 8, 2012
|
|
|
|
|
|
|
|
* Fixed a bug where labeling the alternatives of the start rule caused
|
|
|
|
a null pointer exception.
|
|
|
|
|
2012-10-02 06:48:12 +08:00
|
|
|
October 1, 2012 -- 4.0b2 release
|
2012-09-30 03:53:44 +08:00
|
|
|
|
2012-10-01 07:45:30 +08:00
|
|
|
September 30, 2012
|
|
|
|
|
|
|
|
* Fixed the unbuffered streams, which actually buffered everything
|
|
|
|
up by mistake. tweaked a few comments.
|
|
|
|
|
|
|
|
* Added a getter to IntStream for the token factory
|
|
|
|
|
2012-10-01 09:25:15 +08:00
|
|
|
* Added -depend cmd-line option.
|
|
|
|
|
2012-09-30 03:53:44 +08:00
|
|
|
September 29, 2012
|
2012-09-29 07:39:36 +08:00
|
|
|
|
2012-09-30 03:36:41 +08:00
|
|
|
* no nongreedy or wildcard in parser.
|
|
|
|
|
|
|
|
September 28, 2012
|
|
|
|
|
2012-09-29 07:39:36 +08:00
|
|
|
* empty "tokens {}" is ok now.
|
|
|
|
|
2012-09-23 06:01:54 +08:00
|
|
|
September 22, 2012
|
|
|
|
|
|
|
|
* Rule exception handlers weren't passed to the generated code
|
|
|
|
* $ruleattribute.foo weren't handled properly
|
2012-09-23 08:36:59 +08:00
|
|
|
* Added -package option
|
2012-09-23 06:01:54 +08:00
|
|
|
|
2012-09-29 07:39:36 +08:00
|
|
|
September 18, 2012 -- 4.0b1 release
|