Commit Graph

80 Commits

Author SHA1 Message Date
034dd3f9cc feat: integration-test (#13)
添加集成测试,当前只有公开测试集的70个样例。

Reviewed-on: PostGuard/Canon#13
2024-03-15 14:56:41 +08:00
Huaps
fe35288cb5 feat: 词法分析器的基本功能(#12)
Co-authored-by: jackfiled <xcrenchangjun@outlook.com>
Reviewed-on: PostGuard/Canon#12
Co-authored-by: Huaps <1183155719@qq.com>
Co-committed-by: Huaps <1183155719@qq.com>
2024-03-15 12:00:47 +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
duqoo
184604940e Merge pull request 'ParserTest' (#10) from ParserTest into master
Reviewed-on: PostGuard/Canon#10
2024-03-13 22:23:58 +08:00
duqoo
c391abed48 Merge branch 'master' into ParserTest 2024-03-13 22:20:44 +08:00
duqoo
62b97aa3b6 fix:测试 2024-03-13 17:05:07 +08:00
bd3db1b7b7 feat: 添加语法分析基类抽象 (#8)
增加语法分析基类和状态转换接口抽象,为直接生成语法分析器做准备,同时也提前释放一些大对象,降低内存消耗。

Reviewed-on: PostGuard/Canon#8
2024-03-13 16:41:44 +08:00
Lan_G
e191c1e077 add: exceptions(#7)
Reviewed-on: PostGuard/Canon#7
Co-authored-by: Lan_G <2911328695@qq.com>
Co-committed-by: Lan_G <2911328695@qq.com>
2024-03-13 16:39:00 +08:00
duqoo
7ea97ea97e 添加了对部分类型的测试样例,修改添加了NumberSemanticToken 2024-03-13 16:19:07 +08:00
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
f8bf60e7ea Merge pull request 'add: cache nuget packages in action' (#3) from feat-action-cache into master
Reviewed-on: PostGuard/Canon#3
2024-03-11 16:31:59 +08:00
4dd58feeed add: cache nuget packages in action 2024-03-11 12:13:12 +08:00
46c4a5e5ea refact: 合乎代码规范 2024-03-11 11:40:06 +08:00
9984cee920 refact: 将Compiler类移动到Canon.Console中 2024-03-11 11:40:06 +08:00
Huaps
1a2ebde4a2 Merge branch 'master' of git.rrricardo.top:PostGuard/Canon 2024-03-10 19:48:57 +08:00
Huaps
95ff2233c1 写了一下lexer 2024-03-10 19:48:34 +08:00
72b3fe54a8 add: 自述文件 2024-03-10 19:27:01 +08:00
ff0b183f4f add: Grammar builder test with a simple gramma. 2024-03-10 19:05:28 +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
94622f5796 add: LrState 2024-03-10 11:22:19 +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
d6a6468a88 add: test action 2024-03-09 21:51:31 +08:00
e92b02a208 add: DelimiterSemanticToken and tests 2024-03-09 21:44:37 +08:00
f6a4ad4a44 add: SemanticToken 2024-03-09 21:16:44 +08:00
01cbcac8ef init: repo 2024-03-09 20:11:27 +08:00