Commit Graph

840 Commits

Author SHA1 Message Date
Terence Parr f8285bcca0 another useful tuple 2012-02-13 09:15:05 -08: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
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
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
sharwell 71e0c66477 Rename NUM_EDGES to MAX_DFA_EDGE, reduce max value to 127 2012-02-08 17:15:34 -06:00
sharwell 2249135c21 Specify generic type parameters 2012-02-08 17:12:22 -06:00
sharwell 1df70924f5 Use ATNConfigSet instead of OrderedHashSet<ATNConfig> 2012-02-08 17:06:41 -06:00
sharwell 52256044a9 Use for each instead of indexed for; use isEmpty() instead of size()==0 2012-02-08 17:06:03 -06:00
sharwell 326cb259a0 Construct Parser with TokenStream (restriction from IntStream) 2012-02-08 16:34:04 -06:00
sharwell 18a6414fb3 Use ATNConfigSet for parameter instead of OrderedHashSet<ATNConfig> 2012-02-08 16:26:14 -06:00
sharwell a6524d8b38 Add pom.xml to support maven builds 2012-02-08 15:07:06 -06:00
sharwell 66d82fab9b Merge remote-tracking branch 'parrt/master' 2012-02-08 12:34:17 -06:00
Terence Parr 5c79fc600a ["\\] didn't work in lexer 2012-02-07 13:19:12 -08:00
Terence Parr 59e4a54faa alter tests for new parser atn name 2012-02-07 13:18:51 -08:00
Terence Parr a5a403514d oops; forgot to update the templates when I renamed the ATN simulator 2012-02-06 09:46:59 -08:00
Terence Parr 93408d8901 Merge pull request #5 from parrt/master
rename atn sim, add error message to TestRig
2012-02-05 10:15:12 -08:00
Terence Parr 894a77168d rename atn sim, add error message to TestRig 2012-02-05 10:14:04 -08:00
Terence Parr c09c8b88d7 Merge pull request #4 from parrt/master
ugh. fix "[a-z]" for real now
2012-02-02 10:42:10 -08:00
Terence Parr c47c07299a ugh. fix "[a-z]" for real now 2012-02-02 10:41:27 -08:00
Terence Parr 6fe8ac1ac6 Merge pull request #3 from parrt/master
pulling in fixes
2012-02-01 16:32:15 -08:00
Terence Parr 5cec4721ab Merge branch 'dev' 2012-02-01 16:02:21 -08:00
Terence Parr c94037def5 fixed regression "a returns [int i] : A ;" didn't work. 2012-02-01 15:55:49 -08:00
Terence Parr dfc3acb39a add README 2012-01-31 19:28:15 -08:00
Terence Parr 5eb9ec9582 fixed bug in [a-z] 2012-01-30 18:08:22 -08:00
Terence Parr c723bd9305 Merge commit '0a5803fab4296d489beec559e2c33118320bccca' into dev 2012-01-30 17:36:23 -08:00