Skip to content

Commit d5dd253

Browse files
committed
update to 4.11.1
Signed-off-by: Terence Parr <[email protected]>
1 parent 7229933 commit d5dd253

File tree

31 files changed

+56
-47
lines changed

31 files changed

+56
-47
lines changed

doc/getting-started.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Hi and welcome to the version 4 release of ANTLR! It's named after the fearless
66

77
ANTLR is really two things: a tool that translates your grammar to a parser/lexer in Java (or other target language) and the runtime needed by the generated parsers/lexers. Even if you are using the ANTLR Intellij plug-in or ANTLRWorks to run the ANTLR tool, the generated code will still need the runtime library.
88

9-
The first thing you should do is probably download and install a development tool plug-in. Even if you only use such tools for editing, they are great. Then, follow the instructions below to get the runtime environment available to your system to run generated parsers/lexers. In what follows, I talk about antlr-4.11.0-complete.jar, which has the tool and the runtime and any other support libraries (e.g., ANTLR v4 is written in v3).
9+
The first thing you should do is probably download and install a development tool plug-in. Even if you only use such tools for editing, they are great. Then, follow the instructions below to get the runtime environment available to your system to run generated parsers/lexers. In what follows, I talk about antlr-4.11.1-complete.jar, which has the tool and the runtime and any other support libraries (e.g., ANTLR v4 is written in v3).
1010

