Once LPython can use ASR's generic function facilities, it should just be a generic function. In the meantime, let's implement:
str_int(x) ... converts an integer to a stringstr_float(x) ... converts a floating point to a string
These will be implemented in pure Python, such as:
defstr_int(x):
....
# s = ...returns
For now, let's put this into one file, and print the result at the end. Some things will not be implemented in LPython yet, so let's open up issues for things that are not implemented yet, and we'll fix them.
Once LPython can use ASR's generic function facilities, it should just be a generic function. In the meantime, let's implement:
str_int(x)... converts an integer to a stringstr_float(x)... converts a floating point to a stringThese will be implemented in pure Python, such as:
For now, let's put this into one file, and print the result at the end. Some things will not be implemented in LPython yet, so let's open up issues for things that are not implemented yet, and we'll fix them.