ir start
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user