Object member access works now

This commit is contained in:
Nathan Braswell
2016-01-21 19:16:29 -05:00
parent d43f36f1d9
commit 8c5bf36433
3 changed files with 27 additions and 7 deletions

View File

@@ -147,7 +147,7 @@ obj c_generator (Object) {
var parameters = node->function_call.parameters
if (func_name == "+" || func_name == "-" || func_name == "*" || func_name == "/" || func_name == "||"
|| func_name == "&&" || func_name == "<" || func_name == ">" || func_name == "<=" || func_name == ">="
|| func_name == "=="
|| func_name == "==" || func_name == "." || func_name == "->"
)
return string("(") + generate(parameters[0]) + func_name + generate(parameters[1]) + string(")")
// the post ones need to be post-ed specifically, and take the p off