replace antlr module (#672)

* replace antlr module

* refactor version of antlr
This commit is contained in:
anqiansong
2021-05-08 21:35:27 +08:00
committed by GitHub
parent faf4d7e3bb
commit df5ae9507f
9 changed files with 12 additions and 9 deletions

View File

@@ -6,9 +6,9 @@ import (
"path/filepath"
"strings"
"github.com/antlr/antlr4/runtime/Go/antlr"
"github.com/tal-tech/go-zero/tools/goctl/api/parser/g4/gen/api"
"github.com/tal-tech/go-zero/tools/goctl/util/console"
"github.com/zeromicro/antlr"
)
type (

View File

@@ -5,9 +5,9 @@ import (
"sort"
"strings"
"github.com/antlr/antlr4/runtime/Go/antlr"
"github.com/tal-tech/go-zero/tools/goctl/api/parser/g4/gen/api"
"github.com/tal-tech/go-zero/tools/goctl/util/console"
"github.com/zeromicro/antlr"
)
type (

View File

@@ -1,7 +1,7 @@
// Code generated from tools/goctl/api/parser/g4/ApiParser.g4 by ANTLR 4.9. DO NOT EDIT.
package api // ApiParser
import "github.com/antlr/antlr4/runtime/Go/antlr"
import "github.com/zeromicro/antlr"
type BaseApiParserVisitor struct {
*antlr.BaseParseTreeVisitor

View File

@@ -6,7 +6,7 @@ import (
"fmt"
"unicode"
"github.com/antlr/antlr4/runtime/Go/antlr"
"github.com/zeromicro/antlr"
)
// Suppress unused import error

View File

@@ -6,7 +6,7 @@ import (
"reflect"
"strconv"
"github.com/antlr/antlr4/runtime/Go/antlr"
"github.com/zeromicro/antlr"
)
// Suppress unused import errors

View File

@@ -1,7 +1,7 @@
// Code generated from tools/goctl/api/parser/g4/ApiParser.g4 by ANTLR 4.9. DO NOT EDIT.
package api // ApiParser
import "github.com/antlr/antlr4/runtime/Go/antlr"
import "github.com/zeromicro/antlr"
// A complete Visitor for a parse tree produced by ApiParserParser.
type ApiParserVisitor interface {

View File

@@ -7,7 +7,7 @@ import (
"strings"
"unicode"
"github.com/antlr/antlr4/runtime/Go/antlr"
"github.com/zeromicro/antlr"
)
const (