pp

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package pp implements a LISP pretty printer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(b []byte, s *slip.Scope, obj slip.Object) []byte

Append appends a pretty formatted object using the default printer setting with print variables overridden by scoped variables.

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 Defflavor

type Defflavor struct {
	List
}

Defflavor represents a defflavor 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 Let

type Let struct {
	List
	// contains filtered or unexported fields
}

type List

type List struct {
	// contains filtered or unexported fields
}

List represents a list.

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 Pair added in v1.3.1

type Pair struct {
	List
}

Pair represents a key value pair.

type Progn added in v1.3.1

type Progn struct {
	List
}

Progn represents a named function with a special first argument.

type Quote

type Quote struct {
	// contains filtered or unexported fields
}

Quote represents a list.

type Vertical added in v1.3.1

type Vertical struct {
	List
}

Vertical represents a list that either fully fits on one line or has each element on it's own line.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL