Skip to content

Commit 5830231

Browse files
h3n4lclaude
andauthored
feat: add PartiQL parser to monorepo (#31)
This commit adds the PartiQL parser from the standalone partiql-parser repository into the unified parser monorepo. Changes: - Added PartiQL grammar files (PartiQLLexer.g4, PartiQLParser.g4) - Added test infrastructure with 1 simple.sql example - Created Makefile for building and testing the parser - Updated package names from 'parser' to 'partiql' - Updated import paths to github.com/bytebase/parser/partiql - Updated CI workflow to include partiql in the test matrix - Generated parser files using ANTLR 4 with Go target - All tests passing successfully 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <[email protected]>
1 parent fc6ae35 commit 5830231

13 files changed

+39603
-1
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
id: set-matrix
3535
run: |
3636
# List of all available parsers
37-
ALL_PARSERS="redshift postgresql cql snowflake tsql doris trino plsql googlesql mysql"
37+
ALL_PARSERS="redshift postgresql cql snowflake tsql doris trino plsql googlesql mysql partiql"
3838
# Add more parsers here as they are added to the repository
3939
# ALL_PARSERS="redshift mysql postgresql"
4040

partiql/Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
all: build test
2+
3+
build:
4+
antlr -Dlanguage=Go -package partiql -visitor -o . PartiQLLexer.g4 PartiQLParser.g4
5+
6+
test:
7+
go test -v -run TestSimpleParse

0 commit comments

Comments
 (0)