Documentation
¶
Overview ¶
Package pp implements a LISP pretty printer.
Index ¶
- func Append(b []byte, s *slip.Scope, obj slip.Object) []byte
- type Array
- type Bindings
- type DefGenMethod
- type Defclass
- type Defflavor
- type Defgeneric
- type Defmethod
- type Defun
- type Defvar
- type Doc
- type Fun
- type Fun1i2
- type Lambda
- type Leaf
- type Let
- type List
- type MethodOption
- type Node
- type OptPairs
- type Pair
- type Progn
- type Quote
- type Vertical
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Array ¶
type Array struct {
List
// contains filtered or unexported fields
}
Array represents an array.
type Bindings ¶
type Bindings struct {
List
}
Bindings represents the bindings in a let or let* block.
type DefGenMethod ¶ added in v1.3.1
type DefGenMethod struct {
List // forms
// contains filtered or unexported fields
}
DefGenMethod represents a defmethod block.
type Defclass ¶ added in v1.3.1
type Defclass struct {
List
// contains filtered or unexported fields
}
Defclass represents a defclass block.
type Defgeneric ¶ added in v1.3.1
type Defgeneric struct {
List // options
// contains filtered or unexported fields
}
Defgeneric represents a defmethod block.
type Defmethod ¶
type Defmethod struct {
List
// contains filtered or unexported fields
}
Defmethod represents a defmethod block.
type Defun ¶
type Defun struct {
List
// contains filtered or unexported fields
}
Defun represents a defun block.
type Defvar ¶
type Defvar struct {
List // value and doc if present
// contains filtered or unexported fields
}
Defvar represents a defvar block.
type Doc ¶
type Doc struct {
// contains filtered or unexported fields
}
Doc holds a documentation string.
type Fun ¶
type Fun struct {
List
// contains filtered or unexported fields
}
Fun represents a named function.
type Fun1i2 ¶
type Fun1i2 struct {
List
// contains filtered or unexported fields
}
Fun1i2 represents a named function with a special first argument.
type Lambda ¶
type Lambda struct {
List
// contains filtered or unexported fields
}
Lambda represents a lambda block.
type Leaf ¶
type Leaf struct {
// contains filtered or unexported fields
}
Leaf represent the lowest level object type such as number, strings, etc.
type MethodOption ¶ added in v1.3.1
type MethodOption struct {
List // forms
// contains filtered or unexported fields
}
MethodOption represents a generic :method option block.
type Node ¶
type Node interface {
// contains filtered or unexported methods
}
Node is the interface all pretty print elements must implement.
type OptPairs ¶ added in v1.3.1
type OptPairs struct {
List
}
OptPairs represents an options that starts with a symbol and is followed by key-value pairs.
type Progn ¶ added in v1.3.1
type Progn struct {
List
}
Progn represents a named function with a special first argument.