-
Notifications
You must be signed in to change notification settings - Fork 0
/
doc.go
32 lines (20 loc) · 1 KB
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
Microlisp is a Lisp interpreter. It's primarily a toy, and is a work in progress.
Its initial definition is based on McCarthy's "A Micro-Manual for Lisp: Not the Whole Truth".
# Environments
An environment is a value that maintains mappings between a symbol and
a value. If an environment has a parent, then bindings are inherited.
The evaluator typically provides an environment implicitly.
Variables.
system-environment Primitives are bound in this environment.
user-environment User definitions are bound here, and it inherits system-environment.
Functions.
environment-bindings The environment's bindings represented as an association list.
# Errors
The error system is very simple. If an error value is thrown, it stops
the current evaluation, and is handled and printed by the REPL.
# Functions
error Raise an error value with a message composed of its arguments.
ignore-errors Invoke a function, trapping any errors thrown as a return value.
*/
package main // import "whitehouse.id.au/microlisp"