This commit is contained in:
2026-06-01 23:03:35 -04:00
parent 1d568f8ce3
commit c2a8c50a6d
5 changed files with 64 additions and 8 deletions
+24
View File
@@ -0,0 +1,24 @@
mod namespace;
pub use namespace::*;
use super::Id;
pub struct Fn {
pub body: Body,
}
pub struct Body {
pub statements: Vec<Statement>,
}
pub struct Statement {
ty: StatementTy,
}
pub enum StatementTy {
Define,
Assign,
Call { target: VarId, args: VarId },
}
pub type VarId = usize;