desugarer

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptySenderSide     = errors.New("Unable to desugar sender side with struct selectors because it's empty.")
	ErrOutportAddrNotFound = errors.New("Outport addr not found")
	ErrTypeNotStruct       = errors.New("Type not struct")
	ErrStructFieldNotFound = errors.New("Struct field not found")
)
View Source
var ErrConstSenderEntityKind = errors.New(
	"Entity that is used as a const reference in component's network must be of kind constant",
)

Functions

This section is empty.

Types

type Desugarer

type Desugarer struct{}

Desugarer does the following: 1. Replaces const ref senders with normal nodes that uses Const component with compiler directive; 2. Inserts void nodes and connections for every unused outport in the program; 3. Replaces struct selectors with chain of struct selector nodes.

func (Desugarer) Desugar

func (d Desugarer) Desugar(build src.Build) (src.Build, *compiler.Error)

Jump to

Keyboard shortcuts

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