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

292 Commits

Author SHA1 Message Date
Kevin Glynn
e5fb7faca4 support for translating classes into RepTranslations 2010-11-01 08:34:45 +01:00
Kevin Glynn
24c2470528 add Warnings 2010-11-01 08:32:13 +01:00
Kevin Glynn
14ae0a1231 add byref for parameters, replace <> by [] in types 2010-11-01 08:31:22 +01:00
Kevin Glynn
62170aa475 Template walker will recognize classes now. Need to pad out 2010-10-29 19:49:26 +02:00
Kevin Glynn
12d02666e3 Add -warnings 2010-10-29 19:47:23 +02:00
Kevin Glynn
050c8b4967 fix serialization of Uses 2010-10-29 19:46:17 +02:00
Kevin Glynn
358b2a1eb6 abort mkit if antlr phase fails 2010-10-29 19:45:17 +02:00
Kevin Glynn
05687e6b39 Make DirectoryHT generic (DirectoryHT<TypeRepTemplate>) 2010-10-28 16:57:10 +02:00
Kevin Glynn
75d5812a1a Fix namespace for test version of Options.cs to avoid warnings (at least) 2010-10-28 16:55:49 +02:00
Kevin Glynn
e060727f03 Set Tokens property on CommonTreeStream produced from parse_file.
Otherwise 'text' attribute doesn't work.  Took me ages to find that too.
Some simplification of code
2010-10-28 11:43:04 +02:00
Kevin Glynn
b62e86c401 Wrap qualified identifier in a sub-tree
By wrapping in a subtree we can use qualified_identifier.text to extract all the input that was matched by that rule, otherwise
'text' only matches the first node in a list.  Took me ages to find that :(

Send comments to hidden channel, hiopefully we can then retrieve them later.
2010-10-28 11:40:09 +02:00
Kevin Glynn
7f6591b0d1 Add mkit shell script to rebuild grammars and project 2010-10-28 11:36:37 +02:00
Kevin Glynn
1d8f622d69 Add -help and -listtypes option 2010-10-26 16:34:18 +02:00
Kevin Glynn
bd7faabd37 Add CS2JSettings to simplify passing command line arguments to phases
Update cs.g to use recommended one from upstream UnitTests/cs.g
2010-10-26 16:32:48 +02:00
Kevin Glynn
70a3f53b38 Don't create enum file unconditionally (and it is still broken) 2010-10-23 10:17:00 +02:00
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
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