Commit Graph

103 Commits

Author SHA1 Message Date
Terence Parr bd91dc166d add getTokenTypeMap(), getRuleIndexMap() to recognizer. Gen new fields for that an ATN with bypass alts. Then methods for that: getATNWithBypassAlts(). Big changes to interface for ParseTreeMatch; create Parser.compileParseTreePattern() method. Convert rule names to rule indexes. 2013-11-24 14:04:46 -08:00
Terence Parr 4fdd520c2e got labels working 2013-11-21 16:01:02 -08:00
Terence Parr 5a6709aba6 update changes file, tweak parser interp test to use new api 2013-11-20 14:28:51 -08:00
Terence Parr e58045474a update changes files2 2013-11-13 16:22:13 -08:00
Terence Parr 57803820af update notation in changes file 2013-11-13 16:21:58 -08:00
Terence Parr 02dc7b44fd update changes files 2013-11-13 16:21:08 -08:00
Terence Parr 5e7c1c2cf1 update changes file for xpath changes 2013-09-16 15:51:37 -07:00
Terence Parr 01082414c3 rebuilt XPath using ANTLR itself; added error handling; added ! operator 2013-09-13 13:53:42 -07:00
Terence Parr 088cd4a9bc got test rig start. added support test rig stuff to exec parser. add findAll to ParseTree interface. 2013-09-11 14:59:53 -07:00
Terence Parr 3fda64f85b got a draft implementation 2013-09-11 11:25:07 -07:00
Terence Parr bb1354b522 add note about Coverity cleanup. 2013-08-31 17:47:34 -07:00
Terence Parr 531afe5af8 changed grammar to allow <assoc=right> on | operator for alt. still allowed on token refs but ignored. Simplified left-recursion elemination rules. see CHANGES.TXT Aug 7, 2013. BREAKING CHANGE. Must alter ternary op alts in grammars. 2013-08-08 17:06:15 -05:00
Terence Parr 6bd55c09a5 update 4.0 to 4.1 in text 2013-06-29 12:15:27 -07:00
Sam Harwell 3fb9a60386 Updated CHANGES.txt 2013-06-24 16:22:36 -05:00
Sam Harwell 06375af15e Update CHANGES.txt 2013-03-26 18:54:45 -05:00
Sam Harwell df9685ecaf Update CHANGES.txt 2013-03-26 18:45:59 -05:00
Sam Harwell 685d2a32d4 Update CHANGES.txt 2013-03-26 18:23:47 -05:00
Sam Harwell e9bccee49f Update CHANGES.txt 2013-03-26 18:14:22 -05:00
Sam Harwell 507f331bd0 Update CHANGES.txt 2013-03-26 18:14:04 -05:00
Sam Harwell 678927617e Update CHANGES.txt 2013-01-21 13:15:53 -06:00
Terence Parr 9c44939f6a tweak for 4.0 release 2013-01-20 16:51:11 -08:00
Sam Harwell db51cb38ed Update CHANGES.txt 2013-01-15 09:19:10 -06:00
Sam Harwell d3a76ebcb1 Update CHANGES.txt 2013-01-15 08:58:00 -06:00
Sam Harwell f43064a31e Update CHANGES.txt 2013-01-14 18:06:21 -06:00
Sam Harwell 7ae67de110 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-11 13:34:08 -06:00
Sam Harwell ce279de429 Updated CHANGES.txt 2013-01-11 12:55:26 -06:00
Sam Harwell 723637fc59 Update CHANGES.txt 2013-01-10 15:00:16 -06:00
Sam Harwell 9b5417c54a Update CHANGES.txt 2013-01-02 13:58:42 -06:00
Sam Harwell d9a95948ff Updated CHANGES.txt 2013-01-02 06:44:07 -06:00
Terence Parr bd46ac1c3f 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. Fixes antlr/antlr#111 2012-12-31 15:06:34 -08:00
Sam Harwell 09d6ae5d8d Update CHANGES.txt 2012-12-16 17:24:31 -06:00
Sam Harwell f7d0cacb09 Update changes.txt 2012-12-12 09:39:01 -06:00
Sam Harwell b822070790 Use new STGroup.GROUP_FILE_EXTENSION value 2012-12-11 08:44:44 -06:00
Sam Harwell 1411a561ab Use EnumSet instead of HashSet 2012-12-11 08:44:38 -06:00
Sam Harwell 70360a4ce8 GrammarASTWithOptions.getOptions never returns null 2012-12-11 08:44:05 -06:00
Sam Harwell f418ae6610 Fix template issues 2012-12-11 08:43:33 -06:00
Sam Harwell a50c8d9088 Listen for issues reported by StringTemplate, report them as warnings 2012-12-11 08:43:32 -06:00
Sam Harwell fc3bb61d2d "warning treated as error" is a one-off error 2012-12-11 08:43:31 -06:00
Sam Harwell 934bea8b12 Add -long-messages option; only show exceptions with errors when set 2012-12-11 08:43:25 -06:00
Sam Harwell 380d3dadde Create a ParseTreeVisitor interface, rename current abstract base class to AbstractParseTreeVisitor 2012-12-02 17:57:28 -06:00
Terence Parr 84306fa385 Remove -Xverbose-dfa option. Fixes antlr/antlr4#92 2012-12-02 10:31:58 -08:00
Terence Parr 346da8b863 remove -Xsave-lexer option; log file as implicit lexer AST. Fixes antlr/antlr4#82 2012-12-01 17:30:12 -08:00
Terence Parr 9e3907d573 tokens now have token and char source to draw from. fix and close antlr/antlr4#88 2012-12-01 17:23:50 -08:00
Terence Parr 35202df715 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. Augmented unit test. Fixes antlr/antlr4#90 2012-12-01 16:26:06 -08:00
Terence Parr 6d6389eef2 added error for bad sets in lexer. some tests in TestSets appeared to allow ~('a'|B) but it was randomly working. ('a'|B) works without the ~, though doesn't collapse to a set. fixes antlr/antlr4#70 2012-12-01 15:44:23 -08:00
Terence Parr fc79752748 Merge branch 'master' of github.com:antlr/antlr4 2012-12-01 14:38:33 -08:00
Terence Parr 7049972ab7 escape [\r\n\t] in lexical error messages. Fixes antlr/antlr4#75 2012-12-01 14:36:59 -08:00
Sam Harwell 8ca298faff Update changes.txt 2012-11-30 12:34:54 -06:00
Sam Harwell 81c4ebbf6f Update changes.txt 2012-11-26 14:36:16 -06:00
Terence Parr 355eb42898 This misidentified scope lexer/parser: @lexer::members { } @parser::members { } 2012-11-22 15:50:21 -08:00