justinethier / cyclone

:cyclone: A brand-new compiler that allows practical application development using R7RS Scheme. We provide modern features and a stable system capable of generating fast native binaries.
http://justinethier.github.io/cyclone/
MIT License
823 stars 42 forks source link

string->number does not handle complex numbers #532

Open justinethier opened 5 months ago

justinethier commented 5 months ago

EG:

cyclone> (string->number "1+1i")
#f
cyclone> (string->number "1+1.0i")
#f
cyclone> (string->number "1.0+1.0i")
#f
cyclone> 1i
1.0i
cyclone> (string->number "1i")
#f