feat: ref
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user