ast

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: May 2, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Name token.Token
	Args []Expr
}

type Cons

type Cons struct {
	Head string
	Tail List
}

func (*Cons) Expr

func (_ *Cons) Expr()

func (*Cons) Length

func (c *Cons) Length() int

func (*Cons) Type

func (c *Cons) Type() types.Type

type Def

type Def struct {
	Name token.Token
	Expr Expr
}

type Empty

type Empty struct{}

func (*Empty) Expr

func (_ *Empty) Expr()

func (*Empty) Length

func (e *Empty) Length() int

func (*Empty) Type

func (e *Empty) Type() types.Type

type Expr

type Expr interface {
	Expr()
	Type() types.Type
}

type Ident

type Ident struct {
	Lit string
}

func (*Ident) Expr

func (_ *Ident) Expr()

func (*Ident) String

func (id *Ident) String() string

func (*Ident) Type

func (_ *Ident) Type() types.Type

type Int

type Int struct {
	Lit string
}

func (*Int) Expr

func (_ *Int) Expr()

func (*Int) String

func (i *Int) String() string

func (*Int) Type

func (_ *Int) Type() types.Type

type List

type List interface {
	Length() int
	Expr
}

type String

type String struct {
	Lit string
}

func (*String) Expr

func (_ *String) Expr()

func (*String) String

func (s *String) String() string

func (*String) Type

func (_ *String) Type() types.Type

Jump to

Keyboard shortcuts

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