compiler

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package compiler orchestrates semantic normalization and runtime compilation. It keeps compile-time work centralized and reusable across schema-set entrypoints.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildConfig added in v0.0.25

type BuildConfig struct {
	MaxDFAStates   uint32
	MaxOccursLimit uint32
}

BuildConfig configures runtime compilation.

type Prepared added in v0.0.25

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

Prepared stores normalized artifacts and lazy build state.

func Prepare added in v0.0.25

func Prepare(parsed *parser.Schema) (*Prepared, error)

Prepare clones, normalizes, and validates a parsed schema.

func PrepareOwned added in v0.0.25

func PrepareOwned(parsed *parser.Schema) (*Prepared, error)

PrepareOwned normalizes and validates a parsed schema in place.

func (*Prepared) Build added in v0.0.25

func (p *Prepared) Build(cfg BuildConfig) (*runtime.Schema, error)

Build compiles prepared artifacts into an immutable runtime schema.

func (*Prepared) GlobalElementOrderSeq added in v0.0.25

func (p *Prepared) GlobalElementOrderSeq() iter.Seq[objects.QName]

GlobalElementOrderSeq yields deterministic global element order.

Jump to

Keyboard shortcuts

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