X-Git-Url: https://code.kerkeslager.com/?a=blobdiff_plain;f=generation.py;h=64554d02e966356fefba59e60e4c7f12e1aad3f9;hb=eec2a40d60e5f6a00b5013ef46d2ed2925f23da5;hp=145132f5abb996b3b6ca1235e2e1c27282bfd365;hpb=8d6f07b43d8b41473fb7d8779bbc7a5843adcd7b;p=fur diff --git a/generation.py b/generation.py index 145132f..64554d0 100644 --- a/generation.py +++ b/generation.py @@ -27,10 +27,9 @@ def generate_variable_expression(expression): return expression.variable def generate_function_call_for_fur_infix_operator(expression): - return 'operator${}({}, {})'.format( + return 'operator${}(stack, jump, {})'.format( expression.name, - generate_expression(expression.left), - generate_expression(expression.right), + expression.metadata.line, ) def generate_structure_literal_expression(expression): @@ -82,7 +81,7 @@ def generate_function_call(function_call): # TODO Check the type of the things being called function_expression = generate_variable_expression(function_call.function_expression) - return '{}.instance.closure.call(environmentPool, {}.instance.closure.closed, {}, stack)'.format( + return '{}.instance.closure.call(environmentPool, {}.instance.closure.closed, {}, stack, jump)'.format( function_expression, function_expression, function_call.argument_count,