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

499 Commits

Author SHA1 Message Date
Kevin Glynn
5a8a1c4974 added common statement types 2010-12-10 18:16:01 +01:00
Kevin Glynn
55363bc038 progress on outputting expressions and if then else 2010-12-09 17:30:11 +01:00
Kevin Glynn
75ffb63350 add precedence table 2010-12-08 13:47:04 +01:00
Kevin Glynn
41c4479473 more output 2010-12-07 15:30:04 +01:00
Kevin Glynn
81c3d13cf2 emit braces for method bodies when appropriate 2010-12-06 19:56:10 +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
cdecbce4c0 fix broken CollectComments, split verbatim strings on carriage returns 2010-12-04 13:00:16 +01:00
Kevin Glynn
82df2babbe fix for verbatim strings 2010-12-03 20:31:12 +01:00
Kevin Glynn
eafac4ff89 convert predefined types, optional package name, verbatim strings, 2010-12-03 20:17:40 +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
1f2374d213 more legible (to me) dump 2010-11-24 17:12:12 +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
c99eb4a136 more output 2010-11-24 07:50:39 +01:00
Kevin Glynn
69955f78ff remove java keywords by prefixing with "__" 2010-11-24 07:42:25 +01:00
Kevin Glynn
cf86542a32 more (virtual) tokens 2010-11-24 07:27:51 +01:00
Kevin Glynn
3b786355f3 more templates 2010-11-24 07:27:05 +01:00
Kevin Glynn
fed9624042 write out the translation stages in debug modes 2010-11-24 07:26:14 +01:00
Kevin Glynn
86a23b1c78 Add a dumpNodesFlat routine since dumpNodes is confusing me, and crashes 2010-11-24 07:25:31 +01:00
Kevin Glynn
9f2015ed92 collect comments as we go, and emit collected comments periodically, emit (some of) field declarations 2010-11-20 15:29:39 +01:00
Kevin Glynn
01fdc1d195 convert [,,] to [][][] 2010-11-20 15:28:25 +01:00
Kevin Glynn
e9ac5f88d2 need more time :( 2010-11-20 15:24:07 +01:00
Kevin Glynn
3adfb22882 add type parameter constraints 2010-11-19 16:49:43 +01:00
Kevin Glynn
7f5b446e03 Extend Xconversiontimeout value to avoid spurious build failures 2010-11-19 16:48:56 +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
ba1bf1cb4c whoops, tyargs may be null 2010-11-18 14:22:01 +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
84983f7a83 If the enum value is a simple numeric literal, then use that as the index for the members map 2010-11-16 16:01:56 +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
16babbd494 Add template file to control Java pretty printing 2010-11-10 19:03:09 +01:00
Kevin Glynn
e914af9031 Add extra translation steps to the pipeline to (eventually) produce Java 2010-11-07 21:57:24 +01:00
Kevin Glynn
e4bd86900b remove QID token, so that cs.g stays close to upstream 2010-11-06 15:15:24 +01:00
Kevin Glynn
690a5af383 Fix logic to detect empty files 2010-11-06 13:56:40 +01:00
Kevin Glynn
657b8ed465 resync with upstream 2010-11-06 08:43:09 +01:00
Kevin Glynn
7d5658a1f3 sync keywords with cs.g 2010-11-05 14:32:29 +01:00
Kevin Glynn
30a65f35e3 sync spacing with upstream, added 'get' to also_keyword (don't know why!) 2010-11-05 14:28:28 +01:00
Kevin Glynn
ffa3bc436a Don't mark out define / undef as special. Remove empty alternative to avoid endless looping 2010-11-04 14:32:07 +01:00
Kevin Glynn
9cc8008697 Ignore lexer errors in parts of the file that the preprocessor is omitting 2010-11-04 14:30:53 +01:00
Kevin Glynn
02887dacfa debug show files as they are processed 2010-11-04 12:29:38 +01:00
Kevin Glynn
69032a775e use the right skip token, sigh 2010-11-04 12:28:12 +01:00
Kevin Glynn
b509cea5f4 fix from upstream, allow ws between # and endif 2010-11-04 12:27:36 +01:00
Kevin Glynn
951644a194 debug statements show progress through input 2010-11-03 15:46:35 +01:00
Kevin Glynn
0f71efb834 need to check for generic_argument_list before committing 2010-11-03 15:45:57 +01:00
Kevin Glynn
adf31bc9fe Don't throw away error messages\! 2010-11-03 15:43:18 +01:00