Commit Graph

17 Commits

Author SHA1 Message Date
abdb1d2fb0 feat: 添加跳转指令支持及条件语句编译实现 2026-02-20 17:02:13 +08:00
eb20993e27 feat: 添加If语句及块语句解析支持 2026-02-20 15:46:33 +08:00
2631f76da1 feat: Implement compiler and virtual machine for Fig language
- Added Compiler class with methods for compiling programs, statements, and expressions.
- Introduced Proto structure to hold compiled bytecode and constants.
- Implemented expression compilation including literals, identifiers, and infix expressions.
- Developed statement compilation for variable declarations and expression statements.
- Created a VM class to execute compiled bytecode with support for arithmetic and comparison operations.
- Added Object and Value classes for handling different data types and memory management.
- Implemented String and Struct objects for enhanced data representation.
- Established a parser for parsing variable declarations and statements.
- Included tests for the VM and object representations.
2026-02-20 14:05:56 +08:00
f2e899c7a7 更换新Logo! 然后为拓展增加Logo。 2026-02-18 14:28:19 +08:00
c81da16dfb 修复EOF飘逸(去除末尾\n)以及其他修复... 2026-02-18 00:16:59 +08:00
663fe39070 添加缺失的 doxy 2026-02-17 14:13:57 +08:00
6b75e028ff 修复右结合绑定力错误 2026-02-17 14:03:48 +08:00
878157c2fc 完成Parser定义以及表达式解析 2026-02-14 23:03:46 +08:00
35e479fd05 完成表达式Ast定义。修改了format文件 2026-02-14 18:00:46 +08:00
51e831cc6a 添加了注释文档 2026-02-14 15:32:11 +08:00
35b98c4d7f 完成Lexer实现,100%可靠 2026-02-14 14:54:44 +08:00
877253cbbc 完成 Error定义和ErrorLog. 以及一些相关的东西 2026-02-13 23:11:37 +08:00
cfcdfde170 结构调整2 2026-02-12 14:55:48 +08:00
5e75402b43 项目结构调整 2026-02-12 14:55:34 +08:00
642ce66f75 Merge branch 'main' of https://git.fig-lang.cn/PuqiAR/Fig 2026-02-12 14:54:49 +08:00
dd0b2904ba Initial commit 2026-02-12 14:53:03 +08:00
58212a3715 初始化仓库,包含format文件,ci, actions和文档。新的路开始了! 2026-02-12 14:51:26 +08:00