language

package
v0.0.0-...-1ec79b4 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comment

type Comment struct {
	Pos   Position
	Value string
}

func (*Comment) Clone

func (c *Comment) Clone() Expression

func (*Comment) Equal

func (c *Comment) Equal(e Expression) bool

func (*Comment) String

func (c *Comment) String() string

type Expression

type Expression interface {
	String() string
	Clone() Expression
	Equal(Expression) bool
}

type Keyword

type Keyword string

func (Keyword) Clone

func (k Keyword) Clone() Expression

func (Keyword) Equal

func (k Keyword) Equal(e Expression) bool

func (Keyword) Name

func (k Keyword) Name() string

func (Keyword) String

func (k Keyword) String() string

type Literal

type Literal[E LiteralValue] struct {
	Value E
}

func (*Literal[E]) Clone

func (lit *Literal[E]) Clone() Expression

func (*Literal[E]) Equal

func (lit *Literal[E]) Equal(e Expression) bool

func (*Literal[E]) IsLiteral

func (*Literal[E]) IsLiteral()

func (*Literal[E]) String

func (lit *Literal[E]) String() string

type LiteralValue

type LiteralValue interface {
	float64 | int64 | string | bool | struct{}
}

type Sexp

type Sexp []Expression

func (Sexp) Clone

func (s Sexp) Clone() Expression

func (Sexp) Equal

func (s Sexp) Equal(e Expression) bool

func (Sexp) String

func (s Sexp) String() string

type Symbol

type Symbol string

func (Symbol) Clone

func (s Symbol) Clone() Expression

func (Symbol) Equal

func (s Symbol) Equal(e Expression) bool

func (Symbol) String

func (s Symbol) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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