Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatSExprInt64 ¶
func FormatSExprTypName ¶
FormatSExprTypName is a stub for Sexpr formatters for primitive types.
Types ¶
type Allocator ¶
type Allocator struct {
	// contains filtered or unexported fields
}
    Allocator allocates nodes in batches. Construct Allocators with NewAllocator and pass them by value.
type Enum ¶
type Enum enum
Enum is an enumeration type.
const ( // @for item EnumName Enum = 't' )
Enum constants.
func (Enum) FormatSExpr ¶
type SexprFormatter ¶
type Struct ¶
type Struct struct {
	// contains filtered or unexported fields
}
    Struct is the type of a reference to an immutable record.
func (Struct) FormatSExpr ¶
type StructValue ¶
type StructValue struct {
	// @for item
	Name Type // 't'
}
    StructValue is the logical type of a record. Immutable records are stored in nodes.
func (StructValue) R ¶
func (x StructValue) R(a Allocator) Struct
R constructs a reference to an immutable record.
func (StructValue) WithName ¶
func (x StructValue) WithName(y Type) StructValue
WithName constructs a new value where the value of Name has been replaced by the argument.
type Sum ¶
type Sum struct {
	// contains filtered or unexported fields
}
    Sum is the type of a tagged union of records.
func (Sum) FormatSExpr ¶
func (Sum) MustBeType ¶
MustBeType performs a downcast. If the downcast fails, panic.
 Click to show internal directories. 
   Click to hide internal directories.