ast

package
v0.0.0-...-a98d9d1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2015 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

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

func NewListNode

func NewListNode() *Node

func NewNode

func NewNode(t Type, value interface{}) *Node

func NewNumberNode

func NewNumberNode(value int) *Node

func NewStringNode

func NewStringNode(value string) *Node

func NewSymbolNode

func NewSymbolNode(name string) *Node

func (*Node) AddChild

func (n *Node) AddChild(node *Node)

func (*Node) IntValue

func (n *Node) IntValue() int

func (*Node) NodeValue

func (n *Node) NodeValue() *Node

func (*Node) String

func (n *Node) String() string

func (*Node) StringValue

func (n *Node) StringValue() string

type Type

type Type int
const (
	TypeList Type = iota
	TypeNumber
	TypeString
	TypeSymbol
)

Jump to

Keyboard shortcuts

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