Commit Graph

7 Commits

Author SHA1 Message Date
35aec34a8e fix: 正确处理含有空产生式的语法 (#6)
Reviewed-on: PostGuard/Canon#6
2024-03-12 14:52:42 +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
6f8fb4c54e add: GrammarBuilder 2024-03-10 15:37:18 +08:00
58da63e41a add: Terminator Tests 2024-03-10 12:06:27 +08:00
410593f326 add: 操作数的种类 2024-03-10 11:14:52 +08:00
8d30b1626b add: Terminator and Expression 2024-03-09 23:57:43 +08:00