Documentation
¶
Index ¶
- func DumpCore(mainCore Expr, modCores map[string][]Bind) string
- type Addr
- type AddrKind
- type App
- type Bind
- type Case
- type Compose
- type Cons
- type Const
- type Expr
- type FrameBuilder
- type Lambda
- type Let
- type Lowerer
- type Num
- type Pattern
- type PatternConst
- type PatternTuple
- type PatternVar
- type Prim
- type Stdin
- type Thunk
- type Tuple
- type Var
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FrameBuilder ¶
type FrameBuilder struct {
// contains filtered or unexported fields
}
FrameBuilder tracks slot allocation for one activation (the program body, a module binding, or a lambda) and the upvalues a nested lambda captures from it. freeNames and slotNames are debug-only; they are never read by the machine.
type PatternConst ¶
type PatternTuple ¶
type PatternTuple struct {
Fields []Pattern // arity 2 is cons
}
type PatternVar ¶
type Stdin ¶
type Stdin struct{ Bytes bool }
Stdin is a reference to one of the two standard-input streams: the code-point stream, or the byte stream when Bytes is set. It is a node of its own rather than a Const holding the stream value, because the stream is a stateful thunk that is created on demand at run time — a constant pool is for immutable values, and one holding a live stream has nothing sensible to render in the AST or bytecode dumps.
Click to show internal directories.
Click to hide internal directories.