1
0
mirror of https://github.com/twiglet/cs2j.git synced 2025-01-18 13:15:17 +01:00

761 Commits

Author SHA1 Message Date
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
b35194c4bc Include dist/build.properties in solution 2010-09-29 08:39:37 -05: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
5ad9ea2028 Add a build.properties for the client distributions release2010.1.0.13824 2010-09-20 13:02:37 -05:00
Kevin Glynn
62e55b5839 update version number 2010-09-20 13:02:11 -05:00
Kevin Glynn
f9c3c1f17d Add dist target 2010-09-20 13:01:50 -05:00
Kevin Glynn
9fe650b5f5 Add Prelude comment to Java Output files
Add a comment to the head of every Java output file stating that this file was
produced by CS2J.

A command line argument (markDate) controls  whether the translation date is
included in this initial comment.

markDate should be set false for Rustici (end similar) else it will
produce spurious source control diffs
2010-09-20 06:34:26 -05:00
Kevin Glynn
d825e3c348 Merge from rustici/trunk:
------------------------------------------------------------------------
r13498 | ben.clark | 2010-08-20 23:04:52 +0200 (Fri, 20 Aug 2010) | 1 line

support for trimmed empty check w/o performing trim (avoid associated copy)
------------------------------------------------------------------------
r13354 | ben.clark | 2010-08-04 23:34:47 +0200 (Wed, 04 Aug 2010) | 1 line

fix for ontime 334, 'N#' format support
------------------------------------------------------------------------
r13303 | ben.clark | 2010-08-02 18:53:11 +0200 (Mon, 02 Aug 2010) | 1 line

fixed infinite loop in recurive directory delete
------------------------------------------------------------------------
r13222 | ben.clark | 2010-07-22 16:09:51 +0200 (Thu, 22 Jul 2010) | 1 line

need to know if an entry is a directory or not, to avoid writing directory entries as files
------------------------------------------------------------------------
r13200 | ben.clark | 2010-07-20 16:13:11 +0200 (Tue, 20 Jul 2010) | 1 line

merged back lastindexofany fix
------------------------------------------------------------------------
r12990 | ben.clark | 2010-06-22 04:44:58 +0200 (Tue, 22 Jun 2010) | 1 line

new translation needed for PENS
2010-08-26 12:54:07 +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
f718a71970 support for new String('x',5) === "xxxxx" 2010-07-14 15:51:49 -05:00
Kevin Glynn
749a91af39 ugly hack to stop translation segfaulting on New<byte>() code 2010-07-14 15:16:15 -05:00
Kevin Glynn
eea4e54a17 add type arguments to quiten java compiler 2010-07-14 15:14:57 -05:00
Kevin Glynn
1f2a9adba8 Support for StingBuilder.ensurecapacity and corrected translation for setlength 2010-07-14 15:13:57 -05:00
Kevin Glynn
aa8dd21ace support for ToString(X2) and number.round(places) 2010-07-14 15:13:05 -05:00
Kevin Glynn
2d332eb986 add IsLetterOrDigit 2010-07-14 15:10:50 -05:00
Kevin Glynn
a20120407f Add small support for new C# feature optional values 2010-07-14 15:10:27 -05:00
Kevin Glynn
a097df8a0e support for goto and labelled statements
goto is converted (wrongly in general) to a continue statement
2010-07-14 13:18:46 -05:00
Kevin Glynn
577c5b21c3 hack: Ignore duplicate fields
(probably due to insufficient #iffery treatment we are processing extra lines that we shouldn't)
2010-07-14 13:16:15 -05:00
Kevin Glynn
d07f3a97de Add descriptions, let dumpProperties run init to read in properties from files 2010-07-12 20:21:27 -05:00
Kevin Glynn
7069b42023 Turn C# destructors into finalize() methods.
TODO: probably should call super.finalize()
2010-07-12 20:11:50 -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
0b73f7ddcd Include version number in src zip
- We use git describe to generate a build number from most recent tag
2010-06-21 18:47:25 -05:00
Kevin Glynn
6262fde7e2 Sync from svn trunk v2010.1.0 2010-06-21 16:31:42 -05:00
Kevin Glynn
4e9eef902d Ignore .bak files (from winMerge) 2010-06-21 16:25:17 -05:00
Kevin Glynn
de2680aebd Add Type arguments to squelch some warnings 2010-06-07 12:32:32 -05:00
Kevin Glynn
d9d7530103 (broken) support for X509Certificates
- Add placeholder
2010-06-07 12:07:59 -05:00
Kevin Glynn
0532c9dc6f Support Convert base64
- Use commons-codec for base64 encoding support
- Add 3rd party reame for licenses
- add apache commons-codec.jar
2010-06-07 12:06:55 -05:00
Kevin Glynn
0a5d22e8dd Adapt translations to new EncodingSupport wrapper class
- Encoding is now a wrapper class, not translated directly to coding string
2010-06-07 12:04:23 -05:00
Kevin Glynn
e1729486cc Simplify build.xml
- remove antcalls because I thought they were breaking cancel behaviour
- fix cancel (ugly, looks like depends are run before unless= is checked, so add unless=is.run.cancelled to all tagets that do work)
- remove echoTranslateCS2J, better to use -v option to cs2j
2010-06-06 20:44:45 -05:00
Kevin Glynn
befc9e5ddc Add build files into solution 2010-06-04 08:29:23 -05:00
Kevin Glynn
81fe4a6e4a Fix encoding for utf-8 2010-06-04 08:27:49 -05:00
Kevin Glynn
b30ae76c17 Add simple launch option
- add simple launch option that just asks for source and target
- simplify properties,  death to ScormEngine baggage
2010-06-03 07:51:24 -05:00