Skip to content

Commit

Permalink
Checking in ANTLR files (#577)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 authored Dec 6, 2024
1 parent 9147ec2 commit f9ee0c8
Show file tree
Hide file tree
Showing 7 changed files with 146,867 additions and 15 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/go-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,6 @@ jobs:
- name: Download dependencies
run: go mod download

- name: Install antlr
run: |
curl -O https://www.antlr.org/download/antlr-4.13.2-complete.jar
echo "ANTLR_JAR=$(pwd)/antlr-4.13.2-complete.jar" >> $GITHUB_ENV
- name: Generate antlr files
run: make gh_antlr
env:
ANTLR: java -jar ${{ env.ANTLR_JAR }}

- name: Run vet
run: make vet

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## Generated ANTLR
lib/antlr/generated/*
!lib/antlr/generated/*.g4
!lib/antlr/generated/*.go

### Terraform ###
# Local .terraform directories
Expand Down
5 changes: 0 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ GENERATED_ANTLR_DIR = github.com/artie-labs/reader/lib/antlr/generated
antlr:
cd $(ANTLR_DIR); antlr -package generated -Dlanguage=Go *.g4

.PHONY: gh_antlr
gh_antlr:
# https://github.com/antlr/antlr4/blob/master/doc/tool-options.md
cd $(ANTLR_DIR); $(ANTLR) -package generated -Dlanguage=Go *.g4

.PHONY: vet
vet:
go vet $(go list ./... | grep -v $(GENERATED_ANTLR_DIR))
Expand Down
8,311 changes: 8,311 additions & 0 deletions lib/antlr/generated/mysql_lexer.go

Large diffs are not rendered by default.

130,975 changes: 130,975 additions & 0 deletions lib/antlr/generated/mysql_parser.go

Large diffs are not rendered by default.

3,863 changes: 3,863 additions & 0 deletions lib/antlr/generated/mysqlparser_base_listener.go

Large diffs are not rendered by default.

3,717 changes: 3,717 additions & 0 deletions lib/antlr/generated/mysqlparser_listener.go

Large diffs are not rendered by default.

0 comments on commit f9ee0c8

Please sign in to comment.