Skip to main content

Module ast

Module ast 

Source
Expand description

The AST: the nodes the parsers produce for a .fis (the system description) and a .fi (a protection domain’s program), one file per node family, flat-re-exported here, and RawAst, the project: the one node over both, so neither file imports the other. parser/ depends on this module, never the reverse.

Re-exports§

pub use channel::ChannelBuffer;
pub use channel::ChannelDecl;
pub use channel::ChannelKind;
pub use data::ConstDecl;
pub use data::DataDecl;
pub use data::StructDecl;
pub use data::StructField;
pub use event::CommKind;
pub use event::Event;
pub use event::EvtDecl;
pub use event::IrqKind;
pub use expr::BinaryOp;
pub use expr::CExpr;
pub use expr::Expr;
pub use expr::ExprKind;
pub use expr::Lit;
pub use expr::UnaryOp;
pub use infoflow::SecurityLabel;
pub use process::BindAnnotation;
pub use process::Process;
pub use process::ProcessDecl;
pub use program::EntryBinding;
pub use program::Import;
pub use program::MappingDecl;
pub use program::Program;
pub use statement::Assign;
pub use statement::Dbg;
pub use statement::DbgArg;
pub use statement::Statement;
pub use statement::VarDecl;
pub use system::MemoryRegionDecl;
pub use system::ProtectionDomainDecl;
pub use system::System;
pub use system::SystemDecl;
pub use types::Address;
pub use types::ArraySize;
pub use types::InvalidPageSize;
pub use types::InvalidPermission;
pub use types::PageSize;
pub use types::Permission;
pub use types::PrimitiveType;
pub use types::Type;

Modules§

channel
Channel declaration AST nodes for the Fiducia language.
data
.fis data-layer AST nodes: struct types and constants (#69).
event
Event AST nodes for the Fiducia language.
expr
Expression AST nodes for the Fiducia expression language.
infoflow
Information flow security labels.
process
Process AST nodes for the Fiducia language.
program
.fi program AST nodes: the Program, its imports, memory mappings and entry-point bindings.
statement
Statement AST nodes for the Fiducia language.
system
.fis system description AST nodes: the System and its memory regions, protection domains, and system composition.
types
Core data types for the Fiducia language.

Structs§

RawAst
A parsed project: the .fis system description and its programs, one per protection domain.