-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Complex number in Scheme #2641
Comments
I did few attempts to fix the number regex, but it was failing for other tests. |
Seems like I used an old version of the spec when making the number pattern. I'll fix it soon. Note to me: Page 62 of this document defines the grammar for a valid number. |
@jcubic I have a question. I implemented it and now |
All examples works in Kawa but not in Gauche, Guile and Racket those are my base implementations that I'm testing against (racket is not exactly Scheme but it's compatible). The examples also work in my implementation (LIPS), except Maybe if Kawa support those, they can be marked as numbers, most of the time people will not use those type of values, because if they are not numbers they are treat as symbols so without quote '10 is marked as variable name, and they will use Kawa they would like to mark them as numbers. |
If nobody is gonna these anyway, then I'll just keep the strict grammar. |
Information:
Description
Complex number without imaginary number value is valid scheme complex number
Example
Example valid numbers that can be tested
The text was updated successfully, but these errors were encountered: