Skip to main content

Module event

Module event 

Source
Expand description

Event AST nodes for the Fiducia language.

An event is one atomic step in a process — what appears on the left of -> in a CSP-style prefix. CoreFi (paper §4.2) has three kinds, all atomic from the process algebra’s point of view:

  • Computation event (Event::CPEvent): a named block of assignments and external calls, declared at the top level of a .fi file and referenced from a process by name or name.x.y (carriers).
  • Channel event (Event::CMEvent): inline PD-to-PD I/O — c?x (receive) or c!e (send) on a buffered channel, c? or c! on an unbuffered one, which carries no value.
  • Hardware interrupt (Event::IEVENT): inline atom on the reserved irq channel — irq?N (await) or irq!N (ack), with an integer IRQ number.

Structs§

EvtDecl
A computation-event declaration.

Enums§

CommKind
Direction of a Event::CMEvent.
Event
An event at a process-prefix use site.
IrqKind
Direction of an Event::IEVENT.