Skip to main content

Crate flutmax_ast

Crate flutmax_ast 

Source

Structs§

AttrPair
Attribute key-value pair: .attr(key: value, ...)
CallArg
Call argument (positional or named)
DestructuringWire
Destructuring wire: wire (a, b, c) = expr;
DirectConnection
Direct connection: node_a.in[0] = trigger;
FeedbackAssignment
Feedback assignment: feedback fb = tapin~(mixed, 1000);
FeedbackDecl
Feedback declaration: feedback fb: signal;
InDecl
Input port declaration: in 0 (freq): float;
InputPortAccess
Input port access (lvalue): node_a.in[0]
MsgDecl
Message declaration: msg click = "bang"; Optional .attr() chain: msg click = "bang".attr(patching_rect: 100.);
OutAssignment
Output assignment: out[0] = osc;
OutDecl
Output port declaration: out 0 (audio): signal; or out audio: signal = expr;
OutputPortAccess
Output port access (rvalue): node_a.out[0]
Program
flutmax AST (Abstract Syntax Tree)
Span
Source code location information
StateAssignment
State assignment: state counter = next;
StateDecl
State declaration: state counter: int = 0;
Wire
Wire declaration: wire osc = cycle~(440); Optional .attr() chain: wire w = flonum(x).attr(minimum: 0., maximum: 100.);

Enums§

AttrValue
Attribute value
Expr
Expression
LitValue
Literal value
PortType
Port type