dianaliu / oop

Final project for CSCI-UA.0470-001. See branch 'final' for our submission.
1 stars 0 forks source link

Constructors! #13

Open dianaliu opened 12 years ago

dianaliu commented 12 years ago

We're just hardcoding an empty constructor right now. This is for CLP.

dianaliu commented 12 years ago

See ClassLayoutParser. Need to look for ConstructorDeclaration nodes in the JavaAST and then add it to the CPP AST Header Declaration Then, modify CPP Printer.

dianaliu commented 12 years ago

CPP doesn't like initializing a field to a default value in the struct. You have to separate it to the constructor of the Class.