Skip to content

Commit b84a8c0

Browse files
authored
Step Functions: Bump ANTLR to 4.13.2 (localstack#11499)
1 parent 1d4b7ff commit b84a8c0

15 files changed

+22
-20
lines changed

Diff for: localstack-core/localstack/services/stepfunctions/asl/antlr/ASLParser.g4

+3-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,9 @@ tolerated_failure_percentage_path_decl: TOLERATEDFAILUREPERCENTAGEPATH COLON STR
240240

241241
label_decl: LABEL COLON keyword_or_string;
242242

243-
result_writer_decl: RESULTWRITER COLON LBRACE result_writer_field (COMMA result_writer_field)* RBRACE;
243+
result_writer_decl:
244+
RESULTWRITER COLON LBRACE result_writer_field (COMMA result_writer_field)* RBRACE
245+
;
244246

245247
result_writer_field: resource_decl | parameters_decl;
246248

Diff for: localstack-core/localstack/services/stepfunctions/asl/antlr/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ANTLR4_TARGET_DIR = $(ANTLR4_SRC_DIR)/runtime
77
ANTLR4_GRAMMAR_FILES = $(wildcard $(ANTLR4_SRC_DIR)/*.g4)
88

99
# Define the default ANTLR4 version and jar file.
10-
ANTLR4_VERSION ?= 4.13.1
10+
ANTLR4_VERSION ?= 4.13.2
1111
ANTLR4_JAR ?= $(ANTLR4_DIR)/antlr-$(ANTLR4_VERSION)-complete.jar
1212

1313
# Define the download path for ANTLR4 parser generator.
@@ -17,7 +17,7 @@ ANTLR4_URL = https://www.antlr.org/download/antlr-$(ANTLR4_VERSION)-complete.jar
1717
RUN_ANTLR4 = java -jar $(ANTLR4_JAR) -Dlanguage=Python3 -visitor
1818

1919
install: ## Install the dependencies for compiling the ANTLR4 project.
20-
@npm i -g --save-dev [email protected].4
20+
@npm i -g --save-dev [email protected].5
2121
@mkdir -p $(ANTLR4_DIR)
2222
@curl -o $(ANTLR4_JAR) $(ANTLR4_URL)
2323

Diff for: localstack-core/localstack/services/stepfunctions/asl/antlr/runtime/ASLIntrinsicLexer.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Generated from ASLIntrinsicLexer.g4 by ANTLR 4.13.1
1+
# Generated from ASLIntrinsicLexer.g4 by ANTLR 4.13.2
22
from antlr4 import *
33
from io import StringIO
44
import sys
@@ -232,7 +232,7 @@ class ASLIntrinsicLexer(Lexer):
232232

233233
def __init__(self, input=None, output:TextIO = sys.stdout):
234234
super().__init__(input, output)
235-
self.checkVersion("4.13.1")
235+
self.checkVersion("4.13.2")
236236
self._interp = LexerATNSimulator(self, self.atn, self.decisionsToDFA, PredictionContextCache())
237237
self._actions = None
238238
self._predicates = None

Diff for: localstack-core/localstack/services/stepfunctions/asl/antlr/runtime/ASLIntrinsicParser.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Generated from ASLIntrinsicParser.g4 by ANTLR 4.13.1
1+
# Generated from ASLIntrinsicParser.g4 by ANTLR 4.13.2
22
# encoding: utf-8
33
from antlr4 import *
44
from io import StringIO
@@ -100,7 +100,7 @@ class ASLIntrinsicParser ( Parser ):
100100

101101
def __init__(self, input:TokenStream, output:TextIO = sys.stdout):
102102
super().__init__(input, output)
103-
self.checkVersion("4.13.1")
103+
self.checkVersion("4.13.2")
104104
self._interp = ParserATNSimulator(self, self.atn, self.decisionsToDFA, self.sharedContextCache)
105105
self._predicates = None
106106

Diff for: localstack-core/localstack/services/stepfunctions/asl/antlr/runtime/ASLIntrinsicParserListener.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Generated from ASLIntrinsicParser.g4 by ANTLR 4.13.1
1+
# Generated from ASLIntrinsicParser.g4 by ANTLR 4.13.2
22
from antlr4 import *
33
if "." in __name__:
44
from .ASLIntrinsicParser import ASLIntrinsicParser

Diff for: localstack-core/localstack/services/stepfunctions/asl/antlr/runtime/ASLIntrinsicParserVisitor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Generated from ASLIntrinsicParser.g4 by ANTLR 4.13.1
1+
# Generated from ASLIntrinsicParser.g4 by ANTLR 4.13.2
22
from antlr4 import *
33
if "." in __name__:
44
from .ASLIntrinsicParser import ASLIntrinsicParser

Diff for: localstack-core/localstack/services/stepfunctions/asl/antlr/runtime/ASLLexer.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Generated from ASLLexer.g4 by ANTLR 4.13.1
1+
# Generated from ASLLexer.g4 by ANTLR 4.13.2
22
from antlr4 import *
33
from io import StringIO
44
import sys
@@ -1278,7 +1278,7 @@ class ASLLexer(Lexer):
12781278

12791279
def __init__(self, input=None, output:TextIO = sys.stdout):
12801280
super().__init__(input, output)
1281-
self.checkVersion("4.13.1")
1281+
self.checkVersion("4.13.2")
12821282
self._interp = LexerATNSimulator(self, self.atn, self.decisionsToDFA, PredictionContextCache())
12831283
self._actions = None
12841284
self._predicates = None

Diff for: localstack-core/localstack/services/stepfunctions/asl/antlr/runtime/ASLParser.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Generated from ASLParser.g4 by ANTLR 4.13.1
1+
# Generated from ASLParser.g4 by ANTLR 4.13.2
22
# encoding: utf-8
33
from antlr4 import *
44
from io import StringIO
@@ -726,7 +726,7 @@ class ASLParser ( Parser ):
726726

727727
def __init__(self, input:TokenStream, output:TextIO = sys.stdout):
728728
super().__init__(input, output)
729-
self.checkVersion("4.13.1")
729+
self.checkVersion("4.13.2")
730730
self._interp = ParserATNSimulator(self, self.atn, self.decisionsToDFA, self.sharedContextCache)
731731
self._predicates = None
732732

Diff for: localstack-core/localstack/services/stepfunctions/asl/antlr/runtime/ASLParserListener.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Generated from ASLParser.g4 by ANTLR 4.13.1
1+
# Generated from ASLParser.g4 by ANTLR 4.13.2
22
from antlr4 import *
33
if "." in __name__:
44
from .ASLParser import ASLParser

Diff for: localstack-core/localstack/services/stepfunctions/asl/antlr/runtime/ASLParserVisitor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Generated from ASLParser.g4 by ANTLR 4.13.1
1+
# Generated from ASLParser.g4 by ANTLR 4.13.2
22
from antlr4 import *
33
if "." in __name__:
44
from .ASLParser import ASLParser

Diff for: pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ runtime = [
8282
"airspeed-ext>=0.6.3",
8383
"amazon_kclpy>=2.0.6,!=2.1.0,!=2.1.4",
8484
# antlr4-python3-runtime: exact pin because antlr4 runtime is tightly coupled to the generated parser code
85-
"antlr4-python3-runtime==4.13.1",
85+
"antlr4-python3-runtime==4.13.2",
8686
"apispec>=5.1.1",
8787
"aws-sam-translator>=1.15.1",
8888
"crontab>=0.22.6",

Diff for: requirements-dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ amazon-kclpy==2.1.5
1010
# via localstack-core
1111
annotated-types==0.7.0
1212
# via pydantic
13-
antlr4-python3-runtime==4.13.1
13+
antlr4-python3-runtime==4.13.2
1414
# via
1515
# localstack-core
1616
# moto-ext

Diff for: requirements-runtime.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ amazon-kclpy==2.1.5
1010
# via localstack-core (pyproject.toml)
1111
annotated-types==0.7.0
1212
# via pydantic
13-
antlr4-python3-runtime==4.13.1
13+
antlr4-python3-runtime==4.13.2
1414
# via
1515
# localstack-core (pyproject.toml)
1616
# moto-ext

Diff for: requirements-test.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ amazon-kclpy==2.1.5
1010
# via localstack-core
1111
annotated-types==0.7.0
1212
# via pydantic
13-
antlr4-python3-runtime==4.13.1
13+
antlr4-python3-runtime==4.13.2
1414
# via
1515
# localstack-core
1616
# moto-ext

Diff for: requirements-typehint.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ amazon-kclpy==2.1.5
1010
# via localstack-core
1111
annotated-types==0.7.0
1212
# via pydantic
13-
antlr4-python3-runtime==4.13.1
13+
antlr4-python3-runtime==4.13.2
1414
# via
1515
# localstack-core
1616
# moto-ext

0 commit comments

Comments
 (0)