feat: 添加内置函数支持(len, typeof, push, pop),更新相关错误处理和测试用例

This commit is contained in:
0264408
2026-06-16 19:03:47 +08:00
parent 18fa53cf4a
commit 75c1d230ad
7 changed files with 314 additions and 9 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ use std::rc::Rc;
use std::cell::RefCell;
use std::fmt;
pub type NativeFn = fn(Vec<Value>) -> Value;
pub type NativeFn = fn(Vec<Value>) -> Result<Value, crate::error::RuntimeError>;
#[derive(Clone)]
pub enum Value {