txcl

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Resonator

func Resonator(def string) (*resonator.Resonator, error)

func ResonatorNoErr

func ResonatorNoErr(def string) *resonator.Resonator

ResonatorNoErr Used mainly for testing

func Validate

func Validate(def string) []string

Validate parses def in strict mode and returns each diagnostic as its own message (empty slice == valid). Strict mode adds checks the lenient runtime parser (Resonator) deliberately omits so it never rejects an already-deployed rule:

  • unterminated string / regex literals (from the lexer)
  • tokens that aren't a recognized clause keyword reaching the top level (unknown verbs, trailing garbage)

Diagnostics are returned individually (not joined) so callers can report an accurate count. Lexer diagnostics come first, then parser diagnostics, collected after ParseEvent drains the lexer to EOF.

Intended for the admin validate endpoint and authoring tools — the runtime path stays on Resonator.

Types

This section is empty.

Directories

Path Synopsis
Package ast defines the runtime value AST nodes shared across the txcl parser, runtime evaluator, and processor.
Package ast defines the runtime value AST nodes shared across the txcl parser, runtime evaluator, and processor.
Package funcs is the curated registry of inline txcl functions — the `&name(args...)` runtime calls that complement `txco://` ops.
Package funcs is the curated registry of inline txcl functions — the `&name(args...)` runtime calls that complement `txco://` ops.
Package runtime is the txcl value-resolution layer.
Package runtime is the txcl value-resolution layer.

Jump to

Keyboard shortcuts

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