Sam Harwell
|
60df00be4f
|
Transition classes override getSerializationType()
|
2012-08-02 12:15:35 -05:00 |
Sam Harwell
|
170a8347bb
|
Emit a RangeTransition instead of SetTransition if a set has only one interval
|
2012-07-31 09:07:04 -05:00 |
Sam Harwell
|
8c820269e4
|
Fix IntegerList.binarySearch
|
2012-07-30 19:24:20 -05:00 |
Sam Harwell
|
7d4f71d829
|
Use IntegerList in the tool
|
2012-07-30 15:18:07 -05:00 |
Sam Harwell
|
dcdcad8feb
|
Add IntegerList.addAll overload for Collection<Integer>, add contains, sort, hashCode, equals, toString.
|
2012-07-30 15:17:02 -05:00 |
Sam Harwell
|
3bf99d6d88
|
Add IntervalSet.toIntegerList(), use IntegerStack to hold mode stack in Lexer
|
2012-07-30 15:13:26 -05:00 |
Sam Harwell
|
fa62570737
|
Add IntegerList and IntegerStack, behaves like ArrayList<Integer> and ArrayDeque<Integer> (mostly) except doesn't require boxing
|
2012-07-30 15:13:26 -05:00 |
Terence Parr
|
9539572ee7
|
simplify test.
|
2012-07-21 16:27:00 -07:00 |
Terence Parr
|
7a4a269615
|
fix test so no error due to EOF.
|
2012-07-21 15:36:56 -07:00 |
Terence Parr
|
8c03dbacf8
|
Resolves #41. EOF cannot follow s. would need s' : s EOF ; for that. updating unit test TestParserExec.testOptional
|
2012-07-21 15:29:07 -07:00 |
Sam Harwell
|
885f6530ad
|
Use chained calls to append instead of string concatenation
|
2012-07-20 14:52:49 -05:00 |
Sam Harwell
|
6259ab5c9e
|
Use StringBuilder instead of StringBuffer
|
2012-07-20 14:52:48 -05:00 |
Sam Harwell
|
2056e019a5
|
Use HashMap instead of Hashtable
|
2012-07-20 14:52:47 -05:00 |
Sam Harwell
|
44ef41ff29
|
Remove unnecessary variable initializations
|
2012-07-20 14:52:46 -05:00 |
Sam Harwell
|
6045bd4eb5
|
Add null check
|
2012-07-20 14:52:45 -05:00 |
Sam Harwell
|
84e1025801
|
Remove extraneous ';' (empty statement), remove unnecessary null checks and dead code
|
2012-07-20 14:52:44 -05:00 |
Sam Harwell
|
3b9940b02a
|
Use isEmpty() instead of comparing size() with 0
|
2012-07-20 14:52:43 -05:00 |
Sam Harwell
|
2f0029a040
|
Improved handling of (potentially) null fields
|
2012-07-20 14:52:14 -05:00 |
Sam Harwell
|
4c4f767d17
|
Prevent NPE after reporting error
|
2012-07-20 14:52:13 -05:00 |
Sam Harwell
|
4c1e9b4119
|
Improve performance of equals
|
2012-07-20 14:51:55 -05:00 |
Sam Harwell
|
45e42d7243
|
Parameter to equals can be null
|
2012-07-20 14:51:54 -05:00 |
Sam Harwell
|
3a35f3cb08
|
Check object type in equals
|
2012-07-20 14:51:53 -05:00 |
Sam Harwell
|
8b4a461262
|
Merge branch 'ModelElement'
|
2012-07-18 16:14:14 -05:00 |
Sam Harwell
|
29d71acef9
|
Update documentation
|
2012-07-18 16:12:37 -05:00 |
Sam Harwell
|
589d6bf187
|
Remove field which hides another field with the same name; add check for this condition to OutputModelWalker
|
2012-07-18 16:06:33 -05:00 |
Sam Harwell
|
45815d97f7
|
Specifically test for the ModelElement annotation on fields (not just any annotation will do)
|
2012-07-18 16:06:32 -05:00 |
Sam Harwell
|
a37f8cf4f1
|
Add missing license notices
|
2012-07-18 15:57:48 -05:00 |
Terence Parr
|
f220212a95
|
couldn't get Horstmann's routine to do EPS not PS so had to backtrack.
|
2012-07-14 16:32:04 -07:00 |
Terence Parr
|
22bb947019
|
Merge branch 'master' of github.com:antlr/antlr4
|
2012-07-14 15:41:42 -07:00 |
Terence Parr
|
47362b2951
|
use Horstmann's PS save not mine; it'll handle Japanese char etc.. this way.
|
2012-07-14 15:38:33 -07:00 |
Sam Harwell
|
96654531b7
|
Use isEmpty() instead of size()==0, specify generic arguments
|
2012-07-13 14:33:42 -05:00 |
Terence Parr
|
683b915507
|
rm prints
|
2012-07-12 13:25:41 -07:00 |
Terence Parr
|
4923cb3874
|
reorg r : '...' ; matching. deals with -> cmds better (and more of em)
|
2012-07-12 13:25:18 -07:00 |
Terence Parr
|
de744f912a
|
allow A : '<' -> skip ; style token name/literal aliases.
|
2012-07-12 12:25:12 -07:00 |
Terence Parr
|
a3371ac9ea
|
rm unneeded override.
|
2012-07-09 17:32:20 -07:00 |
Terence Parr
|
9738658126
|
rm unneeded code to set line/charpos
|
2012-07-09 17:32:03 -07:00 |
Terence Parr
|
9a4227841d
|
-print -> -tree
|
2012-07-08 13:38:56 -07:00 |
Terence Parr
|
707ff615b4
|
tweak javadoc
|
2012-07-08 12:18:43 -07:00 |
Terence Parr
|
3b2c0a6177
|
fix bug in get hidden channel stuff. rewrote. update test.
|
2012-07-07 18:48:48 -07:00 |
Terence Parr
|
ec47251bb2
|
unbuffered release() can get markers in weird order since we reset p to beginning of buffer. Might mark at 1 and then at release p = 0 etc... Don't look for errors. Just reset earliestMarker if needed.
|
2012-07-04 11:32:41 -07:00 |
Terence Parr
|
00808ef11f
|
off by 1 error.
|
2012-07-03 13:44:44 -07:00 |
Terence Parr
|
d0e7e79b2b
|
make sure tokenNames puts tokens at right spot; didn't handle wholes in token type sequence.
|
2012-07-03 13:37:43 -07:00 |
Terence Parr
|
9455f5cd30
|
bug fix; .tokens didn't allow ' ' or 'a b'.
|
2012-07-03 13:15:35 -07:00 |
Terence Parr
|
2e9c449ec4
|
fix a few tests
|
2012-07-03 12:42:10 -07:00 |
Terence Parr
|
1d9aef0a5e
|
replace .tokens file parser with regex to avoid \t becoming tab char.
|
2012-07-03 12:40:36 -07:00 |
Terence Parr
|
6b6274b0c8
|
add type narrowed getters
|
2012-07-02 15:48:45 -07:00 |
Terence Parr
|
71bd16020f
|
Merge branch 'master' into nogenerics-in-error-listener-2nd-try
|
2012-07-02 12:45:48 -07:00 |
Terence Parr
|
111c44b3fd
|
add default ctor to Lexer
|
2012-07-02 12:45:30 -07:00 |
Terence Parr
|
4329f00186
|
Merge branch 'master' into nogenerics-in-error-listener-2nd-try
|
2012-07-02 12:19:51 -07:00 |
Terence Parr
|
ae7313f36a
|
factor out input.read() and make ctor for easy subclass.
|
2012-07-02 12:19:20 -07:00 |