triton
cbb4451284
Small code cleanup. Non-functional change.
11 years ago
Dimitar Dobrev
ef4be0b959
Fixed the generation of code in a single file.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Tomi Valkeinen
4818d3974d
Pass Driver to CSharpTypePrinter
...
We need Driver.TargeInfo in CSharpTypePrinter so that we can find out the
widths of the integer types.
This patch changes CSharpTypePrinter to get the Driver reference in its
constructor. As all the other constructor parameters can be found from the
Driver reference, we can remove all the other parameters.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
12 years ago
Dimitar Dobrev
72089a499e
Marshalled C++ char as Mono/.NET char instead of sbyte for a more friendly API.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Øystein Krog
df7c1371a6
Pass in an CSharpExpressionPrinter instance to CSharpTextTemplate
12 years ago
triton
3e489c9a06
Updated the generators and tests for new class names.
12 years ago
triton
7f8f9289a1
Run CheckOperatorsOverloadsPass under both backends.
13 years ago
triton
5ada754d72
Reworked MoveOperatorToClassPass to be simpler and correct.
13 years ago
Dimitar Dobrev
4f1eba905f
Moved all operators not belonging to a type to the type of their first parameters.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
13 years ago
triton
ebde1312c2
Run the CheckAbiParameters pass after CheckOperatorsOverloadsPass since the latter can change the signature of the methods which can affect the correctness of the first pass.
13 years ago
marcos henrich
0cf8c03aa3
PassBuilder is now generic. Driver Passes is now called TranslationUnitPasses. Added to driver GeneratorOutputPasses. Removed most of the PassBuilder Extensions.
13 years ago
marcos henrich
e168e84d6a
Resolved ambiguity of System.Type and CppSharp.AST.Type
13 years ago
triton
b9e57dba78
Re-write the blocks generator again (thanks to esdrubal for helping me with the new design).
...
Now the whitespace/new line handling is done by the output generator per block, instead of having to be managed manually which could lead to all sorts of messy output without being extra careful.
Also the new system limits the usage of generics since C# was too limited to design it properly, and it ended up being more trouble than it was worth. The blocks kinds were also changed to be const int, since enums are very hard to extend and made it hard to provide a common interface for dealing with blocks.
13 years ago
triton
68ddfbdd6f
Move the AST project to the CppSharp.AST namespace.
13 years ago
triton
6dc4f120cb
Simplified the generators interface.
13 years ago
triton
13d1280dbb
Do per-generator pass initialization and switch the C# generator to use it.
13 years ago
triton
70f76588aa
Refactor file writing into the driver instead of duplicating it each generator.
13 years ago
triton
383850437e
Re-use the generator CSharpTypePrinter instance in CSharpTextTemplate.
13 years ago
triton
dd03761f6c
Remove the WrapperSuffix option and replace with a more general GenerateName delegate that can be hooked up by the user to customize the output name of the generated files.
13 years ago
triton
cc8f7cd1db
Renamed Cxxi references to CppSharp.
13 years ago
triton
128750df4c
Rework the C# type printer to return more information than just a string (CSharpTypePrinterResult).
13 years ago
triton
3f3b9f4aa3
Renamed the translation unit property to follow conventions.
13 years ago
triton
014a084039
Added the new C# backend (still a work-in-progress).
13 years ago
triton
04fa54d077
Move CLIGenerator to its own file.
13 years ago