Commit e56ab165 authored by dbarbera's avatar dbarbera
Browse files

Added num operator generation

parent c597bbe8
......@@ -866,6 +866,8 @@ def _primary_call(prim):
return generate_float(args)
elif name == 'power':
return generate_power(args)
elif name == 'num':
return generate_num(args)
def generate_length(params):
......@@ -923,6 +925,11 @@ def generate_power(params):
return['powi'], [left_val, right_conv])
def generate_num(params):
''' Generate the code for the built-in num operation'''
return expression(params[0])
Supports Markdown
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