Commit 2aa3c28
Add Jest tests for BNF parse/unparse functions (#78)
* Initial plan
* Add JavaScript tests for BNF parse/unparse functions with Jest
- Created bnf/tests/test_parse_unparse.mjs with 18 test cases
- Added Jest configuration in bnf/jest.config.mjs
- Updated bnf/package.json to include test script and Jest dependencies
- Fixed bug in UnparseVisitor.visitUnary() to use getChild(1) instead of getChild(0)
- Updated ANTLR parser generation scripts to use Java jar file
- All tests passing
Co-authored-by: hzhangxyz <[email protected]>
* Remove .gitignore.
* Update package.json.
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: hzhangxyz <[email protected]>
Co-authored-by: Hao Zhang <[email protected]>1 parent d44d946 commit 2aa3c28
File tree
5 files changed
+7311
-1101
lines changed- bnf
- atsds_bnf
- tests
5 files changed
+7311
-1101
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
0 commit comments