hawkw / decaf

like Java, but less so
hawkweisman.me/decaf
Other
18 stars 4 forks source link

Implement codegen for function calls #62

Closed hawkw closed 9 years ago

hawkw commented 9 years ago
hawkw commented 9 years ago

function5.decaf doesn't appear to exist. There's an output file for it in samples, but no source code.

hawkw commented 9 years ago

57c4518aa7eb8f1f10a0bcae27b9ec58b19a7feb implements code gen for calls to local, static functions. function3.decaf works. function1.decaf, function2.decaf, function4.decaf, function6.decaf all are broken because of The Terrible AST Problem (#64).

hawkw commented 9 years ago

49105607308179ebe703004f6ec65b68c0e41620 fixes function1.decaf.

hawkw commented 9 years ago

6daab015a2d1253019c8a2c456fe8c497e5c3512 fixes function2.decaf

hawkw commented 9 years ago

function6.decaf compiles as of c793e2871cb061825ededb956beb1bf5b8a21d74

hawkw commented 9 years ago

The sample source code for function4.decaf actually was wrong, it had a method with the return type int that never returned an integer. I changed the return type to voidin a8f975c7e69dd1e242f2ad3c387171986d319b03 and the program now compiles.

hawkw commented 9 years ago

Closed by a8f975c7e69dd1e242f2ad3c387171986d319b03.