Replies: 1 comment
-
|
When you do You might want to try it from scratch. Delete the go/pkg directory, and start with a generated parser driver. Look at the templates for the Go driver for grammars-v4 here as an example. Or, use trgen to generate a driver for one of the grammars in grammars-v4 (e.g., |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When I add to required library dependency in go.mod:
github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.11.1
I got error when running : go mod tidy:
go: downloading github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.11.1
go.oraclecorp.com/microservice-blockchain-connector/internal/core/contract/chaincode/bcapolicy imports
github.com/antlr/antlr4/runtime/Go/antlr/v4: reading github.com/antlr/antlr4/runtime/Go/antlr/go.mod at revision runtime/Go/antlr/v4.11.1: unknown revision runtime/Go/antlr/v4.11.1
Although such tag 4.11.1 exists in repository : https://github.com/antlr/antlr4/tree/v4.11.1/runtime/Go/antlr/v4 dependency cannot be solved.
The same occurs for version 4.12.0
How to use recent version of github.com/antlr/antlr4/runtime/Go/antlr/v4 ?
If I want to get the latest version :
go get github.com/antlr/antlr4/runtime/Go/antlr/v4
then it loads different version :
go: added github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.0.0-20230321174746-8dcc6526cfb1
How to use v4.11.1 or v4.12.0 ?
Beta Was this translation helpful? Give feedback.
All reactions