A very simple implementation of Scheme in Haskell from the book Write Yourself a Scheme in 48 Hours. It is a work in progress.
The sources can be build by the .cabal
file using stack
or cabal
. Perhaps, we must also initialise the project managers for better library and environment handling.
stack
is recommended to avoid cabal
-hell.
cabal init; cabal build
or
stack init; stack build
Then the executable can be run by
cabal run
or
stack exec scheme
The source is divide into the following sections
Contains the data definitions for the project and hepler fucntions
Contains parsing functions for various datatypes. Implementation for more complex data types is commented out as it needs further refinement.
Contains the functions for evaluating the lisp expressions.
Contains definitions for error handling functions.
Definitions for supporting mutable environment variables.
Contains the REPL and main function.
- Complete the excercises.
- Possbily implement the complete R5RS standard.