Commit Graph

14 Commits

Author SHA1 Message Date
ichirinko
f993d49856 添加对while-do语句的支持 (#77)
Co-authored-by: jackfiled <xcrenchangjun@outlook.com>
Reviewed-on: PostGuard/Canon#77
Co-authored-by: ichirinko <1621543655@qq.com>
Co-committed-by: ichirinko <1621543655@qq.com>
2024-05-10 13:52:11 +08:00
6e8e3885ac fix: 区分字符和字符串 (#74)
Co-authored-by: Huaps <1183155719@qq.com>
Reviewed-on: PostGuard/Canon#74
2024-05-04 13:57:14 +08:00
6130adfa7c feat: 按照open_set中的示例调整语法 (#71)
添加了构建LR分析表冲突的报错

Reviewed-on: PostGuard/Canon#71
2024-05-01 21:06:27 +08:00
d84b254716 feat: 语法分析的详细错误信息 (#63)
Reviewed-on: PostGuard/Canon#63
2024-04-28 15:13:09 +08:00
17dbcccb59 feat: 语法树的访问者和类型检测访问者 (#56)
Reviewed-on: PostGuard/Canon#56
2024-04-26 10:18:49 +08:00
Ichirinko
a95987b3ce feat: 前端界面优化 (#48)
Co-authored-by: jackfiled <xcrenchangjun@outlook.com>
Reviewed-on: PostGuard/Canon#48
Co-authored-by: Ichirinko <1621543655@qq.com>
Co-committed-by: Ichirinko <1621543655@qq.com>
2024-04-21 16:30:44 +08:00
d09460edfe feat: 完善编译器命令行功能 (#43)
Reviewed-on: PostGuard/Canon#43
2024-04-20 22:23:29 +08:00
4b6635796c refeat: ILexer接口适配 (#38)
Co-authored-by: Huaps <1183155719@qq.com>
Co-authored-by: duqoo <92306417+duqoo@users.noreply.github.com>
Reviewed-on: PostGuard/Canon#38
2024-04-18 16:34:32 +08:00
792c1d44f1 fix: 求解FirstSet中没有考虑空产生式 (#36)
Reviewed-on: PostGuard/Canon#36
2024-04-13 12:37:17 +08:00
67deb0aa2c refact: 将编译中各个阶段接口化 (#35)
Reviewed-on: PostGuard/Canon#35
2024-04-12 19:01:37 +08:00
f1c569ee0e fix: 删除语法中关于单引号的定义 (#34)
Reviewed-on: PostGuard/Canon#34
2024-04-11 22:41:43 +08:00
1690187c0a feat: 将LR分析表生成到代码中 (#27)
Reviewed-on: PostGuard/Canon#27
2024-04-08 19:46:24 +08:00
5e3ea6303e refact: syntax-node (#23)
重构语法树的部分,使用单独的类来抽象不同的非终结符节点。
**同时**,将`Pascal`语法的定义从测试项目中移动到核心项目中,在项目中只维护一份对于`Pascal`语法的定义。

Reviewed-on: PostGuard/Canon#23
2024-04-07 16:47:28 +08:00
99fdd6438b add: 这就是完全的Pascal (#11)
5!8!4!个状态堂堂登场!

Co-authored-by: Ichirinko <1621543655@qq.com>
Reviewed-on: PostGuard/Canon#11
2024-03-13 23:58:06 +08:00