Commit Graph

75 Commits

Author SHA1 Message Date
8f4fb69653 [VER 0.3.2-Hotfix]
[Feat] 面对对象(struct)支持,完成对其初始化解析。
[Impl] Value更换为Object,且简单类型按值存储,复杂类型为shared_ptr。
[Impl] 全局使用 Object shared_ptr
2025-12-22 23:19:40 +08:00
ec9362c615 添加ObjectPtr定义,准备全面加入指针 2025-12-22 20:45:47 +08:00
271846143a 阶段性保存,全面修改Value为Object 2025-12-22 19:18:43 +08:00
34a56beb90 [feat]类初始化 2025-12-22 17:38:52 +08:00
cff6bb77a3 [Example]添加函数示例 2025-12-22 14:00:24 +08:00
26bc387032 fix 2025-12-22 13:39:17 +08:00
720ae2bb26 # 2025-12-22 00:02:19 +08:00
2e02960f03 directory organize and lexer now ignores comments 2025-12-22 00:01:24 +08:00
46a169b88a README 2025-12-21 23:23:10 +08:00
014803b705 feat: implement for-loops with proper scope management
- Add support for C-style for loops: for (init; condition; increment) { body }
- Implement three-level scoping: loop context + per-iteration contexts
- Add semicolon disabler for increment statements using RAII guards
- Support break/continue/return control flow with scope validation
- Fix semicolon handling in parser for flexible for-loop syntax
2025-12-21 22:55:46 +08:00
acc2d33dbc command -v(--version) support. ast typeName method now returns magic_enum::enum_name 2025-12-21 20:18:05 +08:00
8323b9023a add docs(test 2025-12-21 11:48:46 +08:00
17799ff939 value operator for numeric values now explicit 2025-12-20 22:34:30 +08:00
ea33ad31dd license 2025-12-20 21:54:09 +08:00
55ec10c032 Update license (include utils' license 2025-12-20 21:53:53 +08:00
9e92bf62d4 Logo! 2025-12-20 21:40:57 +08:00
ec1917665e use new function syntax 2025-12-20 20:46:06 +08:00
946ef22849 closure doc 2025-12-20 20:43:47 +08:00
9085cb7ad3 remove trash :D 2025-12-20 20:41:48 +08:00
56459a5eeb support closure!!!!! 2025-12-20 20:38:59 +08:00
e7ca714a89 support function literal, set builtins to global context. great! 2025-12-20 20:27:36 +08:00
b9a98150ae ignored test.fig 2025-12-19 20:44:07 +08:00
e2fd42297f v0.3.1 2025-12-19 20:42:29 +08:00
47fc704434 Initial commit 2025-12-19 20:40:47 +08:00
73c828d99b v0.3.1 2025-12-19 20:38:40 +08:00