]> git.rmz.io Git - my-scheme.git/commit
Handle boolean constants
authorSamir Benmendil <me@rmz.io>
Sun, 14 Jan 2018 00:24:21 +0000 (00:24 +0000)
committerSamir Benmendil <me@rmz.io>
Sun, 14 Jan 2018 00:24:21 +0000 (00:24 +0000)
commit081ba0cc6439a82a508100a59d6fa5dba80609d9
tree39039d6d0b335506f9c746ed759e799d0081757a
parentd06e8ae01efc00ea0eb6f0bed346032b004aca57
Handle boolean constants

Turns out that Scheme defines `#t` and `#f` to be `true` and `false`.

`let` is used to devife a new symbol `atom` which is a String.
`case...of` matches the literals and constructs a `LispVal` of the
appropriate type and value. `_` is a match all token.
app/Main.hs