adjusting the logic for neg nums
This commit is contained in:
parent
1dba233118
commit
a0842d278a
@ -18,8 +18,11 @@ def _resolve_atom(value):
|
|||||||
elif value == "false":
|
elif value == "false":
|
||||||
return HYBool(False)
|
return HYBool(False)
|
||||||
|
|
||||||
if value.isdigit():
|
try:
|
||||||
return HYNumber(value)
|
return HYNumber(value)
|
||||||
|
except ValueError:
|
||||||
|
pass
|
||||||
|
|
||||||
return HYSymbol(value)
|
return HYSymbol(value)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user