Commit fc6ae35
feat: add MySQL parser to monorepo (#30)
This commit adds the MySQL parser from the standalone mysql-parser repository into the unified parser monorepo.
Changes:
- Added MySQL grammar files (MySQLLexer.g4, MySQLParser.g4)
- Added helper files (builtin_functions.go, keywords.go, mysql_base_lexer.go)
- Added predefined.tokens file for lexer
- Added test infrastructure with 24 example SQL files
- Created Makefile for building and testing the parser
- Updated package names from 'parser' to 'mysql'
- Updated import paths to github.com/bytebase/parser/mysql
- Updated CI workflow to include mysql in the test matrix
- Generated parser files using ANTLR 4 with Go target
- All 24 tests passing successfully
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <[email protected]>1 parent e845353 commit fc6ae35
File tree
39 files changed
+182619
-1
lines changed- .github/workflows
- mysql
- examples
39 files changed
+182619
-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