Commit 0e8c5f1b authored by Tom Niget's avatar Tom Niget

Add support for emitting float literals

parent 6ee5d335
......@@ -68,6 +68,8 @@ class ExpressionVisitor(NodeVisitor):
elif isinstance(node.value, int):
# TODO: bigints
yield str(node.value)
elif isinstance(node.value, float):
yield repr(node.value)
elif isinstance(node.value, complex):
yield f"PyComplex({node.value.real}, {node.value.imag})"
elif node.value is None:
......
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