mayankmahajan24 / QL

QL Language and Compiler, for Programming Langauges and Translators Course Fall 2015
4 stars 2 forks source link

Jast mayank gary #23

Closed garymlin closed 8 years ago

garymlin commented 8 years ago

Wrote the code generation for : -function declaration, "Func_decl" -function calls, "Call" -return statement, "Return"

Look to test-function-9.ql and test-function-10.ql for sick tests that work correctly.

Things that don't work: -Passing in arrays as function parameter does not work because of the parser definition of arg_decl. -Doubles and floats are mapped weirdly, so they don't work as well. -Can't create a function with no arguments passed in

anshulkgupta commented 8 years ago

"Doubles and floats" do we even have doubles in our language?