Module lisp

Source
Expand description

The lisp that codebake embeds as a scripting language

This file contains the struct and enum definitions as well as some top-level functions like default_env and run_repl.

Much of this lisp was written using this AMAZING tutorial! https://stopa.io/post/222

Structs§

Environment
The environment that the lisp is operating in.
Error
Just a newtype’d String since we don’t need complex error representation
Interpreter
Lambda
Reader

Enums§

Expression
Every expression in the embedded lisp is a variant of this enumeration:

Functions§

default_env
Returns an instance of Environment that contains all the builtin functions and values
parse_eval

Type Aliases§

InterpreterResult
LispResult