Commit Graph

1111 Commits

Author SHA1 Message Date
Terence Parr ebb8b3a15b Merge branch 'master' of github.com:parrt/antlr4 into enhance-ctx 2012-02-13 10:20:09 -08:00
Terence Parr d06b83fd22 Merge pull request #8 from sharwell/62146c1651620445e96303e5522eddc2105f2379
Removed redundant check for null
2012-02-13 10:19:30 -08:00
Terence Parr 43daec6f5b Merge branch 'master', remote-tracking branch 'origin' into enhance-ctx 2012-02-13 10:16:57 -08:00
Terence Parr 40b3bc0861 Merge pull request #9 from sharwell/9600a70724
Fix NPE in CommonToken
2012-02-13 10:16:15 -08:00
Terence Parr 8af1e23461 adding tests 2012-02-13 09:16:29 -08:00
Terence Parr 3dbf4cdabc mid-job push so i can pull from work to continue. working on updating ctx objects to have getters 2012-02-13 09:15:54 -08:00
Terence Parr f8285bcca0 another useful tuple 2012-02-13 09:15:05 -08:00
Sam Harwell 9600a70724 Fix NPE in CommonToken when TokenSource is not available 2012-02-13 08:41:57 -06:00
Sam Harwell 62146c1651 Remove redundant null check 2012-02-12 23:33:01 -06:00
Terence Parr dee579a68f oops; need to alter this when removing up/down stuff 2012-02-11 17:46:02 -08:00
Terence Parr 808d23e6d1 add some useful classes 2012-02-11 17:42:02 -08:00
Terence Parr b80b22e4fa rm remnants of tree parser 2012-02-11 17:39:50 -08:00
Terence Parr 6e4cba131a Allow var args in ctor of IntervalSet 2012-02-11 15:30:54 -08:00
Terence Parr f278d3b453 add unit test for left-recur grammars 2012-02-11 11:35:27 -08:00
Sam Harwell 9e192fe71a Merge remote-tracking branch 'parrt/master' 2012-02-10 13:25:38 -06:00
Terence Parr 46094f57ba Merge pull request #7 from sharwell/9c554a002b8fd9f72a0005c90cb83ac757076a3a
Small fixes, plus ability to copy LexerATNSimulator state from one simulator to another
2012-02-10 10:31:39 -08:00
Sam Harwell cd3adb140d Fix ParserATNSimulator.execDFA adding incorrect error edges in the DFA 2012-02-10 00:52:24 -06:00
Sam Harwell 30c58bf8eb Specify <?> type parameter on raw types 2012-02-10 00:51:23 -06:00
Sam Harwell 99ce3cba5c Fix ParserATNSimulator.closure not tracking proper context for context-sensitive predicates during full-context parsing 2012-02-09 19:47:56 -06:00
Sam Harwell 467797785f Fix generics in ParserATNSimulator 2012-02-09 15:37:56 -06:00
Sam Harwell ddf946b067 Token.EOF instead of -1, add <?> to generic type usage, make getUniqueAlt an instance method (need to override it for some apps), @NotNull annotations 2012-02-09 15:33:03 -06:00
Sam Harwell 702b91fab7 Ignore TestPerformance by default since it fails without special configuration 2012-02-09 13:30:44 -06:00
Sam Harwell 7fb73a3849 Construct DFA instances with the decision number 2012-02-09 13:29:14 -06:00
Sam Harwell d589011ad8 Small fixes to the Java grammars used in the performance test 2012-02-09 13:00:27 -06:00
Sam Harwell bf5df30708 Remove unnecessary initializations, use isEmpty() instead of size()==0 2012-02-09 12:45:46 -06:00
Sam Harwell b686efb293 Code cleanup in unit tests 2012-02-09 12:42:48 -06:00
Sam Harwell 6304a562ea Fix unit tests 2012-02-09 08:45:19 -06:00
sharwell 46d5458617 Fix handling of alts with some configs predicated and some configs unpredicated (should be treated as always true) 2012-02-09 01:11:09 -06:00
sharwell 9c554a002b Add LexerATNSimulator.copyState (allows copying state information from another simulator instance) 2012-02-09 00:15:30 -06:00
sharwell 40a8759276 Add LexerATNSimulator.getTraceStream 2012-02-09 00:14:37 -06:00
sharwell f5f3861cb7 Fix unit test 2012-02-08 23:47:35 -06:00
Terence Parr 460e4495b4 Merge pull request #1 from sharwell/master
Many small changes here.
2012-02-08 17:54:55 -08:00
sharwell 0ec084dc73 Simplified exec code in BaseTest 2012-02-08 19:27:34 -06:00
sharwell e5aa949435 More informative parameter names 2012-02-08 19:26:05 -06:00
sharwell 05a199ed2d Compile grammars with debug info for tests 2012-02-08 19:24:21 -06:00
sharwell 32aefbce74 Fix start/stop indexes for contexts created by LR rules 2012-02-08 19:22:26 -06:00
sharwell 851069d87b Hard tabs in generated code 2012-02-08 19:17:36 -06:00
sharwell 33c8f9b2d6 Suppress "cast" warnings in generated code 2012-02-08 19:14:25 -06:00
sharwell 4f3e40f0d3 Use List instead of Vector 2012-02-08 19:06:32 -06:00
sharwell 5279b250ca Use isEmpty() instead of size()==0, use StringBuilder instead of StringBuffer, use chained append() calls instead of string concatenation, remove unnecessary initializations. 2012-02-08 19:01:28 -06:00
sharwell 3b4ae2a742 Use trivial implementation of mark/release for BufferedTokenStream 2012-02-08 18:58:57 -06:00
sharwell f43f9f2218 Override CommonTokenStream.reset() to make sure the stream is left on an on-channel token 2012-02-08 18:58:19 -06:00
sharwell a34fd6330b Use isEmpty() instead of size()==0 2012-02-08 18:57:32 -06:00
sharwell a9e44f3aab Use isEmpty() instead of size()==0, use StringBuilder instead of StringBuffer, use chained append() calls instead of string concatenation, add @Override annotations 2012-02-08 18:57:05 -06:00
sharwell d181b230dc Specify generic type parameter 2012-02-08 18:55:57 -06:00
sharwell 21a855e94e Specify generic type parameters in generated code 2012-02-08 18:55:20 -06:00
sharwell 64203312ac Improved SemanticContext.hashCode(), add @Override annotations 2012-02-08 18:54:40 -06:00
sharwell 773e9e1c7e Add generic type argument 2012-02-08 18:12:01 -06:00
sharwell dcdfac4bcd Improved implementation of equals() and hashCode() for ATNConfig 2012-02-08 18:09:32 -06:00
sharwell 64210f4b72 Add @NotNull annotations, make ATNConfig.semanticContext field final 2012-02-08 17:21:09 -06:00