node

package
v0.0.0-...-65b8ca1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddExpr

type AddExpr struct {
	Lhs, Rhs Expr
}

func (*AddExpr) GenExpr

func (e *AddExpr) GenExpr()

type Assign

type Assign struct {
	Lhs *IdentExpr
	Rhs Expr
}

func (*Assign) GenStmt

func (s *Assign) GenStmt()

type Block

type Block struct {
	StmtList []Stmt
}

func (*Block) GenBlock

func (b *Block) GenBlock()

type CallExpr

type CallExpr struct {
	Callee string
	Args   []Expr
}

func (*CallExpr) GenExpr

func (e *CallExpr) GenExpr()

type DivExpr

type DivExpr struct {
	Lhs, Rhs Expr
}

func (*DivExpr) GenExpr

func (e *DivExpr) GenExpr()

type EqualExpr

type EqualExpr struct {
	Lhs, Rhs Expr
}

func (*EqualExpr) GenExpr

func (e *EqualExpr) GenExpr()

type Expr

type Expr interface {
	GenExpr()
}

type ExprStmt

type ExprStmt struct {
	Expr Expr
}

func (*ExprStmt) GenStmt

func (s *ExprStmt) GenStmt()

type FunctionDecl

type FunctionDecl struct {
	Name         string
	ParamOffsets []int
	Body         *Block
	Stack        int
}

func (*FunctionDecl) GenTopLevelDecl

func (f *FunctionDecl) GenTopLevelDecl()

type GreaterEqualExpr

type GreaterEqualExpr struct {
	Lhs, Rhs Expr
}

func (*GreaterEqualExpr) GenExpr

func (e *GreaterEqualExpr) GenExpr()

type GreaterExpr

type GreaterExpr struct {
	Lhs, Rhs Expr
}

func (*GreaterExpr) GenExpr

func (e *GreaterExpr) GenExpr()

type IdentExpr

type IdentExpr struct {
	Offset int
}

func (*IdentExpr) GenExpr

func (e *IdentExpr) GenExpr()

type IfStmt

type IfStmt struct {
	CondExpr  Expr
	ThenBlock *Block
	ElseBlock *Block
}

func (*IfStmt) GenStmt

func (s *IfStmt) GenStmt()

type IntConstExpr

type IntConstExpr struct {
	IntValue int
}

func (*IntConstExpr) GenExpr

func (e *IntConstExpr) GenExpr()

type LessEqualExpr

type LessEqualExpr struct {
	Lhs, Rhs Expr
}

func (*LessEqualExpr) GenExpr

func (e *LessEqualExpr) GenExpr()

type LessExpr

type LessExpr struct {
	Lhs, Rhs Expr
}

func (*LessExpr) GenExpr

func (e *LessExpr) GenExpr()

type ModExpr

type ModExpr struct {
	Lhs, Rhs Expr
}

func (*ModExpr) GenExpr

func (e *ModExpr) GenExpr()

type MulExpr

type MulExpr struct {
	Lhs, Rhs Expr
}

func (*MulExpr) GenExpr

func (e *MulExpr) GenExpr()

type NotEqualExpr

type NotEqualExpr struct {
	Lhs, Rhs Expr
}

func (*NotEqualExpr) GenExpr

func (e *NotEqualExpr) GenExpr()

type NotExpr

type NotExpr struct {
	Expr Expr
}

func (*NotExpr) GenExpr

func (e *NotExpr) GenExpr()

type ReturnStmt

type ReturnStmt struct {
	ReturnExpr Expr
}

func (*ReturnStmt) GenStmt

func (s *ReturnStmt) GenStmt()

type SourceFile

type SourceFile struct {
	TopLevelDecls []TopLevelDecl
}

func (*SourceFile) GenSourceFile

func (s *SourceFile) GenSourceFile()

type Stmt

type Stmt interface {
	GenStmt()
}

type SubExpr

type SubExpr struct {
	Lhs, Rhs Expr
}

func (*SubExpr) GenExpr

func (e *SubExpr) GenExpr()

type TopLevelDecl

type TopLevelDecl interface {
	GenTopLevelDecl()
}

Jump to

Keyboard shortcuts

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