mcfunc

package
v0.2.7-beta.4 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: ISC Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Registry = map[string][]string{}
View Source
var UsedNamespaces = map[string]byte{}

Functions

func AddLine

func AddLine(path string, line string) error

Types

type Function

type Function struct {
	Path      string
	Scanner   *templates.BufferedScanner
	Templates map[string]*templates.Inline
}

func New

func New(path string, scanner *bufio.Scanner, registry map[string]*templates.Inline) *Function

func (*Function) MakeErrorContext

func (fn *Function) MakeErrorContext(line_index uint, line string) liberrors.Context

type Processor

type Processor struct {
	Function *Function
}

func NewProcessor

func NewProcessor(fn *Function) *Processor

func (*Processor) Build

func (proc *Processor) Build() error

func (*Processor) ExecInlineTemplates

func (proc *Processor) ExecInlineTemplates(
	output *templates.Buffer,
	root_indent int,
	is_root bool,
) error

func (*Processor) Inline

func (proc *Processor) Inline(input *templates.Buffer) error

Jump to

Keyboard shortcuts

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