feat: function (WIP)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user