Skip to content

Commit

Permalink
Remove redundant source code from go runtime (#4155)
Browse files Browse the repository at this point in the history
* feat: Remove the old version of the source code, as at v4.x.y the source must be under /v4 for modules

Signed-off-by: Jim.Idle <jimi@idle.ws>

* fix: tidy up old version of go.mod (non v4 version), which is now deprecated

Signed-off-by: Jim.Idle <jimi@idle.ws>

---------

Signed-off-by: Jim.Idle <jimi@idle.ws>
  • Loading branch information
Jim Idle authored Mar 5, 2023
1 parent 40554bd commit 7cd68d5
Show file tree
Hide file tree
Showing 60 changed files with 17 additions and 15,320 deletions.
13 changes: 13 additions & 0 deletions doc/go-target.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# ANTLR4 Language Target, Runtime for Go

### Removal of non v4 module

Prior to the release of the v4 tagged runtime, the source code for the Go runtime module existed at the root of
`runtime/Go/antlr`, which is the pre-v4 version of the code, and under `runtime/Go/antlr/v4`. If your project
was not using modules, you could merely sync to the latest hash in the master branch and use the code,

As of now, you can still use the code without modules, but you must use the code under the `/v4` directory and
not the code at the runtime root. This is for historic reasons as the code was originally written before modules were a
thing and the go runtime source was (and still is) part of the monorepo that is `antlr/antlr4`.

We strongly advise you to use modules, and to use the /v4 version of the source code, though it is not required. See
below for more information.

### First steps

#### 1. Install ANTLR4
Expand Down
26 changes: 0 additions & 26 deletions runtime/Go/antlr/LICENSE

This file was deleted.

4 changes: 4 additions & 0 deletions runtime/Go/antlr/README.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
= Migration to v4 from non tagged code

Please note that the source code that was previously located here is now located in the `/v4` subdirectory to accommodate
go modules. If you are not using modules, then use the code in the `/v4` subdirectory from here on out.
68 changes: 0 additions & 68 deletions runtime/Go/antlr/antlrdoc.go

This file was deleted.

176 changes: 0 additions & 176 deletions runtime/Go/antlr/atn.go

This file was deleted.

Loading

0 comments on commit 7cd68d5

Please sign in to comment.