X-Git-Url: https://code.kerkeslager.com/?p=fur;a=blobdiff_plain;f=generation.py;h=d855d07b3a5c6f4d384f5d032e096a9608fae9cf;hp=e167f25e642579b8d6112536d8d6a672b088bb94;hb=1c6569d51fe16165b0114dfea143d8c6a971777c;hpb=6b38b7cc077425e4366eaea2813e19c2a1fb15d0 diff --git a/generation.py b/generation.py index e167f25..d855d07 100644 --- a/generation.py +++ b/generation.py @@ -56,10 +56,10 @@ def generate_expression(expression): def generate_function_call(function_call): # This gets called twice, so we want to be sure it is efficient and without side effects - assert isinstance(function_call.function_expression, transformation.CVariableExpression) + assert isinstance(function_call.function_expression, transformation.CSymbolExpression) # TODO Check the type of the things being called - function_expression = generate_variable_expression(function_call.function_expression) + function_expression = generate_expression(function_call.function_expression) return '{}.instance.closure.call(environmentPool, {}.instance.closure.closed, {}, stack, {}, jump)'.format( function_expression, function_expression,