syntax

package
v0.30.2 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package syntax ships the four binary operators every .nflow file relies on: ->, |, &, ||, plus the structured parallel and race forms.

The package is a native bundle — always mounted by native.Bundles() and never requires @require. It lives under extensions/ rather than compiler/ so the compiler remains a pure mechanism: the parser knows how to call an operator, not what a pipe means.

Index

Constants

View Source
const ID = "syntax"

Variables

This section is empty.

Functions

func Bundle

func Bundle(_ map[string]string) compiler.Bundle

Types

type NamedParallelExpr added in v0.14.0

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

NamedParallelExpr runs expressions concurrently and returns results keyed by the explicit labels in its source block.

func (*NamedParallelExpr) Analyze added in v0.14.0

func (e *NamedParallelExpr) Analyze(resolver compiler.CapabilityResolver) error

func (*NamedParallelExpr) Build added in v0.14.0

func (*NamedParallelExpr) Children added in v0.14.0

func (e *NamedParallelExpr) Children() []compiler.Expr

func (*NamedParallelExpr) DescribeActionGraph added in v0.23.0

func (e *NamedParallelExpr) DescribeActionGraph() compiler.ActionGraphDescription

func (*NamedParallelExpr) Node added in v0.14.0

func (*NamedParallelExpr) Node()

type RaceExpr added in v0.30.2

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

RaceExpr runs its candidates concurrently and returns Kernel's first successful result. Kernel cancels the remaining candidates on success and joins all launched work before returning.

func (*RaceExpr) Analyze added in v0.30.2

func (e *RaceExpr) Analyze(resolver compiler.CapabilityResolver) error

func (*RaceExpr) Build added in v0.30.2

func (*RaceExpr) Children added in v0.30.2

func (e *RaceExpr) Children() []compiler.Expr

func (*RaceExpr) DescribeActionGraph added in v0.30.2

func (e *RaceExpr) DescribeActionGraph() compiler.ActionGraphDescription

func (*RaceExpr) Node added in v0.30.2

func (*RaceExpr) Node()

Jump to

Keyboard shortcuts

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