Skip to content

Commit

Permalink
manual edits of 4.7.1 -> 4.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
parrt committed Dec 17, 2018
1 parent b3f00ca commit 38a95da
Show file tree
Hide file tree
Showing 32 changed files with 38 additions and 36 deletions.
2 changes: 1 addition & 1 deletion runtime/CSharp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ See the docs and the book to learn about writing lexer and parser grammars.
### Step 4: Generate the C# code

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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Company>The ANTLR Organization</Company>
<Version>4.7.1.1</Version>
<Version>4.7.2</Version>
<NeutralLanguage>en-US</NeutralLanguage>
<TargetFrameworks>netstandard1.3;net35</TargetFrameworks>
<NoWarn>$(NoWarn);CS1591;CS1574;CS1580</NoWarn>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("4.7.1")]
[assembly: AssemblyVersion("4.7.2")]
#if !COMPACT
[assembly: AssemblyFileVersion("4.7.1")]
[assembly: AssemblyInformationalVersion("4.7.1")]
[assembly: AssemblyFileVersion("4.7.2")]
[assembly: AssemblyInformationalVersion("4.7.2")]
#endif
2 changes: 1 addition & 1 deletion runtime/Cpp/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.7.1
4.7.2
2 changes: 1 addition & 1 deletion runtime/Cpp/cmake/Antlr4Package.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ target_link_libraries( Parsertest PRIVATE
find_package(antlr4-generator REQUIRED)
# Set path to generator
set(ANTLR4_JAR_LOCATION ${PROJECT_SOURCE_DIR}/thirdparty/antlr/antlr-4.7.1-complete.jar)
set(ANTLR4_JAR_LOCATION ${PROJECT_SOURCE_DIR}/thirdparty/antlr/antlr-4.7.2-complete.jar)
# generate lexer
antlr4_generate(
Expand Down
2 changes: 1 addition & 1 deletion runtime/Cpp/cmake/ExternalAntlr4Cpp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ else()
set(ANTLR4_SHARED_LIBRARIES
${ANTLR4_OUTPUT_DIR}/libantlr4-runtime.dll.a)
set(ANTLR4_RUNTIME_LIBRARIES
${ANTLR4_OUTPUT_DIR}/cygantlr4-runtime-4.7.1.dll)
${ANTLR4_OUTPUT_DIR}/cygantlr4-runtime-4.7.2.dll)
elseif(APPLE)
set(ANTLR4_RUNTIME_LIBRARIES
${ANTLR4_OUTPUT_DIR}/libantlr4-runtime.dylib)
Expand Down
2 changes: 1 addition & 1 deletion runtime/Cpp/cmake/FindANTLR.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ find_package(Java QUIET COMPONENTS Runtime)

if(NOT ANTLR_EXECUTABLE)
find_program(ANTLR_EXECUTABLE
NAMES antlr.jar antlr4.jar antlr-4.jar antlr-4.7.1-complete.jar)
NAMES antlr.jar antlr4.jar antlr-4.jar antlr-4.7.2-complete.jar)
endif()

if(ANTLR_EXECUTABLE AND Java_JAVA_EXECUTABLE)
Expand Down
2 changes: 1 addition & 1 deletion runtime/Cpp/cmake/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ include_directories(${ANTLR4_INCLUDE_DIRS})
# set variable pointing to the antlr tool that supports C++
# this is not required if the jar file can be found under PATH environment
set(ANTLR_EXECUTABLE /home/user/antlr-4.7.1-complete.jar)
set(ANTLR_EXECUTABLE /home/user/antlr-4.7.2-complete.jar)
# add macros to generate ANTLR Cpp code from grammar
find_package(ANTLR REQUIRED)
Expand Down
2 changes: 1 addition & 1 deletion runtime/Cpp/demo/generate.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

:: Download the ANLTR jar and place it in the same folder as this script (or adjust the LOCATION var accordingly).

set LOCATION=antlr-4.7.1-complete.jar
set LOCATION=antlr-4.7.2-complete.jar
java -jar %LOCATION% -Dlanguage=Cpp -listener -visitor -o generated/ -package antlrcpptest TLexer.g4 TParser.g4
::java -jar %LOCATION% -Dlanguage=Cpp -listener -visitor -o generated/ -package antlrcpptest -XdbgST TLexer.g4 TParser.g4
::java -jar %LOCATION% -Dlanguage=Java -listener -visitor -o generated/ -package antlrcpptest TLexer.g4 TParser.g4
Expand Down
2 changes: 1 addition & 1 deletion runtime/Cpp/runtime/src/RuntimeMetaData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

using namespace antlr4;

const std::string RuntimeMetaData::VERSION = "4.7.1";
const std::string RuntimeMetaData::VERSION = "4.7.2";

