/haskell_playground

just a sandbox for learning haskell. right now it's a lisp interpreter. maybe later it'll be a forth interpreter. or both.

Primary LanguageHaskell

A toy Lisp loosely based on Write Yourself a Scheme in 48 Hours.

TODO:

  • error checking
  • repl
  • builtins for IO
  • builtins for list manipulation
  • a basic standard library
  • map
  • reduce
  • apply builtin (?). like right now (reduce + '(1 2 3)) doesn't work
  • types: nil, vectors
  • variadic functions
  • pattern matching/destructuring
  • let
  • basic shorthand/macros: , (lambda (a1, …, aN)) -> #( %1 … $N)
  • quote -> '
  • recursion
  • modules/namespaces
  • show AST
  • maps

To hack:

$ ./dev.sh

To run the tests:

$ ./test.sh

To run the program:

$ ./run.sh