Commit Graph

2882 Commits

Author SHA1 Message Date
Sam Harwell afadc2d976 Include initial value for attributes in generated code (fixes #672) 2014-09-19 17:05:20 -05:00
Terence Parr 6e581b3be6 Merge pull request #691 from sharwell/fix-688
Improved support for zero-length lexer tokens
2014-09-02 13:25:14 -07:00
Sam Harwell 77a7bda127 Merge pull request #696 from parrt/update-unit-tests-token-positions
token types bumped by 1 I assume due to recent lexer updates for 0-lengt...
2014-09-01 18:16:50 -05:00
Terence Parr a0584a2c31 token types bumped by 1 I assume due to recent lexer updates for 0-length tokens or for channel thing? 2014-09-01 13:25:30 -07:00
Terence Parr 6e869b3e80 Merge pull request #695 from parrt/prec-filter-comments
add parrt summary of conversation with Sam about precedence DFA optimization
2014-09-01 13:16:23 -07:00
Terence Parr fd194f073b add parrt summary of conversation with Sam about precedence DFA optimization 2014-09-01 13:15:21 -07:00
Terence Parr 7bf47e1670 Merge pull request #694 from sharwell/fix-309
Implement channels{} block
2014-09-01 12:56:57 -07:00
Terence Parr 3ef0c84e7f Merge pull request #690 from sharwell/fix-679
Fix applyPrecedenceFilter removing pruning too many configurations
2014-09-01 12:51:25 -07:00
Sam Harwell 1f7220756a Place error 160 in the correct order in ErrorType.java 2014-09-01 13:29:12 -05:00
Sam Harwell cacd317d02 Implement support for defining custom channels in the channels{} construct in lexer grammars (fixes #309) 2014-09-01 13:28:08 -05:00
Sam Harwell e497efaa58 Support zero-length empty lexer rules with lexer commands (fixes #687) 2014-08-28 23:45:52 -05:00
Sam Harwell 6790b25e5b Support zero-length tokens in the lexer (fixes #688) 2014-08-28 23:45:07 -05:00
Sam Harwell 0c1178bf3a Include precedence in rule invocations when -atn is specified 2014-08-28 23:24:06 -05:00
Sam Harwell 99dd914045 Fix assignment of precedence for binary expressions with an implicit operator (e.g. testDuplicatedLeftRecursiveCall) 2014-08-28 23:23:26 -05:00
Sam Harwell b62408067e Update precedence filter to properly handle stepping out of left-recursive rules (fixes #679) 2014-08-28 23:21:32 -05:00
Terence Parr 561383c34c Merge pull request #678 from sharwell/fix-677
Fix 677
2014-08-15 12:46:38 -07:00
Sam Harwell a7f53ce396 Support list labels on the recursive atom in a left-recursive rule (fixes #677) 2014-08-09 11:07:15 -05:00
Sam Harwell 399a1df047 Add regression tests for #677 2014-08-09 10:55:20 -05:00
Sam Harwell 550a737acf Make sure code generation was successful before attempting to compile 2014-08-09 10:55:19 -05:00
Sam Harwell 8e69a5b99d Update CodeGenPipeline.process to check for errors before writing output files 2014-08-09 10:26:21 -05:00
Terence Parr 4a57ed6a51 Merge pull request #665 from parrt/fix-664-plus-loop-loopback
If there is no loopentry decision, have + AST point to loopback
2014-07-17 18:40:12 -07:00
Terence Parr 73d2f1f688 simplify; + node always points at loopback now. 2014-07-17 18:37:57 -07:00
Terence Parr aff865d1a7 Make the plus tree node point at loopback always. 2014-07-17 17:29:35 -07:00
Terence Parr 94c1c77652 If there is no loopentry decision, have + AST point to loopback 2014-07-16 20:59:39 -07:00
Terence Parr 2ca20e00ff Remove unneeded createATN(). 2014-07-16 20:37:15 -07:00
Terence Parr 70dd5227c1 prepare for changes beyond 4.4 2014-07-16 19:45:59 -07:00
Terence Parr 90a5aa469a add title to javadoc, tweak readme stuff. 2014-07-16 14:08:31 -07:00
Terence Parr 1693c74645 add classpath to javadoc 2014-07-16 13:45:38 -07:00
Terence Parr a61c3eeeda set to use 4.3 to build 4.4 2014-07-16 13:34:46 -07:00
Terence Parr 54b875cb9d mkjar was missing runtime in jar and included antlr v2 in complete jar. 2014-07-16 13:34:29 -07:00
Terence Parr b807e06df8 update comment 2014-07-16 12:17:50 -07:00
Terence Parr 677cc279ad include annot in javadoc 2014-07-16 12:07:17 -07:00
Terence Parr 7d19889ab2 add comment to describe build 2014-07-16 10:28:38 -07:00
Terence Parr 1f797853bb make tests build in their own classpath 2014-07-16 10:20:54 -07:00
Terence Parr 7865142f9e improve bild 2014-07-12 17:03:23 -07:00
Terence Parr f86fc71128 Merge pull request #662 from parrt/fix-661
Fix 661
2014-07-11 12:10:41 -07:00
Terence Parr bb389782da Fixes #661. A parser rule reference within a lexer rule would get a bad error message and then an exception. Further, errors within the grammar tree visitor would go to standard error instead of to an error manager because none of the subclasses implemented getErrorManager(). Introduced an error type for this error PARSER_RULE_REF_IN_LEXER_RULE. Added to unit test. 2014-07-11 12:09:47 -07:00
Terence Parr b4a53d56d4 Merge branch 'master' into fix-661 2014-07-10 21:45:33 -07:00
Terence Parr ee0345c1e2 After gen of antlr 4.4 jar, rebuild XPathLexer with 4.4 then remake jars. 2014-07-10 21:44:54 -07:00
Terence Parr 87852c7757 Merge branch 'master' into fix-661 2014-07-10 18:15:55 -07:00
Terence Parr c22706135d fix build. separate antlr3,4 gen dirs 2014-07-10 18:07:24 -07:00
Terence Parr 83411ef056 add test 2014-07-10 18:00:16 -07:00
Terence Parr 94ddde2dbc c# target dir renamed. 2014-07-09 15:53:57 -07:00
Terence Parr a578dba415 arg was renamed in bild script 2014-07-09 15:53:03 -07:00
Terence Parr 065d6733ae make bild bootstrap 2014-07-09 12:00:36 -07:00
Terence Parr 08a1dc77f5 can't make minimal runtime jar for this release; unfix #576 2014-07-06 09:34:43 -07:00
Terence Parr 74573c2eed make runtime jar and minimal runtime jar, improve manifests. Fixes #576 2014-07-06 09:21:46 -07:00
Terence Parr d6c1fa152d correctly add target templates 2014-07-06 08:46:47 -07:00
Terence Parr 2b7c32e8cf expand path to jar. 2014-07-05 19:15:36 -07:00
Terence Parr ad069c9e08 got unit tests working finally. 2014-07-05 19:13:05 -07:00