std::string RuntimeMetaData::getRuntimeVersion() {
return VERSION;
Expand Down
2 changes: 1 addition & 1 deletion runtime/Go/antlr/recognizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var tokenTypeMapCache = make(map[string]int)
var ruleIndexMapCache = make(map[string]int)

func (b *BaseRecognizer) checkVersion(toolVersion string) {
runtimeVersion := "4.7.1"
runtimeVersion := "4.7.2"
if runtimeVersion != toolVersion {
fmt.Println("ANTLR runtime and generated code versions disagree: " + runtimeVersion + "!=" + toolVersion)
}
Expand Down
2 changes: 1 addition & 1 deletion runtime/Java/src/org/antlr/v4/runtime/RuntimeMetaData.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public class RuntimeMetaData {
* omitted.</li>
* </ul>
*/
public static final String VERSION = "4.7.1";
public static final String VERSION = "4.7.2";

/**
* Gets the currently executing version of the ANTLR 4 runtime library.
Expand Down
2 changes: 1 addition & 1 deletion runtime/JavaScript/src/antlr4/Recognizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Recognizer.ruleIndexMapCache = {};


Recognizer.prototype.checkVersion = function(toolVersion) {
var runtimeVersion = "4.7.1";
var runtimeVersion = "4.7.2";
if (runtimeVersion!==toolVersion) {
console.log("ANTLR runtime and generated code versions disagree: "+runtimeVersion+"!="+toolVersion);
}
Expand Down
2 changes: 1 addition & 1 deletion runtime/JavaScript/src/antlr4/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "antlr4",
"version": "4.7.1",
"version": "4.7.2",
"description": "JavaScript runtime for ANTLR4",
"main": "src/antlr4/index.js",
"repository": "antlr/antlr4.git",
Expand Down
4 changes: 2 additions & 2 deletions runtime/Python2/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

setup(
name='antlr4-python2-runtime',
version='4.7.1',
version='4.7.2',
url='http://www.antlr.org',
license='BSD',
packages=['antlr4', 'antlr4.atn', 'antlr4.dfa', 'antlr4.tree', 'antlr4.error', 'antlr4.xpath'],
package_dir={'': 'src'},
author='Eric Vergnaud, Terence Parr, Sam Harwell',
author_email='eric.vergnaud@wanadoo.fr',
description='ANTLR 4.7.1 runtime for Python 2.7.12'
description='ANTLR 4.7.2 runtime for Python 2.7.12'
)
2 changes: 1 addition & 1 deletion runtime/Python2/src/antlr4/Recognizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def extractVersion(self, version):
return major, minor

def checkVersion(self, toolVersion):
runtimeVersion = "4.7.1"
runtimeVersion = "4.7.2"
rvmajor, rvminor = self.extractVersion(runtimeVersion)
tvmajor, tvminor = self.extractVersion(toolVersion)
if rvmajor!=tvmajor or rvminor!=tvminor:
Expand Down
4 changes: 2 additions & 2 deletions runtime/Python2/tests/mocks/TestLexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class TestLexer(Lexer):

def __init__(self, input=None):
super(TestLexer, self).__init__(input)
self.checkVersion("4.7.1")
self.checkVersion("4.7.2")
self._interp = LexerATNSimulator(self, self.atn, self.decisionsToDFA, PredictionContextCache())
self._actions = None
self._predicates = None
Expand Down Expand Up @@ -95,7 +95,7 @@ class TestLexer2(Lexer):

def __init__(self, input=None):
super(TestLexer2, self).__init__(input)
self.checkVersion("4.7.1")
self.checkVersion("4.7.2")
self._interp = LexerATNSimulator(self, self.atn, self.decisionsToDFA, PredictionContextCache())
self._actions = None
self._predicates = None
4 changes: 2 additions & 2 deletions runtime/Python3/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='antlr4-python3-runtime',
version='4.7.1',
version='4.7.2',
packages=['antlr4', 'antlr4.atn', 'antlr4.dfa', 'antlr4.tree', 'antlr4.error', 'antlr4.xpath'],
package_dir={'': 'src'},
install_requires=[
Expand All @@ -12,5 +12,5 @@
license='BSD',
author='Eric Vergnaud, Terence Parr, Sam Harwell',
author_email='eric.vergnaud@wanadoo.fr',
description='ANTLR 4.7.1 runtime for Python 3.6.3'
description='ANTLR 4.7.2 runtime for Python 3.6.3'
)
2 changes: 1 addition & 1 deletion runtime/Python3/src/antlr4/Recognizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def extractVersion(self, version):
return major, minor

def checkVersion(self, toolVersion):
runtimeVersion = "4.7.1"
runtimeVersion = "4.7.2"
rvmajor, rvminor = self.extractVersion(runtimeVersion)
tvmajor, tvminor = self.extractVersion(toolVersion)
if rvmajor!=tvmajor or rvminor!=tvminor:
Expand Down
2 changes: 1 addition & 1 deletion runtime/Python3/src/antlr4/xpath/XPath.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class XPathLexer(Lexer):

def __init__(self, input=None):
super().__init__(input)
self.checkVersion("4.7.1")
self.checkVersion("4.7.2")
self._interp = LexerATNSimulator(self, self.atn, self.decisionsToDFA, PredictionContextCache())
self._actions = None
self._predicates = None
Expand Down
2 changes: 1 addition & 1 deletion runtime/Python3/test/parser/clexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ class CLexer(Lexer):

def __init__(self, input=None):
super().__init__(input)
self.checkVersion("4.7.1")
self.checkVersion("4.7.2")
self._interp = LexerATNSimulator(self, self.atn, self.decisionsToDFA, PredictionContextCache())
self._actions = None
self._predicates = None
Expand Down
2 changes: 1 addition & 1 deletion runtime/Python3/test/parser/cparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@ class CParser ( Parser ):

def __init__(self, input:TokenStream):
super().__init__(input)
self.checkVersion("4.7.1")
self.checkVersion("4.7.2")
self._interp = ParserATNSimulator(self, self.atn, self.decisionsToDFA, self.sharedContextCache)
self._predicates = None

Expand Down
2 changes: 1 addition & 1 deletion runtime/Swift/Sources/Antlr4/RuntimeMetaData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public class RuntimeMetaData {
/// omitted, the `-` (hyphen-minus) appearing before it is also
/// omitted.
///
public static let VERSION: String = "4.7.1"
public static let VERSION: String = "4.7.2"

///
/// Gets the currently executing version of the ANTLR 4 runtime library.
Expand Down
2 changes: 2 additions & 0 deletions runtime/Swift/Tests/Antlr4Tests/RuntimeMetaDataTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ class RuntimeMetaDataTests: XCTestCase {
doGetMajorMinorVersionTest("4.", "4.")
doGetMajorMinorVersionTest("4.7", "4.7")
doGetMajorMinorVersionTest("4.7.1", "4.7")
doGetMajorMinorVersionTest("4.7.2", "4.7")
doGetMajorMinorVersionTest("4-SNAPSHOT", "4")
doGetMajorMinorVersionTest("4.-SNAPSHOT", "4.")
doGetMajorMinorVersionTest("4.7-SNAPSHOT", "4.7")
doGetMajorMinorVersionTest("4.7.1-SNAPSHOT", "4.7")
doGetMajorMinorVersionTest("4.7.2-SNAPSHOT", "4.7")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ func getVocabulary() -> Vocabulary {

override <accessLevelNotOpen(parser)>
init(_ input:TokenStream) throws {
RuntimeMetaData.checkVersion("4.7.1", RuntimeMetaData.VERSION)
RuntimeMetaData.checkVersion("4.7.2", RuntimeMetaData.VERSION)
try super.init(input)
_interp = ParserATNSimulator(self,<p.name>._ATN,<p.name>._decisionToDFA, <parser.name>._sharedContextCache)
}
Expand Down
2 changes: 1 addition & 1 deletion tool/src/org/antlr/v4/codegen/target/CSharpTarget.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public CSharpTarget(CodeGenerator gen) {

@Override
public String getVersion() {
return "4.7.1";
return "4.7.2";
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion tool/src/org/antlr/v4/codegen/target/CppTarget.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public CppTarget(CodeGenerator gen) {
}

public String getVersion() {
return "4.7.1";
return "4.7.2";
}

public boolean needsHeader() { return true; }
Expand Down
2 changes: 1 addition & 1 deletion tool/src/org/antlr/v4/codegen/target/GoTarget.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public GoTarget(CodeGenerator gen) {

@Override
public String getVersion() {
return "4.7.1";
return "4.7.2";
}

public Set<String> getBadWords() {
Expand Down
2 changes: 1 addition & 1 deletion tool/src/org/antlr/v4/codegen/target/JavaScriptTarget.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public JavaScriptTarget(CodeGenerator gen) {

@Override
public String getVersion() {
return "4.7.1";
return "4.7.2";
}

public Set<String> getBadWords() {
Expand Down
2 changes: 1 addition & 1 deletion tool/src/org/antlr/v4/codegen/target/Python2Target.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public boolean supportsOverloadedMethods() {

@Override
public String getVersion() {
return "4.7.1";
return "4.7.2";
}

public Set<String> getBadWords() {
Expand Down
2 changes: 1 addition & 1 deletion tool/src/org/antlr/v4/codegen/target/Python3Target.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public boolean supportsOverloadedMethods() {

@Override
public String getVersion() {
return "4.7.1";
return "4.7.2";
}

/** Avoid grammar symbols in this set to prevent conflicts in gen'd code. */
Expand Down
2 changes: 1 addition & 1 deletion tool/src/org/antlr/v4/codegen/target/SwiftTarget.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public SwiftTarget(CodeGenerator gen) {

@Override
public String getVersion() {
return "4.7.1"; // Java and tool versions move in lock step
return "4.7.2"; // Java and tool versions move in lock step
}

public Set<String> getBadWords() {
Expand Down

0 comments on commit 38a95da

Please sign in to comment.