1111
If you are going to integrate ANTLR into your existing build system using mvn, ant, or want to get ANTLR into your IDE such as eclipse or intellij, see [Integrating ANTLR into Development Systems](https://github.com/antlr/antlr4/blob/master/doc/IDEs.md).
1212

@@ -16,38 +16,38 @@ If you are going to integrate ANTLR into your existing build system using mvn, a
1616
1. Download
1717
```
1818
$ cd /usr/local/lib
19-
$ curl -O https://www.antlr.org/download/antlr-4.11.0-complete.jar
19+
$ curl -O https://www.antlr.org/download/antlr-4.11.1-complete.jar
2020
```
2121
Or just download in browser from website:
2222
[https://www.antlr.org/download.html](https://www.antlr.org/download.html)
2323
and put it somewhere rational like `/usr/local/lib`.
2424

25-
if you are using lower version jdk, just download from [website download](https://github.com/antlr/website-antlr4/tree/gh-pages/download) for previous version, and antlr version before 4.11.0 support jdk 1.8
25+
if you are using lower version jdk, just download from [website download](https://github.com/antlr/website-antlr4/tree/gh-pages/download) for previous version, and antlr version before 4.11.1 support jdk 1.8
2626

27-
2. Add `antlr-4.11.0-complete.jar` to your `CLASSPATH`:
27+
2. Add `antlr-4.11.1-complete.jar` to your `CLASSPATH`:
2828
```
29-
$ export CLASSPATH=".:/usr/local/lib/antlr-4.11.0-complete.jar:$CLASSPATH"
29+
$ export CLASSPATH=".:/usr/local/lib/antlr-4.11.1-complete.jar:$CLASSPATH"
3030
```
3131
It's also a good idea to put this in your `.bash_profile` or whatever your startup script is.
3232

3333
3. Create aliases for the ANTLR Tool, and `TestRig`.
3434
```
35-
$ alias antlr4='java -Xmx500M -cp "/usr/local/lib/antlr-4.11.0-complete.jar:$CLASSPATH" org.antlr.v4.Tool'
36-
$ alias grun='java -Xmx500M -cp "/usr/local/lib/antlr-4.11.0-complete.jar:$CLASSPATH" org.antlr.v4.gui.TestRig'
35+
$ alias antlr4='java -Xmx500M -cp "/usr/local/lib/antlr-4.11.1-complete.jar:$CLASSPATH" org.antlr.v4.Tool'
36+
$ alias grun='java -Xmx500M -cp "/usr/local/lib/antlr-4.11.1-complete.jar:$CLASSPATH" org.antlr.v4.gui.TestRig'
3737
```
3838

3939
### WINDOWS
4040

4141
(*Thanks to Graham Wideman*)
4242

4343
0. Install Java (version 1.7 or higher)
44-
1. Download antlr-4.11.0-complete.jar (or whatever version) from [https://www.antlr.org/download.html](https://www.antlr.org/download.html)
44+
1. Download antlr-4.11.1-complete.jar (or whatever version) from [https://www.antlr.org/download.html](https://www.antlr.org/download.html)
4545
Save to your directory for 3rd party Java libraries, say `C:\Javalib`
46-
2. Add `antlr-4.11.0-complete.jar` to CLASSPATH, either:
46+
2. Add `antlr-4.11.1-complete.jar` to CLASSPATH, either:
4747
* Permanently: Using System Properties dialog > Environment variables > Create or append to `CLASSPATH` variable
4848
* Temporarily, at command line:
4949
```
50-
SET CLASSPATH=.;C:\Javalib\antlr-4.11.0-complete.jar;%CLASSPATH%
50+
SET CLASSPATH=.;C:\Javalib\antlr-4.11.1-complete.jar;%CLASSPATH%
5151
```
5252
3. Create short convenient commands for the ANTLR Tool, and TestRig, using batch files or doskey commands:
5353
* Batch files (in directory in system PATH) antlr4.bat and grun.bat
@@ -73,7 +73,7 @@ Either launch org.antlr.v4.Tool directly:
7373

7474
```
7575
$ java org.antlr.v4.Tool
76-
ANTLR Parser Generator Version 4.11.0
76+
ANTLR Parser Generator Version 4.11.1
7777
-o ___ specify output directory where all output is generated
7878
-lib ___ specify location of .tokens files
7979
...
@@ -82,8 +82,8 @@ ANTLR Parser Generator Version 4.11.0
8282
or use -jar option on java:
8383

8484
```
85-
$ java -jar /usr/local/lib/antlr-4.11.0-complete.jar
86-
ANTLR Parser Generator Version 4.11.0
85+
$ java -jar /usr/local/lib/antlr-4.11.1-complete.jar
86+
ANTLR Parser Generator Version 4.11.1
8787
-o ___ specify output directory where all output is generated
8888
-lib ___ specify location of .tokens files
8989
...

doc/releasing-antlr.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,14 @@ We only have to copy the PHP runtime into the ANTLR repository to run the unitte
8080
```
8181
cd ~/antlr/code/antlr-php-runtime/src
8282
git checkout dev # Should be the default
83+
git pull origin dev
8384
... vi RuntimeMetaData.php ...
8485
git commit -a -m "Update PHP Runtime to latest version"
86+
git push origin dev
87+
git checkout master
88+
git pull origin master
89+
git merge dev
90+
git push origin master
8591
```
8692

8793
## Build XPath parsers

doc/swift-target.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ Add Antlr4 as a dependency to your `Package.swift` file. For more information, p
131131

132132

133133
```swift
134-
.package(name: "Antlr4", url: "https://github.com/antlr/antlr4", from: "4.11.0"
134+
.package(name: "Antlr4", url: "https://github.com/antlr/antlr4", from: "4.11.1"
135135
```
136136
## Swift access levels
137137

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM adoptopenjdk/openjdk11:alpine AS builder
22

33
WORKDIR /opt/antlr4
44

5-
ARG ANTLR_VERSION="4.11.0"
5+
ARG ANTLR_VERSION="4.11.1"
66
ARG MAVEN_OPTS="-Xmx1G"
77

88

runtime/CSharp/src/Antlr4.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<Company>The ANTLR Organization</Company>
4-
<Version>4.11.0</Version>
4+
<Version>4.11.1</Version>
55
<NeutralLanguage>en-US</NeutralLanguage>
66
<TargetFramework Condition="'$(OS)' != 'Windows_NT'">netstandard2.0</TargetFramework>
77
<TargetFrameworks Condition="'$(OS)' == 'Windows_NT'">net45;netstandard2.0</TargetFrameworks>

runtime/CSharp/src/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
using System.Reflection;
77

88
[assembly: CLSCompliant(true)]
9-
[assembly: AssemblyVersion("4.11.0")]
9+
[assembly: AssemblyVersion("4.11.1")]

runtime/CSharp/src/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ See the docs and the book to learn about writing lexer and parser grammars.
4141
### Step 4: Generate the C# code
4242

4343
This can be done either from the cmd line, or by adding a custom pre-build command in your project.
44-
At minimal, the cmd line should look as follows: ``java -jar antlr4-4.11.0.jar -Dlanguage=CSharp grammar.g4``
44+
At minimal, the cmd line should look as follows: ``java -jar antlr4-4.11.1.jar -Dlanguage=CSharp grammar.g4``
4545
This will generate the files, which you can then integrate in your project.
4646
This is just a quick start. The tool has many useful options to control generation, please refer to its documentation.
4747

runtime/Cpp/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.11.0
1+
4.11.1

runtime/Cpp/cmake/Antlr4Package.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ target_link_libraries( Parsertest PRIVATE
9696
find_package(antlr4-generator REQUIRED)
9797
9898
# Set path to generator
99-
set(ANTLR4_JAR_LOCATION ${PROJECT_SOURCE_DIR}/thirdparty/antlr/antlr-4.11.0-complete.jar)
99+
set(ANTLR4_JAR_LOCATION ${PROJECT_SOURCE_DIR}/thirdparty/antlr/antlr-4.11.1-complete.jar)
100100
101101
# generate lexer
102102
antlr4_generate(

runtime/Cpp/cmake/ExternalAntlr4Cpp.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ else()
4646
set(ANTLR4_SHARED_LIBRARIES
4747
${ANTLR4_OUTPUT_DIR}/libantlr4-runtime.dll.a)
4848
set(ANTLR4_RUNTIME_LIBRARIES
49-
${ANTLR4_OUTPUT_DIR}/cygantlr4-runtime-4.11.0.dll)
49+
${ANTLR4_OUTPUT_DIR}/cygantlr4-runtime-4.11.1.dll)
5050
elseif(APPLE)
5151
set(ANTLR4_RUNTIME_LIBRARIES
5252
${ANTLR4_OUTPUT_DIR}/libantlr4-runtime.dylib)

0 commit comments

Comments
 (0)