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

43 Commits

Author SHA1 Message Date
Kevin Glynn
892d1c17e2 resolve property reads within dotted expressions 2011-01-13 13:09:05 +01:00
Kevin Glynn
d4d24341ac resolve simple property reads 2011-01-13 10:38:33 +01:00
Kevin Glynn
4c9cc2dd4a keep track of contexts so that we can spot possible properties 2011-01-12 14:52:41 +01:00
Kevin Glynn
c24abeeae7 pass dotnettype through expressions. build symtab for fields, vars 2011-01-12 09:38:52 +01:00
Kevin Glynn
1a23eafe90 add symbol table 2011-01-11 14:54:39 +01:00
Kevin Glynn
7a3229bf73 add type of super to symtab 2011-01-11 12:06:53 +01:00
Kevin Glynn
6f76bbc7f9 add translations for simple types 2011-01-10 11:23:24 +01:00
Kevin Glynn
2f87602d6c rewrite since namespace aliases need to be kept separate from the search path 2011-01-08 17:15:48 +01:00
Kevin Glynn
6270613b46 interfaces extend multiple interfaces 2011-01-07 19:53:47 +01:00
Kevin Glynn
6b5201b9f3 use 'thetext' attributes to be sure we are getting the necessary 2011-01-07 19:36:55 +01:00
Kevin Glynn
5e8707c7b9 Build type names. If first type in class_base is a class then extend from it 2011-01-07 18:09:50 +01:00
Kevin Glynn
bb423419b1 grap AppEnv, start generating dot net types for things 2011-01-07 16:20:14 +01:00
Kevin Glynn
163b651cd6 change class_base to be a list of ^(IMPLEMENTS type). Easier to convert first to EXTENDS if its a class 2011-01-07 16:18:47 +01:00
Kevin Glynn
de0fe58d63 tidy up, remove commented, dead code 2010-12-21 17:22:59 +01:00
Kevin Glynn
9c303dedce structs need default constructors 2010-12-21 17:11:10 +01:00
Kevin Glynn
11624cc674 option to omit timestamps, static constructors, indexers 2010-12-21 12:03:24 +01:00
Kevin Glynn
0940c53833 implement using statements and fix indentation 2010-12-20 22:05:25 +01:00
Kevin Glynn
f1c9c5e6aa Implement ?? operator (assumes we can call the expression multiple times ....) add throws Exception to methods and interface methods 2010-12-20 16:13:28 +01:00
Kevin Glynn
7f3951aff0 make long literals Longs 2010-12-20 13:34:23 +01:00
Kevin Glynn
e55bbd562c Change 'base' to 'super' token 2010-12-20 10:22:52 +01:00
Kevin Glynn
710d887c7b varargs support 2010-12-20 10:00:43 +01:00
Kevin Glynn
71512e308f ToString() -> toString() 2010-12-17 16:37:18 +01:00
Kevin Glynn
401716aaa1 emit constructors 2010-12-15 12:26:21 +01:00
Kevin Glynn
8a9eea3fcc Convert properties to methods 2010-12-14 16:45:41 +01:00
Kevin Glynn
4e6828f24f fill out interface bodies 2010-12-13 19:00:39 +01:00
Kevin Glynn
5a8a1c4974 added common statement types 2010-12-10 18:16:01 +01:00
Kevin Glynn
75ffb63350 add precedence table 2010-12-08 13:47:04 +01:00
Kevin Glynn
afef118a11 method headers 2010-12-06 17:24:18 +01:00
Kevin Glynn
4b761a4410 method headers, elide virtual and override keywords 2010-12-06 10:18:23 +01:00
Kevin Glynn
65658f5e06 checkpoint: We can process all files in ScormEngine again :) 2010-12-03 18:23:52 +01:00
Kevin Glynn
d0a695315a lots of treeifying and removed ambiguities 2010-12-01 17:02:06 +01:00
Kevin Glynn
b48d69e443 No UNARY_EXPR in PrettyPrint, actually create unary expressions :( 2010-11-24 17:13:39 +01:00
Kevin Glynn
f3e1ca6e0b no need for SEP now that types are wrapped 2010-11-24 11:29:30 +01:00
Kevin Glynn
80d4d0685d wrap types 2010-11-24 10:55:12 +01:00
Kevin Glynn
1884447120 checkpoint 2010-11-24 07:52:54 +01:00
Kevin Glynn
01fdc1d195 convert [,,] to [][][] 2010-11-20 15:28:25 +01:00
Kevin Glynn
3adfb22882 add type parameter constraints 2010-11-19 16:49:43 +01:00
Kevin Glynn
765e18384e Emit interfaces and structs (as class)
Don't emit all comments again when multiple classes in a file
2010-11-18 14:23:17 +01:00
Kevin Glynn
1ecc21f0c8 Start of support for classes
- Simplified pretty printer code by passing modifier template into definitions.
2010-11-16 17:29:08 +01:00
Kevin Glynn
f9e748242c support for straightforward enums 2010-11-16 13:51:43 +01:00
Kevin Glynn
01c71e3852 Pass information between driver and parsers via public properties. Pass isLast flag to Pretty Print to print all remaining comments. Be sure to process file sin the same order as C# source 2010-11-15 11:47:32 +01:00
Kevin Glynn
4a4a905eb5 Build packages from each top level type in the file. Emit comments :) 2010-11-13 19:11:47 +01:00
Kevin Glynn
e914af9031 Add extra translation steps to the pipeline to (eventually) produce Java 2010-11-07 21:57:24 +01:00