Commit Graph

270 Commits

Author SHA1 Message Date
Sam Harwell 61c141e994 Use IDictionary instead of IReadOnlyDictionary before .NET 4.5 2013-02-27 12:40:45 -06:00
Sam Harwell d898160d63 Use Utils.Join for improved compatibility with earlier frameworks 2013-02-27 12:21:38 -06:00
Sam Harwell 77d346406c Use bit operations instead of Enum.HasFlag 2013-02-27 12:19:52 -06:00
Sam Harwell acc785069e Use ReadOnlyCollection or array instead of IReadOnlyList to address compatibility problems prior to .NET 4.5 2013-02-27 12:19:15 -06:00
Sam Harwell 5d44535b50 Avoid using the Volatile.Read/Write since it's only supported in .NET 4.5 2013-02-27 12:08:12 -06:00
Sam Harwell 89dc5952df Update project references 2013-02-27 10:18:33 -06:00
Sam Harwell 5ee0cb10df Add projects to solution 2013-02-27 10:15:20 -06:00
Sam Harwell a990f72ba1 Assign unique project guids and update output folder paths 2013-02-27 10:15:10 -06:00
Sam Harwell fa4489e6bb Create framework-specific projects 2013-02-27 10:10:24 -06:00
Sam Harwell 2c36418999 Set framework-specific bin and obj output directories 2013-02-27 10:07:02 -06:00
Sam Harwell 12c8937492 Rename projects to indicate they target .NET 4.5 2013-02-27 10:02:09 -06:00
Sam Harwell 37d3e78d7b Set file SubType 2013-02-27 10:00:44 -06:00
Sam Harwell 54aea04255 Use the CustomToolNamespace property to place generated code in particular namespaces (defaults to the root namespace of the project) 2013-02-27 09:40:15 -06:00
Sam Harwell 8ee3a2204f Automatically select the C# target variant for the current framework 2013-02-27 09:37:09 -06:00
Sam Harwell 6463fff0e8 Add initial readme 2013-02-26 15:19:38 -06:00
Sam Harwell 0bb4046f8b Add code generation binaries and generate code for Java.g4 during the build 2013-02-26 14:53:06 -06:00
Sam Harwell 659c941f18 Copy Antlr4.targets to the output directory 2013-02-26 14:40:07 -06:00
Sam Harwell ebf8cd5abc Remove automatic left factoring declaration from Java.g4 since the processing is currently very slow 2013-02-26 14:39:19 -06:00
Sam Harwell 4862f07a86 Fix build warnings 2013-02-26 14:37:20 -06:00
Sam Harwell 11ba8324be Sign the Antlr4BuildTasks assembly 2013-02-26 14:36:11 -06:00
Sam Harwell 6abb26c29d Fix working directory 2013-02-26 14:36:11 -06:00
Sam Harwell 8bd2dec569 Parse generated files messages 2013-02-26 14:36:10 -06:00
Sam Harwell 8a1452961a Handle exceptions in message processing 2013-02-26 14:36:09 -06:00
Sam Harwell b36728df10 Update build message processing for the ANTLR 4 message formatting 2013-02-26 14:36:08 -06:00
Sam Harwell 4a3b2cdffc Generate shaded jar for the C# target 2013-02-26 14:36:07 -06:00
Sam Harwell 05da986f8f Add the CSharpTool extension of Tool to get access to generated file names during the code generation process 2013-02-26 14:36:06 -06:00
Sam Harwell ce8170bbab Updated code generator to use Java tool and support ANTLR 4 options 2013-02-26 14:36:05 -06:00
Sam Harwell ba1f0ccb74 Add the initial build task code 2013-02-26 14:35:51 -06:00
Sam Harwell 2775c17ffe Conversion needs to be wrapped in unchecked() 2013-02-26 11:16:24 -06:00
Sam Harwell f80c3d1578 Merge branch 'sharpen' 2013-02-26 11:15:01 -06:00
Sam Harwell e0b1d7dd26 Updated to latest reference build of ANTLR 4 2013-02-26 11:14:46 -06:00
Sam Harwell 72c0535d3e Return Interval? instead of Interval 2013-02-26 10:55:51 -06:00
Sam Harwell 2e57495fe4 Update Interval.Equals now that it's a struct 2013-02-26 10:55:33 -06:00
Sam Harwell 843fc1c2d3 No need to cache Interval instances now that it's a struct 2013-02-26 10:55:06 -06:00
Sam Harwell 6708ae6db3 Merge branch 'sharpen' 2013-02-26 10:52:02 -06:00
Sam Harwell 54c4bc826f Strings can be constant in C# 2013-02-26 10:51:42 -06:00
Sam Harwell e5a1ed6996 Translate Interval as a struct, and make Length a property 2013-02-26 10:39:46 -06:00
Sam Harwell 9582a1e610 Use indexers instead of the Set and Put extensions where the return value is not used 2013-02-26 10:31:04 -06:00
Sam Harwell 843d01dcac Implement CRC32 using zlib code 2013-02-26 10:28:04 -06:00
Sam Harwell 1c8e6dfe25 Remove unreachable code 2013-02-25 16:13:35 -06:00
Sam Harwell 54ebfa8625 Update RuleDependencyChecker to check assemblies instead of individual types 2013-02-25 15:15:47 -06:00
Sam Harwell 590ae4fe66 Implement runtime rule dependency checking 2013-02-25 15:09:31 -06:00
Sam Harwell 1bb1f23579 The Dependents enumeration is flags 2013-02-25 15:09:04 -06:00
Sam Harwell cc00681bf8 Add RuleDependencyAttribute 2013-02-25 15:08:24 -06:00
Sam Harwell 42d3ff06d3 Merge branch 'sharpen' 2013-02-25 14:38:47 -06:00
Sam Harwell cf73d49f6e checked and unchecked are keywords in C# 2013-02-25 14:38:30 -06:00
Sam Harwell 6b7eb5dad4 Updated RuleDependencyChecker to match the new behavior of RuleDependencyProcessor 2013-02-25 14:37:45 -06:00
Sam Harwell 6079069f99 Merge branch 'sharpen' 2013-02-25 13:24:05 -06:00
Sam Harwell 5e49211455 Constructors don't inherit visibility 2013-02-25 13:23:46 -06:00
Sam Harwell 21dcd8f5a3 Merge branch 'sharpen' 2013-02-25 13:04:05 -06:00
Sam Harwell 587b95db74 Fix switch case open/closed analysis 2013-02-25 13:03:34 -06:00
Sam Harwell 789b9578a6 Updated sharpen property annotations in Lexer 2013-02-25 12:54:42 -06:00
Sam Harwell 92fc3ac1a1 Remove unreferenced locals 2013-02-25 12:48:33 -06:00
Sam Harwell d5addbd287 Remove unreferenced branch targets 2013-02-25 12:48:03 -06:00
Sam Harwell d9a8735361 static readonly instead of const in TestPerformance 2013-02-25 12:47:20 -06:00
Sam Harwell 515af0e65a Fix warning about bit operation on sign-extended operand 2013-02-25 12:43:43 -06:00
Sam Harwell eb675668f4 Fix attribute target 2013-02-25 12:42:52 -06:00
Sam Harwell f0cb48b650 Include "new" modifier on interface methods 2013-02-25 12:42:36 -06:00
Sam Harwell 2e1d284a12 Suppress unreachable code warnings 2013-02-25 12:42:04 -06:00
Sam Harwell 81b256d1f3 Suppress warning about overriding Equals but not GetHashCode 2013-02-25 12:41:21 -06:00
Sam Harwell eaa92eb826 Sign the Antlr4.Runtime assembly 2013-02-25 12:13:35 -06:00
Sam Harwell 8cf6be9d89 Add initial Antlr4BuildTasks project, copied Antlr4.targets from Antlr3.targets 2013-02-25 12:12:09 -06:00
Sam Harwell 672f40c8b8 Fix link to CSharpTarget.java 2013-02-25 11:47:38 -06:00
Sam Harwell c444758cb4 Update Java grammars to work with the C# target 2013-02-25 11:34:19 -06:00
Sam Harwell a344c4e794 Add Java grammars 2013-02-25 11:31:25 -06:00
Sam Harwell 8424dc15e0 Organize usings 2013-02-25 11:28:30 -06:00
Sam Harwell 49e43cdccf Use BlockingCollection instead of ConcurrentBag 2013-02-25 11:26:30 -06:00
Sam Harwell d8f599da44 Add missing ctor 2013-02-25 11:25:55 -06:00
Sam Harwell 1a0534ae3f Fix format specifier 2013-02-25 11:25:29 -06:00
Sam Harwell 1430873fdf TestPerformance extends BaseTest 2013-02-25 11:25:07 -06:00
Sam Harwell 95b6cb3fa7 Mark methods virtual 2013-02-25 11:21:29 -06:00
Sam Harwell f91b1880f7 Exclude code that isn't translated but isn't needed yet 2013-02-25 11:20:50 -06:00
Sam Harwell ab0b02bae0 Support compiling and executing grammars for the C# target 2013-02-25 11:20:00 -06:00
Sam Harwell b24fa5a99a Make sure tmpdir always points to a new directory for each test 2013-02-25 11:14:03 -06:00
Sam Harwell 2047f5298e Implement writeFile and eraseTempDir 2013-02-25 11:13:27 -06:00
Sam Harwell 783ee4d46d Implement StreamVacuum 2013-02-25 11:12:09 -06:00
Sam Harwell 0fa9e30dfe Implement mkdir 2013-02-25 10:47:07 -06:00
Sam Harwell e68e053043 Handle setup/cleanup 2013-02-25 10:46:05 -06:00
Sam Harwell d4b173c664 Add BaseTest 2013-02-24 18:31:40 -06:00
Sam Harwell 6150ea082b Use built-in types 2013-02-24 16:55:25 -06:00
Sam Harwell 40298160ec Fix interface names 2013-02-24 16:53:36 -06:00
Sam Harwell e05beca7c6 Updated TestPerformance, now just waiting for BaseTest 2013-02-24 16:48:02 -06:00
Sam Harwell b77220ee7f Updated Arrays and added Checksum interface with stub CRC32 implementation 2013-02-24 16:47:35 -06:00
Sam Harwell 1c92b79dab Add QueuedTaskScheduler 2013-02-24 16:44:22 -06:00
Sam Harwell dd3633d95d Format code 2013-02-24 15:25:36 -06:00
Sam Harwell ddefabb8ae Translate unparsable generic constructs 2013-02-24 15:24:07 -06:00
Sam Harwell 0d43ca3e1c Translate annotations to attributes 2013-02-24 15:23:30 -06:00
Sam Harwell 99cc1695b3 Translate class declaration syntax 2013-02-24 15:21:34 -06:00
Sam Harwell 94b1e3c84b Translate console output 2013-02-24 15:20:08 -06:00
Sam Harwell 9dde20de76 Translate "instanceof" to "is" 2013-02-24 15:19:22 -06:00
Sam Harwell 0cc941d45d Translate assert statements 2013-02-24 15:18:52 -06:00
Sam Harwell 4e2961eb93 Translate unsigned right shift 2013-02-24 15:17:43 -06:00
Sam Harwell 2bf39bcdac Extract anonymous classes 2013-02-24 15:16:50 -06:00
Sam Harwell 23c8f4ea2d Fix uses of "boolean" and "final" 2013-02-24 15:11:56 -06:00
Sam Harwell 007a224076 Translate foreach syntax 2013-02-24 15:07:19 -06:00
Sam Harwell 0bf7f2666c Translate X.class to typeof(X) 2013-02-24 15:03:59 -06:00
Sam Harwell b29ad52685 Translate console output 2013-02-24 15:02:28 -06:00
Sam Harwell cc73453ff1 Fix uses of "boolean" and "final" 2013-02-24 14:55:59 -06:00
Sam Harwell 6f60cfbeb7 Remove throws clauses from methods 2013-02-24 14:54:26 -06:00
Sam Harwell 7bbe3001de Translate annotations to attributes 2013-02-24 14:54:11 -06:00
Sam Harwell 7c02865ccb Add using statements 2013-02-24 14:49:17 -06:00
Sam Harwell 05b451bfeb Fix uses of "boolean" and "final" 2013-02-24 14:47:33 -06:00
Sam Harwell 2d68418dbc Added TestPerformance (body is unaltered Java code) 2013-02-24 14:44:40 -06:00
Sam Harwell fa66235f85 Add extra files to Solution Items folder 2013-02-24 12:58:12 -06:00
Sam Harwell bc2b1cf44e Merge branch 'sharpen' 2013-02-24 12:55:48 -06:00
Sam Harwell 24e8a73afc Return IReadOnlyList instead of IList 2013-02-24 12:45:09 -06:00
Sam Harwell 68732032e0 Interlocked.Increment returns the incremented value, not the original value 2013-02-24 12:45:08 -06:00
Sam Harwell db1ee841c6 Fix generic type usage 2013-02-24 12:45:07 -06:00
Sam Harwell baa2a95ad1 Fix format strings 2013-02-24 12:45:05 -06:00
Sam Harwell 55331e4a0f Fix Equals and GetHashCode for ATNConfigSet 2013-02-24 12:45:04 -06:00
Sam Harwell f8cce16966 Add SequenceEqualityComparer which implements Equals and GetHashCode in a manner compatible with Java's List interface 2013-02-24 12:45:03 -06:00
Sam Harwell a988b668d3 Add RuleVersionAttribute 2013-02-24 12:45:01 -06:00
Sam Harwell 2ea504a493 Fix use of encoding argument in AntlrFileStream 2013-02-24 12:45:00 -06:00
Sam Harwell 7d7f5a1afc Add override BitSet.ToString 2013-02-24 12:44:59 -06:00
Sam Harwell fdb73a92b8 Add TestBitSet and fix bugs 2013-02-24 12:44:57 -06:00
Sam Harwell 17374ffc49 Updated reference build of ANTLR 4 2013-02-24 12:42:19 -06:00
Sam Harwell 459baaf4ca Default visibility for enum constants in enum classes is public 2013-02-24 12:38:42 -06:00
Sam Harwell 861c951d56 Add missing license headers 2013-02-20 09:30:04 -06:00
Sam Harwell 148fc0f827 Merge branch 'sharpen' 2013-02-20 09:21:32 -06:00
Sam Harwell 39f51a4781 Move projects into runtime/CSharp 2013-02-20 09:19:59 -06:00