Commit Graph

354 Commits

Author SHA1 Message Date
Sam Harwell c64ad1924e Constructor is protected when the generated parser is abstract 2013-02-27 20:56:22 -06:00
Sam Harwell 9e341411ad Use "parser" instead of just "p" 2013-02-27 20:54:51 -06:00
Sam Harwell eb310ae3e8 Use <%...%> instead of "..." 2013-02-27 20:53:43 -06:00
Sam Harwell 5b3767003a Use as+nullcheck instead of is+cast 2013-02-27 19:50:15 -06:00
Sam Harwell db7d3351f9 Generate partial classes 2013-02-27 19:46:21 -06:00
Sam Harwell 743315b08f Updated preprocessor definitions for test project 2013-02-27 19:20:48 -06:00
Sam Harwell 048b354391 Updated support for the v2.0 runtime 2013-02-27 19:00:14 -06:00
Sam Harwell 09b0e046be Add compatibility layer for the v3.0 runtime 2013-02-27 18:58:05 -06:00
Sam Harwell ec36fa790f Updated support for the v2.0 runtime 2013-02-27 18:53:17 -06:00
Sam Harwell 3d5f7664c6 Use Dictionary constructor where allowed 2013-02-27 18:53:16 -06:00
Sam Harwell 59583da8b0 Explicit usings 2013-02-27 18:52:16 -06:00
Sam Harwell efc964bdc6 Use TryGetValue and ContainsKey instead of Get extension method 2013-02-27 18:52:07 -06:00
Sam Harwell 25551e6985 Update TestPerformance to run single-threaded prior to .NET 4 (TaskScheduler is not available before that) 2013-02-27 13:48:10 -06:00
Sam Harwell 1fe11155d6 IEqualityComparer<T> is not covariant before .NET 4 2013-02-27 13:47:05 -06:00
Sam Harwell 104de1a1c5 Update BaseTest to be compatible with .NET 3.5 2013-02-27 13:34:19 -06:00
Sam Harwell f063557b7b IEnumerable<T> in .NET 3.5 is not covariant 2013-02-27 13:24:19 -06:00
Sam Harwell 1020033096 Updated v3.5+ projects with a NET_3_5 preprocessor definition 2013-02-27 13:23:38 -06:00
Sam Harwell 4231313eb1 Add compatibility types to the v3.5 runtime (types introduced in .NET 4.0) 2013-02-27 13:23:09 -06:00
Sam Harwell 5d167ce21b Update the TargetFrameworkVersion for all remaining projects 2013-02-27 13:13:32 -06:00
Sam Harwell ca4823e67c Update assembly names to match the target framework versions 2013-02-27 13:12:38 -06:00
Sam Harwell ca133e541d Fix Collections.SingletonMap for .NET 4.5 2013-02-27 13:08:31 -06:00
Sam Harwell 5af2411849 Fix improperly quoted string literal in template 2013-02-27 13:06:13 -06:00
Sam Harwell dbc1bc5a51 Use HashSet instead of ISet for improved compatibility with earlier frameworks 2013-02-27 12:59:44 -06:00
Sam Harwell 7e55c0a4e8 Merge branch 'sharpen' 2013-02-27 12:58:36 -06:00
Sam Harwell 191c24f89b Translate Set interface to HashSet instead of ISet for improved compatibility with earlier frameworks 2013-02-27 12:56:24 -06:00
Sam Harwell 02d608a21c Ignore Transition.serializationTypes 2013-02-27 12:54:25 -06:00
Sam Harwell fc7587d754 Remove dependency on CustomAttributeExtensions (available in .NET 4.5 only) 2013-02-27 12:48:10 -06:00
Sam Harwell ec45a07c03 Updated preprocessor definitions for v4.0 and v4.5 runtimes 2013-02-27 12:43:57 -06:00
Sam Harwell 47efe0bad5 Updated TargetFrameworkVersion for v4.0 runtime 2013-02-27 12:43:33 -06:00
Sam Harwell 3ad50763b6 Return the proper collection types from generated context getter methods 2013-02-27 12:42:10 -06:00
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 0e694e1400 Fix group loading errors 2013-02-27 09:58:23 -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 d1d13b3103 Forgot to include framework v3.5 2013-02-27 09:38:41 -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 c859debc68 CSharpTarget loads the framework-specific template, then imports CSharpTarget.stg as a common base template 2013-02-27 09:35:10 -06:00
Sam Harwell c464a72115 Add template groups and targets for each framework version we intend to support 2013-02-27 09:34:25 -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