feat: ref

This commit is contained in:
2025-05-11 10:19:55 +08:00
parent cbb29276d8
commit 7cbb082dc4
12 changed files with 180 additions and 165 deletions

View File

@@ -1,6 +1,6 @@
use ecow::EcoString;
use crate::ty::internal::{Const, Func};
use crate::ty::internal::{Const, Param};
type Slice<T> = Box<[T]>;
@@ -94,6 +94,12 @@ pub enum UnOp {
Not,
}
#[derive(Debug)]
pub struct Func {
pub param: Param,
pub opcodes: OpCodes,
}
#[derive(Debug)]
pub struct Program {
pub top_level: OpCodes,