Skip to main content

Module process

Module process 

Source
Expand description

Process AST nodes for the Fiducia language.

A process is the orchestration layer of a Fiducia protection domain — a CSP-style algebraic expression composed from events, guards, choices, and sequential composition. Following CoreFi paper §4.2:

Process ρ ::= Ω                       divergence
           | Skip                     successful termination
           | evnt → ρ                 event prefixing
           | [b: B] ρ                 guarded process
           | ρ₁ □ ρ₂                  external choice
           | (ρ₁ □ ρ₂) default ρd     default external choice
           | ρ₁ ; ρ₂                  sequential composition
           | μX. ρ                    recursion (modeled as named
                                      processes that recurse by
                                      name)

Processes appear in .fi files as flat declarations with the proc keyword:

proc Notified()      { irq?159 -> Handle_eth(); Notified(); }
proc Handle_eth()    { handle_irq -> Dispatch(); }
proc Dispatch()      { [rx] receive -> Skip [] [!rx] cleanup -> Skip; }
proc Reply(pkt: int) { [pass] o2d!pkt -> Skip [] [!pass] handle_ping -> Skip; }

Every process referenced (Handle_eth, Dispatch) is declared in the same file; receive, cleanup, handle_irq, handle_ping are computation events declared as evt declarations, and irq, o2d are channel names from the surrounding .fis.

Language reference: Process Definitions.

Structs§

BindAnnotation
One platform.entry pair from a process’s @bind(...) annotation.
ProcessDecl
A named process declaration: @bind(...)? proc Name(params) { body }.

Enums§

Process
A process expression.