package
0.0.57
Repository: https://github.com/eigenhombre/l1.git
Documentation: pkg.go.dev

# Functions

Cons creates a cons cell.
EnvKeys returns the keys of an environment, including any parents' keys.
Evaluate a list of expressions.
No description provided by the author
IsBalanced returns true iff parens are balanced.
LexItems lexes a string into a slice of tokens.
LexParseEval lexes, parses, and evaluates the given string.
LexRepr returns a string representation of a known lexeme.
No description provided by the author
LongDocStr returns a long, Markdown docstr for a function, macro or special form.
Num is a `num` constructor, which can take a string or a ("normal") number.
Parse takes a slice of tokens and returns a slice of Sexprs.
ReadLine reads a line from stdin "robustly".
ShortDocStr returns an abbreviated explanation of all functions, macros and special forms.

# Variables

Nil is the empty list / cons cell.
go:embed l1.l1.
True is the generic truthy item.
No description provided by the author

# Structs

Atom is the primitive symbolic type.
Builtin represents a function with a native (Go) implementation.
ConsCell is a cons cell.
Env stores a local environment, possibly pointing to a caller's environment.
Number wraps a big.Int (for now).
Token is a lexeme with a line number.

# Interfaces

Sexpr is a general-purpose interface for representing S-expressions.