chibi-scheme icon indicating copy to clipboard operation
chibi-scheme copied to clipboard

Unable to read the numeric literals `#d+inf.0` and `#b+inf.0`

Open wtokuno opened this issue 2 years ago • 1 comments

  1. When I enter the expression #d+inf.0, I get the following error:

    > #d+inf.0
    ERROR on line 12: invalid complex numeric syntax: #\n
    >
    
  2. Entering the expression #b+inf.0 will result in the following error:

    > #b+inf.0
    ERROR on line 11: found non-base 10 complex
    > ERROR: undefined variable: nf.0
    

    The same is true if you add #o or #x instead of #b as a prefix.

wtokuno avatar Aug 27 '21 09:08 wtokuno

That's exceedingly pointless syntax, but technically allowed by the standard, I'll add support when I get time.

ashinn avatar Aug 27 '21 12:08 ashinn