ast

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BooleanLiteral

type BooleanLiteral struct {
	Token token.Token
	Value bool
}

func (*BooleanLiteral) String

func (bl *BooleanLiteral) String() string

func (*BooleanLiteral) TokenLiteral

func (bl *BooleanLiteral) TokenLiteral() string

type Expression

type Expression interface {
	Node
	// contains filtered or unexported methods
}

type ExpressionStatement

type ExpressionStatement struct {
	Token      token.Token
	Expression Expression
}

func (*ExpressionStatement) String

func (e *ExpressionStatement) String() string

func (*ExpressionStatement) TokenLiteral

func (e *ExpressionStatement) TokenLiteral() string

type HTMLStatement

type HTMLStatement struct {
	Token token.Token
}

func (*HTMLStatement) String

func (h *HTMLStatement) String() string

func (*HTMLStatement) TokenLiteral

func (h *HTMLStatement) TokenLiteral() string

type Identifier

type Identifier struct {
	Token token.Token
	Value string
}

func (*Identifier) String

func (i *Identifier) String() string

func (*Identifier) TokenLiteral

func (i *Identifier) TokenLiteral() string

type IntegerLiteral

type IntegerLiteral struct {
	Token token.Token
	Value int64
}

func (*IntegerLiteral) String

func (i *IntegerLiteral) String() string

func (*IntegerLiteral) TokenLiteral

func (i *IntegerLiteral) TokenLiteral() string

type NilLiteral

type NilLiteral struct {
	Token token.Token
}

func (*NilLiteral) String

func (n *NilLiteral) String() string

func (*NilLiteral) TokenLiteral

func (n *NilLiteral) TokenLiteral() string

type Node

type Node interface {
	TokenLiteral() string
	String() string
}

type Program

type Program struct {
	Statements []Statement
}

func (*Program) String

func (p *Program) String() string

func (*Program) TokenLiteral

func (p *Program) TokenLiteral() string

type Statement

type Statement interface {
	Node
	// contains filtered or unexported methods
}

type StringLiteral

type StringLiteral struct {
	Token token.Token
	Value string
}

func (*StringLiteral) String

func (i *StringLiteral) String() string

func (*StringLiteral) TokenLiteral

func (i *StringLiteral) TokenLiteral() string

Jump to

Keyboard shortcuts

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