Commit 1e861b34 authored by Christophe Benz's avatar Christophe Benz

Handle unary nodes

parent 563d0218
......@@ -228,6 +228,10 @@ def visit_ternary_operator(node):
def visit_unary(node):
return '-{}'.format(visit_node(node['expression'], parenthesised=True))
def visit_variable_const(node):
return '{} = {}'.format(node['name'], node['value'])
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment