X-Git-Url: https://code.kerkeslager.com/?p=fur;a=blobdiff_plain;f=generation.py;h=44a8d16cd221531c4a77a7b898b33261400a2cd9;hp=d5d64baaefc4d709f7e5f2b2c5d1614c5be31ab7;hb=d875a383425b06597d6ddc8a8c7fe67feec77962;hpb=728158b2204b6454eecc12bf2988b3f0cbb9ec81 diff --git a/generation.py b/generation.py index d5d64ba..44a8d16 100644 --- a/generation.py +++ b/generation.py @@ -27,7 +27,7 @@ def generate_variable_expression(expression): return expression.variable def generate_function_call_for_fur_infix_operator(expression): - return 'operator${}(stack)'.format( + return 'operator${}(stack, jump)'.format( expression.name, ) @@ -80,7 +80,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,