generator

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UnknownStatementError = errors.New("unknown statement")
View Source
var UnknownTemplateError = errors.New("unknown template")
View Source
var ZeroDivisionError = errors.New("zero division is not allowed")
View Source
var ZeroModuloError = errors.New("zero modulo is not allowed")

Functions

This section is empty.

Types

type Generator

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

func New

func New(tree *ast.Program, ctx *ast.ParseContext) *Generator

func (*Generator) GenWrapper

func (g *Generator) GenWrapper() (*bytes.Buffer, error)

GenWrapper starts the generation process from the root Program node.

type Identifier

type Identifier interface {
	// contains filtered or unexported methods
}

type IdentifierConstraint

type IdentifierConstraint interface {
	ast.NodeVar | ast.LocalVar
}

type LocalIdentifier

type LocalIdentifier struct {
	ast.LocalVar
}

type NodeInIdentifier

type NodeInIdentifier struct {
	ast.NodeVar
	// contains filtered or unexported fields
}

type NodeOutIdentifier

type NodeOutIdentifier struct {
	ast.NodeVar
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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