From 893f92353b39aa2b7d46f536872caddf94ca7abf Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Tue, 27 Dec 2022 17:34:30 +0300 Subject: [PATCH] update antlr Signed-off-by: Evgenii Stratonikov --- go.mod | 2 ++ go.sum | Bin 72733 -> 73201 bytes netmap/parser/query_base_listener.go | 4 ++-- netmap/parser/query_base_visitor.go | 4 ++-- netmap/parser/query_lexer.go | 4 ++-- netmap/parser/query_listener.go | 4 ++-- netmap/parser/query_parser.go | 8 ++++---- netmap/parser/query_visitor.go | 4 ++-- netmap/policy.go | 2 +- 9 files changed, 17 insertions(+), 15 deletions(-) diff --git a/go.mod b/go.mod index 4ab50bd..2e21f8e 100644 --- a/go.mod +++ b/go.mod @@ -18,6 +18,7 @@ require ( ) require ( + github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.0.0-20221202181307-76fa05c21b12 // indirect github.com/btcsuite/btcd v0.22.0-beta // indirect github.com/coreos/go-semver v0.3.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect @@ -31,6 +32,7 @@ require ( github.com/spaolacci/murmur3 v1.1.0 // indirect go.uber.org/multierr v1.8.0 // indirect golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97 // indirect + golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e // indirect golang.org/x/net v0.0.0-20220225172249-27dd8689420f // indirect golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f // indirect golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect diff --git a/go.sum b/go.sum index ee624cbe260fdd4b4bbf5ee5bee97685b7b50be1..0a26e97874d270456b8cb318783a9dcf92725b1e 100644 GIT binary patch delta 369 zcmbQcgXQCHmJMG;CijZShU%A@D3qD#8R!}48W|WF83GAI3qxZAb6s<@v_u2bWFx~Q zLnDO@L#w<3kMuMblaL&vaIauvN3TTR&`i_HJa?CXP^Yx)bmLItH0LUp%7`d!lgSMt zS~0|#te>8*mz$pgvY;Ti+{+*>IMUQRqbxtUG(5P%B(2KW$SkWijJC=1XYsik8JGiIZfa^|WUQNLX=G@enwn&8ZjcHxR6E?&wbU~u z$|El{)ypf_H8iU-(%C3IEz~#5%(5~nqTJBjHP0hmKflCr@`PEkez?p+a;JBZg`uaJ ucTr_gj%9I?MX`~aw{cm8i=}~IO0jo%P^rIXj*-8Kb6I4PLcSQpLfhr1I diff --git a/netmap/parser/query_base_listener.go b/netmap/parser/query_base_listener.go index ae77aae..41dfb31 100644 --- a/netmap/parser/query_base_listener.go +++ b/netmap/parser/query_base_listener.go @@ -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 -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. type BaseQueryListener struct{} diff --git a/netmap/parser/query_base_visitor.go b/netmap/parser/query_base_visitor.go index a7e3599..23ff011 100644 --- a/netmap/parser/query_base_visitor.go +++ b/netmap/parser/query_base_visitor.go @@ -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 -import "github.com/antlr/antlr4/runtime/Go/antlr" +import "github.com/antlr/antlr4/runtime/Go/antlr/v4" type BaseQueryVisitor struct { *antlr.BaseParseTreeVisitor diff --git a/netmap/parser/query_lexer.go b/netmap/parser/query_lexer.go index f4b08b8..7e119e0 100644 --- a/netmap/parser/query_lexer.go +++ b/netmap/parser/query_lexer.go @@ -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 @@ -7,7 +7,7 @@ import ( "sync" "unicode" - "github.com/antlr/antlr4/runtime/Go/antlr" + "github.com/antlr/antlr4/runtime/Go/antlr/v4" ) // Suppress unused import error diff --git a/netmap/parser/query_listener.go b/netmap/parser/query_listener.go index 87888d6..f90994c 100644 --- a/netmap/parser/query_listener.go +++ b/netmap/parser/query_listener.go @@ -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 -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. type QueryListener interface { diff --git a/netmap/parser/query_parser.go b/netmap/parser/query_parser.go index 555ba58..578cd0e 100644 --- a/netmap/parser/query_parser.go +++ b/netmap/parser/query_parser.go @@ -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 @@ -7,7 +7,7 @@ import ( "strconv" "sync" - "github.com/antlr/antlr4/runtime/Go/antlr" + "github.com/antlr/antlr4/runtime/Go/antlr/v4" ) // Suppress unused import errors @@ -133,7 +133,7 @@ func NewQuery(input antlr.TokenStream) *Query { this.RuleNames = staticData.ruleNames this.LiteralNames = staticData.literalNames this.SymbolicNames = staticData.symbolicNames - this.GrammarFileName = "Query.g4" + this.GrammarFileName = "java-escape" return this } @@ -2461,7 +2461,7 @@ func (p *Query) Keyword() (localctx IKeywordContext) { p.SetState(119) _la = p.GetTokenStream().LA(1) - if !(((_la)&-(0x1f+1)) == 0 && ((1<