Commit Graph
12 Commits
Author SHA1 Message Date
0264408 df9ecb4de1 fix: 优化字符串类型在不同场景的打印形式 2026-06-17 16:08:40 +08:00
0264408 e356c208a6 feat: 实现模块引入功能以及测试 2026-06-17 15:57:45 +08:00
0264408andClaude 9428e270af refactor: 用 Value::get/set 简化属性访问,消除直接 borrow/borrow_mut 调用
- Value::set 签名改为接受 &str 并返回 RuntimeError,与 evaluator 对齐
- eval_get/eval_set/eval_index_get/eval_index_set 中统一使用 get/set
- 去掉 eval_index_get 和 eval_index_set 中不再使用的 map 绑定

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-17 15:05:59 +08:00
Elmma bc74b5ee91 fix: 修改 Value::String 的显示格式,添加引号以增强可读性 2026-06-17 00:33:29 +08:00
Elmma f0bba2f2aa feat: 添加数组和字符串的属性与方法支持,包括 length、push、pop、upper、lower、trim、contains、starts_with、ends_with、substring、replace 和 split 2026-06-17 00:23:43 +08:00
0264408 a7bedf6fa1 refactor: 优化代码组织 2026-06-16 19:33:16 +08:00
0264408 75c1d230ad feat: 添加内置函数支持(len, typeof, push, pop),更新相关错误处理和测试用例 2026-06-16 19:03:47 +08:00
0264408 ae3060708d feat: 添加break和continue语句的支持,更新解析器、解释器和词法分析器以处理相关语法 2026-06-10 17:37:12 +08:00
0264408 dd3f18da6f feat: 添加数组字面量和索引访问功能,更新解析器和解释器以支持数组操作 2026-04-28 10:14:13 +08:00
0264408 0e0077d96b feat: 改进Value对象的显示格式,增加键值对输出 2026-02-11 09:02:52 +08:00
0264408 521c7006d9 feat: 新增对象字面量和属性访问表达式 2026-02-10 17:13:40 +08:00
0264408 f86300f3ce Initialize Aster project with basic structure, including Cargo configuration, lexer, parser, interpreter, and AST definitions. Add a sample script and README documentation. Implement basic error handling and environment management for variable storage. 2026-02-04 16:42:51 +08:00