Si vous constatez la perte de tickets, de commentaires ou de projets, veuillez consulter la page https://status.framasoft.org/incident/626.

Commit 934e8a4e authored by Christophe Benz's avatar Christophe Benz

Update transpiler (enumeration)

parent d69caef5
......@@ -117,7 +117,7 @@ def visit_dans(node):
return '{} {} {}'.format(
visit_node(node['expression'], parenthesised=True),
'not in' if node.get('negative_form') else 'in',
node['enumeration'],
visit_node(node['enumeration']),
)
......@@ -147,6 +147,10 @@ def visit_integer(node):
return str(node['value'])
def visit_interval(node):
return 'interval({}, {})'.format(node['first'], node['last'])
def visit_loop_expression(node):
unlooped_loop_expressions_nodes = iter_unlooped_nodes(
loop_variables_nodes=node['loop_variables'],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment