projects
/
fur
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move .output.txt to .stdout.txt to reflect which output stream the files contain
[fur]
/
generation.py
diff --git
a/generation.py
b/generation.py
index
145132f
..
44a8d16
100644
(file)
--- a/
generation.py
+++ b/
generation.py
@@
-27,10
+27,8
@@
def generate_variable_expression(expression):
return expression.variable
def generate_function_call_for_fur_infix_operator(expression):
return expression.variable
def generate_function_call_for_fur_infix_operator(expression):
- return 'operator${}(
{}, {}
)'.format(
+ return 'operator${}(
stack, jump
)'.format(
expression.name,
expression.name,
- generate_expression(expression.left),
- generate_expression(expression.right),
)
def generate_structure_literal_expression(expression):
)
def generate_structure_literal_expression(expression):
@@
-82,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)
# 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,
function_expression,
function_expression,
function_call.argument_count,