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
Kevin Glynn
f9338afe1d
Bug fixes to the c# grammar
2010-11-02 16:52:37 +01:00
Kevin Glynn
c6f4268b0a
extract enums and delegates
2010-11-01 18:28:17 +01:00
Kevin Glynn
51bf268084
extract interfaces
2010-11-01 18:02:17 +01:00
Kevin Glynn
945607bed2
extract structs
2010-11-01 14:05:45 +01:00
Kevin Glynn
c89a5ba6c5
extract overloadable unary and binary operators
2010-11-01 13:54:23 +01:00
Kevin Glynn
d971e37728
complete events. add indexers
2010-11-01 10:26:58 +01:00
Kevin Glynn
f0c66340c0
fields <-> events. translate type names in namespace_or_typename
2010-11-01 09:11:59 +01:00
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