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.fifile and referenced from a process bynameorname.x.y(carriers). - Channel event (
Event::CMEvent): inline PD-to-PD I/O —c?x(receive) orc!e(send) on a buffered channel,c?orc!on an unbuffered one, which carries no value. - Hardware interrupt (
Event::IEVENT): inline atom on the reservedirqchannel —irq?N(await) orirq!N(ack), with an integer IRQ number.
Structs§
- EvtDecl
- A computation-event declaration.
Enums§
- Comm
Kind - Direction of a
Event::CMEvent. - Event
- An event at a process-prefix use site.
- IrqKind
- Direction of an
Event::IEVENT.