From 8056c0098a35e4d5a8bb7cc806c5d3c95412f345 Mon Sep 17 00:00:00 2001 From: Kevin Matz Date: Thu, 28 Jan 2021 08:27:31 -0500 Subject: [PATCH] generate with Antlr 4.9.1 --- bacon/commentmacro/CommentMacroLexer.py | 4 ++-- bacon/commentmacro/CommentMacroListener.py | 2 +- bacon/commentmacro/CommentMacroParser.py | 13 +++++++++++-- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/bacon/commentmacro/CommentMacroLexer.py b/bacon/commentmacro/CommentMacroLexer.py index 903c5f7..bfc22ab 100644 --- a/bacon/commentmacro/CommentMacroLexer.py +++ b/bacon/commentmacro/CommentMacroLexer.py @@ -1,4 +1,4 @@ -# Generated from CommentMacro.g4 by ANTLR 4.8 +# Generated from CommentMacro.g4 by ANTLR 4.9.1 from antlr4 import * from io import StringIO from typing.io import TextIO @@ -210,7 +210,7 @@ class CommentMacroLexer(Lexer): def __init__(self, input=None, output:TextIO = sys.stdout): super().__init__(input, output) - self.checkVersion("4.8") + self.checkVersion("4.9.1") self._interp = LexerATNSimulator(self, self.atn, self.decisionsToDFA, PredictionContextCache()) self._actions = None self._predicates = None diff --git a/bacon/commentmacro/CommentMacroListener.py b/bacon/commentmacro/CommentMacroListener.py index ec2f2bb..76c1a0b 100644 --- a/bacon/commentmacro/CommentMacroListener.py +++ b/bacon/commentmacro/CommentMacroListener.py @@ -1,4 +1,4 @@ -# Generated from CommentMacro.g4 by ANTLR 4.8 +# Generated from CommentMacro.g4 by ANTLR 4.9.1 from antlr4 import * if __name__ is not None and "." in __name__: from .CommentMacroParser import CommentMacroParser diff --git a/bacon/commentmacro/CommentMacroParser.py b/bacon/commentmacro/CommentMacroParser.py index d55b7ee..ecae753 100644 --- a/bacon/commentmacro/CommentMacroParser.py +++ b/bacon/commentmacro/CommentMacroParser.py @@ -1,4 +1,4 @@ -# Generated from CommentMacro.g4 by ANTLR 4.8 +# Generated from CommentMacro.g4 by ANTLR 4.9.1 # encoding: utf-8 from antlr4 import * from io import StringIO @@ -244,7 +244,7 @@ class CommentMacroParser ( Parser ): def __init__(self, input:TokenStream, output:TextIO = sys.stdout): super().__init__(input, output) - self.checkVersion("4.8") + self.checkVersion("4.9.1") self._interp = ParserATNSimulator(self, self.atn, self.decisionsToDFA, self.sharedContextCache) self._predicates = None @@ -252,6 +252,7 @@ class CommentMacroParser ( Parser ): class ProgContext(ParserRuleContext): + __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) @@ -310,6 +311,7 @@ class CommentMacroParser ( Parser ): class StatementContext(ParserRuleContext): + __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) @@ -391,6 +393,7 @@ class CommentMacroParser ( Parser ): class MacroContext(ParserRuleContext): + __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) @@ -1943,6 +1946,7 @@ class CommentMacroParser ( Parser ): class TimeContext(ParserRuleContext): + __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) @@ -1989,6 +1993,7 @@ class CommentMacroParser ( Parser ): class DeviceContext(ParserRuleContext): + __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) @@ -2036,6 +2041,7 @@ class CommentMacroParser ( Parser ): class NodeTypeContext(ParserRuleContext): + __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) @@ -2088,6 +2094,7 @@ class CommentMacroParser ( Parser ): class TargetContext(ParserRuleContext): + __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) @@ -2165,6 +2172,7 @@ class CommentMacroParser ( Parser ): class SpanContext(ParserRuleContext): + __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) @@ -2218,6 +2226,7 @@ class CommentMacroParser ( Parser ): class NumberContext(ParserRuleContext): + __slots__ = 'parser' def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState)