Commit 62f17e5
feat: add TiDB parser to monorepo (#32)
This commit adds the TiDB parser from the standalone tidb-parser repository into the unified parser monorepo.
Changes:
- Added TiDB grammar files (TiDBLexer.g4, TiDBParser.g4)
- Added helper file (tidb_base_lexer.go)
- Added predefined.tokens file for lexer
- Added test infrastructure with 2 example SQL files
- Created Makefile for building and testing the parser
- Updated package names from 'parser' to 'tidb'
- Updated import paths to github.com/bytebase/parser/tidb
- Updated CI workflow to include tidb in the test matrix
- Generated parser files using ANTLR 4 with Go target
- All 2 tests passing successfully
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <[email protected]>1 parent 5830231 commit 62f17e5
File tree
14 files changed
+128546
-1
lines changed- .github/workflows
- tidb
- examples
14 files changed
+128546
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
Large diffs are not rendered by default.
0 commit comments