erg/compiler/erg_compiler/lib/std/_erg_convertors.py
2022-12-06 23:44:24 +09:00

14 lines
206 B
Python

from _erg_int import Int
from _erg_nat import Nat
def int__(i):
try:
return Int(i)
except:
return None
def nat__(i):
try:
return Nat(i)
except:
return None