mattwparas / steel

An embedded scheme interpreter in Rust
Apache License 2.0
1.05k stars 49 forks source link

Support +inf.0 -inf.0 +nan.0 -nan.0 #166

Closed wmedrano closed 6 months ago

wmedrano commented 6 months ago

Required storing a "next" token since +inf.0 was being parsed as 2 tokens: + and inf.0.

Seems like this behavior is used to make creating addition functions easy like:

(define x 1234)
+x => function that adds 1234.