diff options
author | Dominik Holland <dominik.holland@qt.io> | 2021-07-05 19:20:30 +0200 |
---|---|---|
committer | Dominik Holland <dominik.holland@googlemail.com> | 2021-07-06 09:29:31 +0200 |
commit | 11a3a6421b3305a5acae4cc3569d92e5a5f4fd7e (patch) | |
tree | ad803b085aca9baf025de288ec4e7b8c9b7b874b /qface | |
parent | 3fbb895a561ebdee979700389483d22e32fc2d12 (diff) | |
download | qtivi-qface-11a3a6421b3305a5acae4cc3569d92e5a5f4fd7e.tar.gz |
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.
Diffstat (limited to 'qface')
-rw-r--r-- | qface/idl/parser/TLexer.py | 4 | ||||
-rw-r--r-- | qface/idl/parser/TParser.py | 4 |
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 |