We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ecd838 commit ff8e446Copy full SHA for ff8e446
src/antlr4/Recognizer.py
@@ -44,7 +44,9 @@ def __init__(self):
44
45
def checkVersion(self, toolVersion):
46
runtimeVersion = "4.4.0"
47
- if not runtimeVersion==toolVersion:
+ rv=runtimeVersion[0:4]
48
+ tv=toolVersion[0:4]
49
+ if not rv==tv:
50
print("ANTLR runtime and generated code versions disagree: "+runtimeVersion+"!="+toolVersion)
51
52
def addErrorListener(self, listener):
0 commit comments