[#372] go.mod: Update ANTLR

Current `go:generate` command was, probably, executed only on my laptop.
Replace it with explicit version, because package in the generated code
depends on in.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2022-12-27 17:34:30 +03:00
parent 9e18d50978
commit 72df51cfe9
10 changed files with 24 additions and 22 deletions

13
go.mod
View file

@ -3,7 +3,7 @@ module github.com/nspcc-dev/neofs-sdk-go
go 1.17 go 1.17
require ( require (
github.com/antlr/antlr4/runtime/Go/antlr v1.4.10 github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.0.0-20221202181307-76fa05c21b12
github.com/google/uuid v1.3.0 github.com/google/uuid v1.3.0
github.com/hashicorp/golang-lru v0.6.0 github.com/hashicorp/golang-lru v0.6.0
github.com/mr-tron/base58 v1.2.0 github.com/mr-tron/base58 v1.2.0
@ -29,11 +29,12 @@ require (
github.com/pmezard/go-difflib v1.0.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/spaolacci/murmur3 v1.1.0 // indirect github.com/spaolacci/murmur3 v1.1.0 // indirect
go.uber.org/multierr v1.9.0 // indirect go.uber.org/multierr v1.9.0 // indirect
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97 // indirect golang.org/x/crypto v0.4.0 // indirect
golang.org/x/net v0.0.0-20220225172249-27dd8689420f // indirect golang.org/x/exp v0.0.0-20221227203929-1b447090c38c // indirect
golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f // indirect golang.org/x/net v0.3.0 // indirect
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4 // indirect
golang.org/x/text v0.3.7 // indirect golang.org/x/sys v0.3.0 // indirect
golang.org/x/text v0.5.0 // indirect
google.golang.org/genproto v0.0.0-20200825200019-8632dd797987 // indirect google.golang.org/genproto v0.0.0-20200825200019-8632dd797987 // indirect
google.golang.org/grpc v1.48.0 // indirect google.golang.org/grpc v1.48.0 // indirect
google.golang.org/protobuf v1.28.1 // indirect google.golang.org/protobuf v1.28.1 // indirect

BIN
go.sum

Binary file not shown.

View file

@ -1,3 +1,4 @@
package parser package parser
//go:generate antlr4 -Dlanguage=Go -visitor QueryLexer.g4 Query.g4 // ANTLR can be downloaded from https://www.antlr.org/download/antlr-4.11.1-complete.jar
//go:generate java -Xmx500M -cp "./antlr-4.11.1-complete.jar:$CLASSPATH" org.antlr.v4.Tool -Dlanguage=Go -visitor QueryLexer.g4 Query.g4

View file

@ -1,8 +1,8 @@
// Code generated from Query.g4 by ANTLR 4.10.1. DO NOT EDIT. // Code generated from java-escape by ANTLR 4.11.1. DO NOT EDIT.
package parser // Query package parser // Query
import "github.com/antlr/antlr4/runtime/Go/antlr" import "github.com/antlr/antlr4/runtime/Go/antlr/v4"
// BaseQueryListener is a complete listener for a parse tree produced by Query. // BaseQueryListener is a complete listener for a parse tree produced by Query.
type BaseQueryListener struct{} type BaseQueryListener struct{}

View file

@ -1,8 +1,8 @@
// Code generated from Query.g4 by ANTLR 4.10.1. DO NOT EDIT. // Code generated from java-escape by ANTLR 4.11.1. DO NOT EDIT.
package parser // Query package parser // Query
import "github.com/antlr/antlr4/runtime/Go/antlr" import "github.com/antlr/antlr4/runtime/Go/antlr/v4"
type BaseQueryVisitor struct { type BaseQueryVisitor struct {
*antlr.BaseParseTreeVisitor *antlr.BaseParseTreeVisitor

View file

@ -1,4 +1,4 @@
// Code generated from QueryLexer.g4 by ANTLR 4.10.1. DO NOT EDIT. // Code generated from java-escape by ANTLR 4.11.1. DO NOT EDIT.
package parser package parser
@ -7,7 +7,7 @@ import (
"sync" "sync"
"unicode" "unicode"
"github.com/antlr/antlr4/runtime/Go/antlr" "github.com/antlr/antlr4/runtime/Go/antlr/v4"
) )
// Suppress unused import error // Suppress unused import error

View file

@ -1,8 +1,8 @@
// Code generated from Query.g4 by ANTLR 4.10.1. DO NOT EDIT. // Code generated from java-escape by ANTLR 4.11.1. DO NOT EDIT.
package parser // Query package parser // Query
import "github.com/antlr/antlr4/runtime/Go/antlr" import "github.com/antlr/antlr4/runtime/Go/antlr/v4"
// QueryListener is a complete listener for a parse tree produced by Query. // QueryListener is a complete listener for a parse tree produced by Query.
type QueryListener interface { type QueryListener interface {

View file

@ -1,4 +1,4 @@
// Code generated from Query.g4 by ANTLR 4.10.1. DO NOT EDIT. // Code generated from java-escape by ANTLR 4.11.1. DO NOT EDIT.
package parser // Query package parser // Query
@ -7,7 +7,7 @@ import (
"strconv" "strconv"
"sync" "sync"
"github.com/antlr/antlr4/runtime/Go/antlr" "github.com/antlr/antlr4/runtime/Go/antlr/v4"
) )
// Suppress unused import errors // Suppress unused import errors
@ -133,7 +133,7 @@ func NewQuery(input antlr.TokenStream) *Query {
this.RuleNames = staticData.ruleNames this.RuleNames = staticData.ruleNames
this.LiteralNames = staticData.literalNames this.LiteralNames = staticData.literalNames
this.SymbolicNames = staticData.symbolicNames this.SymbolicNames = staticData.symbolicNames
this.GrammarFileName = "Query.g4" this.GrammarFileName = "java-escape"
return this return this
} }
@ -2461,7 +2461,7 @@ func (p *Query) Keyword() (localctx IKeywordContext) {
p.SetState(119) p.SetState(119)
_la = p.GetTokenStream().LA(1) _la = p.GetTokenStream().LA(1)
if !(((_la)&-(0x1f+1)) == 0 && ((1<<uint(_la))&((1<<QueryREP)|(1<<QueryIN)|(1<<QueryAS)|(1<<QuerySELECT)|(1<<QueryFROM)|(1<<QueryFILTER))) != 0) { if !((int64(_la) & ^0x3f) == 0 && ((int64(1)<<_la)&1904) != 0) {
p.GetErrorHandler().RecoverInline(p) p.GetErrorHandler().RecoverInline(p)
} else { } else {
p.GetErrorHandler().ReportMatch(p) p.GetErrorHandler().ReportMatch(p)

View file

@ -1,8 +1,8 @@
// Code generated from Query.g4 by ANTLR 4.10.1. DO NOT EDIT. // Code generated from java-escape by ANTLR 4.11.1. DO NOT EDIT.
package parser // Query package parser // Query
import "github.com/antlr/antlr4/runtime/Go/antlr" import "github.com/antlr/antlr4/runtime/Go/antlr/v4"
// A complete Visitor for a parse tree produced by Query. // A complete Visitor for a parse tree produced by Query.
type QueryVisitor interface { type QueryVisitor interface {

View file

@ -7,7 +7,7 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/antlr/antlr4/runtime/Go/antlr" "github.com/antlr/antlr4/runtime/Go/antlr/v4"
"github.com/nspcc-dev/neofs-api-go/v2/netmap" "github.com/nspcc-dev/neofs-api-go/v2/netmap"
"github.com/nspcc-dev/neofs-api-go/v2/refs" "github.com/nspcc-dev/neofs-api-go/v2/refs"
"github.com/nspcc-dev/neofs-sdk-go/netmap/parser" "github.com/nspcc-dev/neofs-sdk-go/netmap/parser"