Commit Graph

2120 Commits

Author SHA1 Message Date
Sam Harwell c157801296 Add Array2DHashSet.asElementType for casts from Object to T 2012-12-15 12:08:48 -06:00
Sam Harwell c654c1b428 Improved generics usage in Array2DHashSet 2012-12-15 12:08:46 -06:00
Sam Harwell fd62c583da ATNConfigSet.toArray returns ATNConfig[] 2012-12-15 12:08:44 -06:00
Sam Harwell b2c119002c Extract anonymous class to SetIterator inner class 2012-12-15 12:08:42 -06:00
Sam Harwell e259cea426 Array2DHashSet.toArray returns T[] 2012-12-15 12:08:41 -06:00
Sam Harwell f77cf59dbf Add Array2DHashSet.createBucket (returns T[]) and createBuckets (returns T[][]) 2012-12-15 12:08:39 -06:00
Sam Harwell 36800289a2 Rename absorb to getOrAdd 2012-12-15 12:08:37 -06:00
Sam Harwell 5d238a22c7 equals should check the argument type before attempting a cast 2012-12-15 12:08:35 -06:00
Sam Harwell 076a2dcbb9 Remove expensive method that's no longer needed 2012-12-15 12:08:34 -06:00
Sam Harwell c99703e150 Remove call to hashCode that was slowing down equals 2012-12-15 12:08:32 -06:00
Sam Harwell c009c5081d Add AbstractConfigHashSet to consolidate default constructor parameters 2012-12-15 12:08:30 -06:00
Sam Harwell 1274e819fe Fix remaining minor issues with use of generics in Tool 2012-12-15 12:04:22 -06:00
Sam Harwell 2582d33085 Add @SuppressWarnings("fallthrough") to method with intentional fallthrough 2012-12-14 09:43:21 -06:00
Sam Harwell 0504334d08 Add missing @Override annotations 2012-12-14 09:42:02 -06:00
Sam Harwell ed40c1aad1 Remove redundant casts 2012-12-14 09:41:11 -06:00
Sam Harwell 9d0ba56cbd Build against the latest ANTLR 3.5-SNAPSHOT 2012-12-14 09:40:12 -06:00
Sam Harwell 227214765d Cleaner initialization of predefined sets and maps 2012-12-14 09:38:40 -06:00
Sam Harwell ac55cf3990 Add missing generic type arguments 2012-12-14 09:37:22 -06:00
Sam Harwell 51dadaf7e8 Updated TestPerformance output (platform-specific newlines, simplified source name formatting) 2012-12-13 08:51:36 -06:00
Sam Harwell 129e403f4a Updated comments in TestPerformance 2012-12-13 08:45:14 -06:00
Sam Harwell e48d87d6a8 In TestPerformance, REUSE_LEXER and REUSE_PARSER default to false since it's an easier case to work with and overhead is minimal now that the DFA is shared between instances 2012-12-13 08:27:55 -06:00
Sam Harwell 6aef4ef1eb Introduce local variables in TestPerformance 2012-12-13 08:25:20 -06:00
Sam Harwell f7d0cacb09 Update changes.txt 2012-12-12 09:39:01 -06:00
Sam Harwell 9b75ea79f9 Automatically reduce SemanticContext.AND/SemanticContext.OR with a single operand to the operand itself 2012-12-12 09:35:54 -06:00
Sam Harwell e5e4402ea9 Merge remote branch 'sharwell/array-opt' with master 2012-12-12 09:28:55 -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 4a442562e6 Allow specifying the bootclasspath by the bootclasspath.java5 and bootclasspath.java6 variables 2012-12-07 14:43:13 -06:00
Sam Harwell 0e91700678 Stronger argument checks for ATN state and transition factory methods 2012-12-07 11:16:04 -06:00
Sam Harwell 26f16bed73 Updated documentation 2012-12-07 08:54:53 -06:00
Sam Harwell 38b5a8321b Remove reference to tree parsers 2012-12-07 08:50:54 -06:00
Sam Harwell 356b8e4b27 Updated parameter types of copy constructors, return types of dupNode 2012-12-07 08:31:38 -06:00
Sam Harwell 9d3c763470 Add ATNSimulator.SERIALIZED_VERSION, resolved antlr/antlr4#95 2012-12-06 13:07:32 -06:00
Sam Harwell 90020850ea Only show warnings and errors from maven-javadoc-plugin 2012-12-06 13:07:30 -06:00
Sam Harwell 64a4114850 Make debug fields compile-time constants to improve release runtime performance 2012-12-06 13:07:29 -06:00
Sam Harwell 886baaf773 Use separate lists in the serialized ATN for non-greedy states (cleaner, allows ATNs with twice as many states), resolves antlr/antlr4#96 2012-12-06 13:07:11 -06:00
Sam Harwell 064501967e Construct GrammarASTAdaptor with CharStream from lexer 2012-12-06 13:05:21 -06:00
Sam Harwell ee8344703b Fix inconsistency in elementOption syntax in tree grammars 2012-12-06 13:05:20 -06:00
Sam Harwell 3946c05eec Update dependencies now that ANTLR 3.5 RC 1 and ST 4.0.7 RC 1 are synced with Maven Central 2012-12-04 12:59:44 -06:00
Sam Harwell db32c80265 Fix bootstrap classpath references 2012-12-04 12:58:25 -06:00
Sam Harwell b2ab7ab5ac Rename master artifact to antlr4-master 2012-12-04 12:57:56 -06:00
Sam Harwell 9d47ac7169 Shaded output file is antlr4-4.0-complete.jar, includes all files from v4 runtime 2012-12-02 18:10:14 -06:00
Sam Harwell 380d3dadde Create a ParseTreeVisitor interface, rename current abstract base class to AbstractParseTreeVisitor 2012-12-02 17:57:28 -06:00
Sam Harwell 38739cec5e Fix handling of grammars in the default package (resolves antlr/antlr4#94) 2012-12-02 16:57:42 -06:00
Terence Parr f14cce6539 reset in prep for 4.0 release 2012-12-02 13:00:04 -08:00