Ryan Harris
d1b1bb0c02
Disable compiler warnings that are irrelevant for generated code.
...
These warnings are turned off:
CS0162: Unreachable code detected
CS0219: The variable '...' is assigned but its value is never used
CS1591: Missing XML comment for publicly visible type or member '...'
2013-08-27 10:24:58 -04:00
Ryan Harris
8897097b95
Tag generated classes as non CLS compliant.
2013-08-26 16:45:05 -04:00
Sam Harwell
4de1e1b82b
Fix code generation for additional elements that match C# keywords
2013-08-05 21:46:14 -05:00
Sam Harwell
27c3e35cfd
Forgot to escape bracket in subtemplate
2013-08-05 21:10:56 -05:00
Sam Harwell
f4f905ea0e
Fix code generation when a rule or grammar name matches a C# keyword ( fixes #4 )
2013-08-05 21:10:39 -05:00
Sam Harwell
1e4a53919f
Add generated code file headers and [GeneratedCode] attributes ( fixes #11 )
2013-08-05 20:39:47 -05:00
Sam Harwell
4f043c87c7
Updated CSharp.stg to match changes in Java.stg
2013-08-05 20:38:04 -05:00
Sam Harwell
880bc161a2
Updated Maven references in pom.xml
2013-08-04 16:24:23 -05:00
Sam Harwell
5070954050
Updated pom.xml - now working on the 4.1 release
2013-08-04 16:24:05 -05:00
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
5af2411849
Fix improperly quoted string literal in template
2013-02-27 13:06:13 -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
0e694e1400
Fix group loading errors
2013-02-27 09:58:23 -06:00
Sam Harwell
d1d13b3103
Forgot to include framework v3.5
2013-02-27 09:38:41 -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
1ac1d986e8
Added copyright header
2013-02-26 14:37:32 -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
fc42fe1814
Lexer.ModeNames is now a property
2013-02-25 13:34:43 -06:00
Sam Harwell
21846ab23c
Updated pom.xml testing support
2013-02-25 11:48:01 -06:00
Sam Harwell
48485e0cda
Initial implementation of CSharpTarget.java with proper C# escape sequences
2013-02-24 14:31:32 -06:00
Sam Harwell
07a224640e
Remove duplicate sourceDirectory specification
2013-02-24 14:30:44 -06:00
Sam Harwell
9aa47eb18f
pom.xml should be using jar packaging
2013-02-24 14:30:23 -06:00
Sam Harwell
060075da4a
Update pom.xml to reference the correct artifact versions
2013-02-24 14:29:59 -06:00
Sam Harwell
333d706f73
Tweak generic type parameter name
2013-02-24 14:21:58 -06:00
Sam Harwell
66aeddd972
Expand generated parameter names
2013-02-24 14:21:57 -06:00
Sam Harwell
80fcee7e61
int.Parse instead of Integer.valueOf
2013-02-24 14:21:56 -06:00
Sam Harwell
c054183025
Remove unused static initializer
2013-02-24 14:21:55 -06:00
Sam Harwell
42456d75c8
Prepend underscore to field names of implicit labels
2013-02-24 14:21:53 -06:00
Sam Harwell
751f29b2d3
"is" instead of "instanceof"
2013-02-24 14:21:52 -06:00
Sam Harwell
e05a70438a
"base." instead of "super."
2013-02-24 14:21:51 -06:00
Sam Harwell
896c256cb9
Fix constructor chaining syntax
2013-02-24 14:21:49 -06:00
Sam Harwell
28944b69ed
Fix attribute syntax
2013-02-24 14:21:48 -06:00
Sam Harwell
401c0c4587
Fix generics syntax
2013-02-24 14:21:47 -06:00
Sam Harwell
485964483a
Remove throws clause from generated rule methods
2013-02-24 14:21:46 -06:00
Sam Harwell
548f9903ff
Fix constructor chaining syntax
2013-02-24 14:21:44 -06:00
Sam Harwell
5d87d0739b
Translate to properties instead of methods
2013-02-24 14:21:43 -06:00
Sam Harwell
af844d074a
boolean is just bool in C#
2013-02-24 14:21:42 -06:00
Sam Harwell
36c0a3f8ff
Reference appropriate type names in runtime
2013-02-24 14:21:40 -06:00
Sam Harwell
693a101220
Use the virtual and override modifiers as appropriate
2013-02-24 14:21:39 -06:00
Sam Harwell
65caff9353
Appropriate use of "static readonly" or "const" instead of "final"
2013-02-24 14:21:38 -06:00
Sam Harwell
c0dfb334a3
Fix class and interface signature syntax
2013-02-24 14:21:37 -06:00
Sam Harwell
1f2c25c543
Reference properties instead of methods
2013-02-24 14:21:28 -06:00
Sam Harwell
7bf910622e
Using instead of import statements
2013-02-24 13:24:33 -06:00
Sam Harwell
d33822a648
Namespace instead of package clause
2013-02-24 13:24:32 -06:00