Kevin Glynn
7ce2c1bb51
.gitignore fixes
2010-10-23 10:00:57 +02:00
Kevin Glynn
3be0349115
simplify doFile: Stop passing streams around
2010-10-23 10:00:25 +02:00
Kevin Glynn
0a2b669ac4
Switch cs2j to use NDesk.Options, much saner
2010-10-22 20:28:34 +02:00
Kevin Glynn
7f6eda7e9b
Rename SignatureExtracter -> TemplateExtracter (will I ever make my mind up?)
2010-10-22 20:27:47 +02:00
Kevin Glynn
916eca5eac
Add delegates
2010-10-21 16:31:09 +02:00
Kevin Glynn
948f702ad1
To access static members of classes in Java we will need to import the whole name of the class
2010-10-20 18:56:26 +02:00
Kevin Glynn
50cff4d439
Support casts
2010-10-20 18:51:41 +02:00
Kevin Glynn
ce5f462672
Java for Property getters setters serialize as Set Get like current cs2j
2010-10-20 18:51:14 +02:00
Kevin Glynn
01ab36f9a6
Implement JavaGet and JavaSet.
...
- Omit 'special' get_ and set_ methods in DLL produced for getter/setters
- Allow properties to be marked read/write only and honour when generating auto java
2010-10-20 17:46:36 +02:00
Kevin Glynn
74eb3622d2
variables in java strings are ${} not {}
2010-10-20 17:45:23 +02:00
Kevin Glynn
db3da413b0
Add DLL with test code to test cs2jTemplateGen.exe
2010-10-20 17:43:14 +02:00
Kevin Glynn
1a7f16d503
If Java property isn't set then generate a likely string from the context
2010-10-20 13:41:49 +02:00
Kevin Glynn
4933c8f3c5
Mark static methods
2010-10-19 16:48:24 +02:00
Kevin Glynn
f26a2f3172
Support for Generic Type Parameters on methods
2010-10-19 14:12:42 +02:00
Kevin Glynn
aeadd3744e
Print out types that are TypeVars
2010-10-19 10:41:43 +02:00
Kevin Glynn
43c1249563
Add Inherits, Slurp up nested classes
2010-10-19 10:40:55 +02:00
Kevin Glynn
661f14d3af
Ignore MonoDevelop's userprefs files
2010-10-19 10:05:58 +02:00
Kevin Glynn
9822bd2bcc
Print Type Parameters too
2010-10-15 17:38:06 +02:00
Kevin Glynn
613e11c377
Build type strings via TypeHelper.buildTypeName so that we handle generic types better (note: delegate types such as Action<> seem broken)
2010-10-15 16:34:18 +02:00
Kevin Glynn
0bf8cc9aed
just grab params once and update directly
2010-10-15 14:31:10 +02:00
Kevin Glynn
3d3af6aed0
Add NDesk.Options for command line option processing. Add cs2jTempleGen to generate xml templates from DLLs
2010-10-15 14:29:29 +02:00
Kevin Glynn
791c01efa5
Big, Interim Commit. Main thing here is Translation Template rewrite
...
This is in a half-broken state, but Translation Template is now more how I want it.
Major things for TranslationTemplate:
- re-org of classes to be better aligned with reality
- Value equality implemented (and days of my life wasted)
- Many collections are lists so that we can add to them as we parse code
Also:
- The start of a unit test suite (yay!)
-
2010-10-11 18:16:01 +02:00
Kevin Glynn
3e0bd40d32
User prefs and updates ignores (for signatureextracter and mono\'s *.pidb files)
2010-09-29 11:37:53 +02:00
Kevin Glynn
70b00bb248
Make solution runnable via monoDevelop, target .Net 3.5 rather than 4.0
...
These changes were made so that we could run cs2j under Mono. It looks like
this won't break the windows build, but will have to check that later.
2010-09-29 11:29:22 +02:00
Kevin Glynn
153670a282
Do not throw exception when called with zero args
2010-09-29 11:28:49 +02:00
Kevin Glynn
b8dffaab5b
start calling SignatureExtracter
2010-07-17 15:07:29 -05:00
Kevin Glynn
37ceaf2bef
Collect namespace name from rules
2010-07-17 15:06:54 -05:00
Kevin Glynn
d07d2fca94
better debugging routines
2010-07-17 15:06:18 -05:00
Kevin Glynn
416c6fd003
Use common code in AntlrUtils
2010-07-17 15:05:51 -05:00
Kevin Glynn
85bce1eac3
Add CommonWalker base class for common helper methods
2010-07-17 14:03:55 -05:00
Kevin Glynn
d68a8dd4a0
add minimal, but WORKING, tree crawler :)
2010-07-16 12:15:00 -05:00
Kevin Glynn
379450ebf2
simplify setup and print ast nodes
2010-07-15 14:22:42 -05:00
Kevin Glynn
542817993a
cosmetic
2010-07-15 14:18:50 -05:00
Kevin Glynn
3eea1c7aaf
simplify #define processing
2010-07-15 14:18:17 -05:00
Kevin Glynn
da70cd4b9a
move templates into CLR directory (not C# specific)
2010-07-15 14:17:20 -05:00
Kevin Glynn
ae4f47d268
change namespace, don't take #define's directly from comandline
2010-07-15 14:16:34 -05:00
Kevin Glynn
4c9ef39275
Refresh cs2j parser from AntlrCSharp repository
2010-06-27 17:19:15 -05:00
Kevin Glynn
11663b51fd
Add antlr-3.3 jar and CSharp 3.2 runtime source
...
The Antlr.Runtime source is taken from the AntlrCSharp source repository.
A readme.txt there says:
*** WARNING ***
This project uses Tree Pattern Matching, which was added to ANTLR 3.2. The CSharp 3.1 runtime has no support for
Tree Pattern Matching. There is no CSharp 3.2 Runtime :) There will not be a CSharp 3.2 Runtime.
Build Instructions:
- To build this project from the .g grammar files you must use the included antlr-3.3.jar. The antlr-3.2.jar does
not have string templates (used to generate the parser/lexer) that work with the updated runtime. Your
parser/lexer will not compile if you do not use the included antlr3.3.jar.
- You must use this solution's custom Antlr3.Runtime (already done for you). This is a snapshot of the source, with
bug fixes I have made. The runtime pieces I use seem to work just fine. YMMV if you use others. Good luck with that :)
2010-06-27 16:47:02 -05:00
Kevin Glynn
d4e1d843ed
Add gitignore files
2010-05-31 08:24:37 -05:00
Kevin Glynn
7a90354938
Add build instructions
2010-05-31 08:23:55 -05:00
Kevin Glynn
b1f489d7dc
Convert to VS2010
2010-05-31 08:22:58 -05:00
Kevin Glynn
de6c0fcada
Add Antlr3 rewrite from Rustici Subversion
2010-05-29 10:08:47 -05:00