feat: function (WIP)

This commit is contained in:
2025-05-03 21:35:36 +08:00
parent cc88e7c65f
commit 63fd380514
4 changed files with 45 additions and 6 deletions

View File

@@ -1,5 +1,6 @@
use ecow::EcoString;
use crate::ty::internal::Value;
use crate::bytecode::{OpCodes, ThunkIdx};
#[derive(Debug, Clone)]
@@ -18,6 +19,12 @@ pub struct Func {
pub opcodes: OpCodes
}
impl Func {
pub fn call(self, _arg: Value) -> Value {
todo!()
}
}
impl PartialEq for Func {
fn eq(&self, _: &Self) -> bool {
false