Commit Graph

6 Commits

Author SHA1 Message Date
35aec34a8e fix: 正确处理含有空产生式的语法 (#6)
Reviewed-on: PostGuard/Canon#6
2024-03-12 14:52:42 +08:00
Ichirinko
7de5ce8f28 add:增加了包含空产生式的测试用例 (#2)
增加了包含空产生式的测试用例

Co-authored-by: jackfiled <xcrenchangjun@outlook.com>
Reviewed-on: PostGuard/Canon#2
Co-authored-by: Ichirinko <1621543655@qq.com>
Co-committed-by: Ichirinko <1621543655@qq.com>
2024-03-11 22:22:53 +08:00
315deaabf2 add: 抽象语法树节点 (#5)
fix:
- Expression格式化过程中如果Pos在最右边就不显示
- Expression中不考虑Pos

Reviewed-on: PostGuard/Canon#5
2024-03-11 21:57:47 +08:00
9930dbc42c feat: 对输入的记号流进行分析 (#4)
添加了语法分析中各个重要状态类的`ToString`方法,方便调试

Reviewed-on: PostGuard/Canon#4
2024-03-11 19:33:02 +08:00
ff0b183f4f add: Grammar builder test with a simple gramma. 2024-03-10 19:05:28 +08:00
58da63e41a add: Terminator Tests 2024-03-10 12:06:27 +08:00