Commit fa0c432b authored by Vladimír Štill's avatar Vladimír Štill
Browse files

lib: Regenerate all grammars

parent 6d0a19c4
Pipeline #95023 passed with stage
in 1 minute and 25 seconds
......@@ -141,6 +141,12 @@ class CFGParser ( Parser ):
if hasattr( listener, "exitStart" ):
listener.exitStart(self)
def accept(self, visitor:ParseTreeVisitor):
if hasattr( visitor, "visitStart" ):
return visitor.visitStart(self)
else:
return visitor.visitChildren(self)
......@@ -247,6 +253,12 @@ class CFGParser ( Parser ):
if hasattr( listener, "exitOnerule" ):
listener.exitOnerule(self)
def accept(self, visitor:ParseTreeVisitor):
if hasattr( visitor, "visitOnerule" ):
return visitor.visitOnerule(self)
else:
return visitor.visitChildren(self)
......@@ -312,6 +324,12 @@ class CFGParser ( Parser ):
if hasattr( listener, "exitRewrite" ):
listener.exitRewrite(self)
def accept(self, visitor:ParseTreeVisitor):
if hasattr( visitor, "visitRewrite" ):
return visitor.visitRewrite(self)
else:
return visitor.visitChildren(self)
......@@ -381,6 +399,12 @@ class CFGParser ( Parser ):
if hasattr( listener, "exitTerm_or_nonterm" ):
listener.exitTerm_or_nonterm(self)
def accept(self, visitor:ParseTreeVisitor):
if hasattr( visitor, "visitTerm_or_nonterm" ):
return visitor.visitTerm_or_nonterm(self)
else:
return visitor.visitChildren(self)
......@@ -447,6 +471,12 @@ class CFGParser ( Parser ):
if hasattr( listener, "exitTerminal" ):
listener.exitTerminal(self)
def accept(self, visitor:ParseTreeVisitor):
if hasattr( visitor, "visitTerminal" ):
return visitor.visitTerminal(self)
else:
return visitor.visitChildren(self)
......@@ -534,6 +564,12 @@ class CFGParser ( Parser ):
if hasattr( listener, "exitNonterminal" ):
listener.exitNonterminal(self)
def accept(self, visitor:ParseTreeVisitor):
if hasattr( visitor, "visitNonterminal" ):
return visitor.visitNonterminal(self)
else:
return visitor.visitChildren(self)
......@@ -636,6 +672,12 @@ class CFGParser ( Parser ):
if hasattr( listener, "exitSymbol" ):
listener.exitSymbol(self)
def accept(self, visitor:ParseTreeVisitor):
if hasattr( visitor, "visitSymbol" ):
return visitor.visitSymbol(self)
else:
return visitor.visitChildren(self)
......@@ -690,6 +732,12 @@ class CFGParser ( Parser ):
if hasattr( listener, "exitComment" ):
listener.exitComment(self)
def accept(self, visitor:ParseTreeVisitor):
if hasattr( visitor, "visitComment" ):
return visitor.visitComment(self)
else:
return visitor.visitChildren(self)
......@@ -782,6 +830,12 @@ class CFGParser ( Parser ):
if hasattr( listener, "exitAnyvalue" ):
listener.exitAnyvalue(self)
def accept(self, visitor:ParseTreeVisitor):
if hasattr( visitor, "visitAnyvalue" ):
return visitor.visitAnyvalue(self)
else:
return visitor.visitChildren(self)
......
......@@ -129,6 +129,12 @@ class DFAParser ( Parser ):
if hasattr( listener, "exitStart" ):
listener.exitStart(self)
def accept(self, visitor:ParseTreeVisitor):
if hasattr( visitor, "visitStart" ):
return visitor.visitStart(self)
else:
return visitor.visitChildren(self)
......@@ -192,6 +198,12 @@ class DFAParser ( Parser ):
if hasattr( listener, "exitInit" ):
listener.exitInit(self)
def accept(self, visitor:ParseTreeVisitor):
if hasattr( visitor, "visitInit" ):
return visitor.visitInit(self)
else:
return visitor.visitChildren(self)
......@@ -263,6 +275,12 @@ class DFAParser ( Parser ):
if hasattr( listener, "exitProduction" ):
listener.exitProduction(self)
def accept(self, visitor:ParseTreeVisitor):
if hasattr( visitor, "visitProduction" ):
return visitor.visitProduction(self)
else:
return visitor.visitChildren(self)
......@@ -338,6 +356,12 @@ class DFAParser ( Parser ):
if hasattr( listener, "exitFinal" ):
listener.exitFinal(self)
def accept(self, visitor:ParseTreeVisitor):
if hasattr( visitor, "visitFinal" ):
return visitor.visitFinal(self)
else:
return visitor.visitChildren(self)
......@@ -423,6 +447,12 @@ class DFAParser ( Parser ):
if hasattr( listener, "exitStatename" ):
listener.exitStatename(self)
def accept(self, visitor:ParseTreeVisitor):
if hasattr( visitor, "visitStatename" ):
return visitor.visitStatename(self)
else:
return visitor.visitChildren(self)
......@@ -498,6 +528,12 @@ class DFAParser ( Parser ):
if hasattr( listener, "exitComment" ):
listener.exitComment(self)
def accept(self, visitor:ParseTreeVisitor):
if hasattr( visitor, "visitComment" ):
return visitor.visitComment(self)
else:
return visitor.visitChildren(self)
......@@ -590,6 +626,12 @@ class DFAParser ( Parser ):
if hasattr( listener, "exitAnyvalue" ):
listener.exitAnyvalue(self)
def accept(self, visitor:ParseTreeVisitor):
if hasattr( visitor, "visitAnyvalue" ):
return visitor.visitAnyvalue(self)
else:
return visitor.visitChildren(self)
......
......@@ -134,6 +134,12 @@ class NFAParser ( Parser ):
if hasattr( listener, "exitStart" ):
listener.exitStart(self)
def accept(self, visitor:ParseTreeVisitor):
if hasattr( visitor, "visitStart" ):
return visitor.visitStart(self)
else:
return visitor.visitChildren(self)
......@@ -197,6 +203,12 @@ class NFAParser ( Parser ):
if hasattr( listener, "exitInit" ):
listener.exitInit(self)
def accept(self, visitor:ParseTreeVisitor):
if hasattr( visitor, "visitInit" ):
return visitor.visitInit(self)
else:
return visitor.visitChildren(self)
......@@ -275,6 +287,12 @@ class NFAParser ( Parser ):
if hasattr( listener, "exitProduction" ):
listener.exitProduction(self)
def accept(self, visitor:ParseTreeVisitor):
if hasattr( visitor, "visitProduction" ):
return visitor.visitProduction(self)
else:
return visitor.visitChildren(self)
......@@ -356,6 +374,12 @@ class NFAParser ( Parser ):
if hasattr( listener, "exitStateset" ):
listener.exitStateset(self)
def accept(self, visitor:ParseTreeVisitor):
if hasattr( visitor, "visitStateset" ):
return visitor.visitStateset(self)
else:
return visitor.visitChildren(self)
......@@ -431,6 +455,12 @@ class NFAParser ( Parser ):
if hasattr( listener, "exitFinal" ):
listener.exitFinal(self)
def accept(self, visitor:ParseTreeVisitor):
if hasattr( visitor, "visitFinal" ):
return visitor.visitFinal(self)
else:
return visitor.visitChildren(self)
......@@ -489,6 +519,12 @@ class NFAParser ( Parser ):
if hasattr( listener, "exitStatename" ):
listener.exitStatename(self)
def accept(self, visitor:ParseTreeVisitor):
if hasattr( visitor, "visitStatename" ):
return visitor.visitStatename(self)
else:
return visitor.visitChildren(self)
......@@ -564,6 +600,12 @@ class NFAParser ( Parser ):
if hasattr( listener, "exitComment" ):
listener.exitComment(self)
def accept(self, visitor:ParseTreeVisitor):
if hasattr( visitor, "visitComment" ):
return visitor.visitComment(self)
else:
return visitor.visitChildren(self)
......@@ -656,6 +698,12 @@ class NFAParser ( Parser ):
if hasattr( listener, "exitAnyvalue" ):
listener.exitAnyvalue(self)
def accept(self, visitor:ParseTreeVisitor):
if hasattr( visitor, "visitAnyvalue" ):
return visitor.visitAnyvalue(self)
else:
return visitor.visitChildren(self)
......
# Generated from lib/parsing/RegEx.g4 by ANTLR 4.8
# Generated from lib/parsing/RegEx.g4 by ANTLR 4.9.2
from antlr4 import *
from io import StringIO
from typing.io import TextIO
import sys
if sys.version_info[1] > 5:
from typing import TextIO
else:
from typing.io import TextIO
......@@ -75,7 +78,6 @@ class RegExLexer(Lexer):
def __init__(self, input=None, output:TextIO = sys.stdout):
super().__init__(input, output)
self.checkVersion("4.8")
self._interp = LexerATNSimulator(self, self.atn, self.decisionsToDFA, PredictionContextCache())
self._actions = None
self._predicates = None
......
# Generated from lib/parsing/RegEx.g4 by ANTLR 4.8
# Generated from lib/parsing/RegEx.g4 by ANTLR 4.9.2
from antlr4 import *
if __name__ is not None and "." in __name__:
from .RegExParser import RegExParser
......
# Generated from lib/parsing/RegEx.g4 by ANTLR 4.8
# Generated from lib/parsing/RegEx.g4 by ANTLR 4.9.2
# encoding: utf-8
from antlr4 import *
from io import StringIO
......@@ -88,7 +88,6 @@ class RegExParser ( Parser ):
def __init__(self, input:TokenStream, output:TextIO = sys.stdout):
super().__init__(input, output)
self.checkVersion("4.8")
self._interp = ParserATNSimulator(self, self.atn, self.decisionsToDFA, self.sharedContextCache)
self._predicates = None
......@@ -96,6 +95,7 @@ class RegExParser ( Parser ):
class StartContext(ParserRuleContext):
__slots__ = 'parser'
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
super().__init__(parent, invokingState)
......@@ -159,6 +159,7 @@ class RegExParser ( Parser ):
class ExprContext(ParserRuleContext):
__slots__ = 'parser'
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
super().__init__(parent, invokingState)
......@@ -279,6 +280,7 @@ class RegExParser ( Parser ):
class ConcatenatedContext(ParserRuleContext):
__slots__ = 'parser'
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
super().__init__(parent, invokingState)
......@@ -365,6 +367,7 @@ class RegExParser ( Parser ):
class IterableContext(ParserRuleContext):
__slots__ = 'parser'
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
super().__init__(parent, invokingState)
......@@ -428,6 +431,7 @@ class RegExParser ( Parser ):
class ParenthesesContext(ParserRuleContext):
__slots__ = 'parser'
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
super().__init__(parent, invokingState)
......@@ -485,6 +489,7 @@ class RegExParser ( Parser ):
class SymbolContext(ParserRuleContext):
__slots__ = 'parser'
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
super().__init__(parent, invokingState)
......@@ -585,6 +590,7 @@ class RegExParser ( Parser ):
class CommentContext(ParserRuleContext):
__slots__ = 'parser'
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
super().__init__(parent, invokingState)
......@@ -659,6 +665,7 @@ class RegExParser ( Parser ):
class AnyvalueContext(ParserRuleContext):
__slots__ = 'parser'
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
super().__init__(parent, invokingState)
......
# Generated from lib/parsing/RegEx.g4 by ANTLR 4.8
# Generated from lib/parsing/RegEx.g4 by ANTLR 4.9.2
from antlr4 import *
if __name__ is not None and "." in __name__:
from .RegExParser import RegExParser
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment