1use serde::Serialize;
8
9pub mod channel;
10pub mod data;
11pub mod event;
12pub mod expr;
13pub mod infoflow;
14pub mod process;
15pub mod program;
16pub mod statement;
17pub mod system;
18pub mod types;
19
20pub use channel::{ChannelBuffer, ChannelDecl, ChannelKind};
21pub use data::{ConstDecl, DataDecl, StructDecl, StructField};
22pub use event::{CommKind, Event, EvtDecl, IrqKind};
23pub use expr::{BinaryOp, CExpr, Expr, ExprKind, Lit, UnaryOp};
24pub use infoflow::SecurityLabel;
25pub use process::{BindAnnotation, Process, ProcessDecl};
26pub use program::{EntryBinding, Import, MappingDecl, Program};
27pub use statement::{Assign, Dbg, DbgArg, Statement, VarDecl};
28pub use system::{MemoryRegionDecl, ProtectionDomainDecl, System, SystemDecl};
29pub use types::{
30 Address, ArraySize, InvalidPageSize, InvalidPermission, PageSize, Permission, PrimitiveType,
31 Type,
32};
33
34#[derive(Debug, Clone, Serialize)]
40pub struct RawAst {
41 pub system: System,
43 pub programs: Vec<Program>,
46}