aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@qt.io>2021-07-05 19:20:30 +0200
committerDominik Holland <dominik.holland@googlemail.com>2022-01-27 13:50:04 +0100
commit6f612b9c57e5d3f0512f2b71a5fe52f1e4b1b009 (patch)
treead803b085aca9baf025de288ec4e7b8c9b7b874b
parentbab155249bbd8cba4efd96f50a22bdff37220ea9 (diff)
Disable the antlr runtim version check
The current Lexer and Parser code also works with the latest version of antlr. We rely on the CI to detect any future problems.
-rw-r--r--qface/idl/parser/TLexer.py4
-rw-r--r--qface/idl/parser/TParser.py4
2 files changed, 6 insertions, 2 deletions
diff --git a/qface/idl/parser/TLexer.py b/qface/idl/parser/TLexer.py
index e8ce49a..efcbc1e 100644
--- a/qface/idl/parser/TLexer.py
+++ b/qface/idl/parser/TLexer.py
@@ -230,7 +230,9 @@ class TLexer(Lexer):
def __init__(self, input=None, output:TextIO = sys.stdout):
super().__init__(input, output)
- self.checkVersion("4.7.1")
+ # Disable the version check for now as although there is a mismatch the Lexer seems to work fine.
+ # Rely on the weekly CI to make sure this keeps working also with later antlr versions.
+ # self.checkVersion("4.7.1")
self._interp = LexerATNSimulator(self, self.atn, self.decisionsToDFA, PredictionContextCache())
self._actions = None
self._predicates = None
diff --git a/qface/idl/parser/TParser.py b/qface/idl/parser/TParser.py
index 4b411a9..be85f81 100644
--- a/qface/idl/parser/TParser.py
+++ b/qface/idl/parser/TParser.py
@@ -280,7 +280,9 @@ class TParser ( Parser ):
def __init__(self, input:TokenStream, output:TextIO = sys.stdout):
super().__init__(input, output)
- self.checkVersion("4.7.1")
+ # Disable the version check for now as although there is a mismatch the Lexer seems to work fine.
+ # Rely on the weekly CI to make sure this keeps working also with later antlr versions.
+ # self.checkVersion("4.7.1")
self._interp = ParserATNSimulator(self, self.atn, self.decisionsToDFA, self.sharedContextCache)
self._predicates = None