Skip to content

Commit f1451b2

Browse files
authored
chore(engine/sqlite): update to antlr 4.13.1 (#3086)
* chore(engine/sqlite): update to antlr 4.13.1 * chore: tidy
1 parent a4fa8b9 commit f1451b2

File tree

9 files changed

+5707
-2863
lines changed

9 files changed

+5707
-2863
lines changed

go.mod

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/sqlc-dev/sqlc
33
go 1.21
44

55
require (
6-
github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.0.0-20230321174746-8dcc6526cfb1
6+
github.com/antlr4-go/antlr/v4 v4.13.0
77
github.com/bytecodealliance/wasmtime-go/v14 v14.0.0
88
github.com/cubicdaiya/gonp v1.0.4
99
github.com/davecgh/go-spew v1.1.1
@@ -30,7 +30,6 @@ require (
3030
)
3131

3232
require (
33-
github.com/antlr4-go/antlr/v4 v4.13.0 // indirect
3433
github.com/cznic/mathutil v0.0.0-20181122101859-297441e03548 // indirect
3534
github.com/dustin/go-humanize v1.0.1 // indirect
3635
github.com/golang/protobuf v1.5.3 // indirect

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
22
github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs=
3-
github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.0.0-20230321174746-8dcc6526cfb1 h1:X8MJ0fnN5FPdcGF5Ij2/OW+HgiJrRg3AfHAx1PJtIzM=
4-
github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.0.0-20230321174746-8dcc6526cfb1/go.mod h1:pSwJ0fSY5KhvocuWSx4fz3BA8OrA1bQn+K1Eli3BRwM=
53
github.com/antlr4-go/antlr/v4 v4.13.0 h1:lxCg3LAv+EUK6t1i0y1V6/SLeUi0eKEKdhQAlS8TVTI=
64
github.com/antlr4-go/antlr/v4 v4.13.0/go.mod h1:pfChB/xh/Unjila75QW7+VU4TSnWnnk9UTnmpPaOR2g=
75
github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA=

internal/engine/sqlite/convert.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ import (
66
"strconv"
77
"strings"
88

9-
"github.com/antlr/antlr4/runtime/Go/antlr/v4"
10-
9+
"github.com/antlr4-go/antlr/v4"
1110
"github.com/sqlc-dev/sqlc/internal/debug"
1211
"github.com/sqlc-dev/sqlc/internal/engine/sqlite/parser"
1312
"github.com/sqlc-dev/sqlc/internal/sql/ast"

internal/engine/sqlite/parse.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ import (
55
"fmt"
66
"io"
77

8-
"github.com/antlr/antlr4/runtime/Go/antlr/v4"
9-
8+
"github.com/antlr4-go/antlr/v4"
109
"github.com/sqlc-dev/sqlc/internal/engine/sqlite/parser"
1110
"github.com/sqlc-dev/sqlc/internal/source"
1211
"github.com/sqlc-dev/sqlc/internal/sql/ast"
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
sqlite_parser.go: SQLiteLexer.g4 SQLiteParser.g4 antlr-4.12.0-complete.jar
2-
java -jar antlr-4.12.0-complete.jar -Dlanguage=Go SQLiteLexer.g4 SQLiteParser.g4
1+
sqlite_parser.go: SQLiteLexer.g4 SQLiteParser.g4 antlr-4.13.1-complete.jar
2+
java -jar antlr-4.13.1-complete.jar -Dlanguage=Go SQLiteLexer.g4 SQLiteParser.g4
33

4-
antlr-4.12.0-complete.jar:
5-
curl -O https://www.antlr.org/download/antlr-4.12.0-complete.jar
4+
antlr-4.13.1-complete.jar:
5+
curl -O https://www.antlr.org/download/antlr-4.13.1-complete.jar
66

77

internal/engine/sqlite/parser/sqlite_lexer.go

Lines changed: 24 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)