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

lib: Regenerate {N,D}FA parsers

parent 8a7298f2
Pipeline #93767 passed with stage
in 1 minute and 33 seconds
# Generated from lib/parsing/DFA.g4 by ANTLR 4.8 # Generated from lib/parsing/DFA.g4 by ANTLR 4.9.2
from antlr4 import * from antlr4 import *
from io import StringIO from io import StringIO
from typing.io import TextIO
import sys import sys
if sys.version_info[1] > 5:
from typing import TextIO
else:
from typing.io import TextIO
...@@ -15,7 +18,7 @@ def serializedATN(): ...@@ -15,7 +18,7 @@ def serializedATN():
buf.write("\3\6\3\7\3\7\3\b\3\b\3\t\3\t\3\t\3\t\3\t\3\t\3\n\6\n\66") buf.write("\3\6\3\7\3\7\3\b\3\b\3\t\3\t\3\t\3\t\3\t\3\t\3\n\6\n\66")
buf.write("\n\n\r\n\16\n\67\3\13\3\13\3\f\3\f\3\r\6\r?\n\r\r\r\16") buf.write("\n\n\r\n\16\n\67\3\13\3\13\3\f\3\f\3\r\6\r?\n\r\r\r\16")
buf.write("\r@\3\r\3\r\3\16\3\16\2\2\17\3\3\5\4\7\5\t\6\13\7\r\b") buf.write("\r@\3\r\3\r\3\16\3\16\2\2\17\3\3\5\4\7\5\t\6\13\7\r\b")
buf.write("\17\t\21\n\23\13\25\f\27\r\31\16\33\17\3\2\4\t\2))\62") buf.write("\17\t\21\n\23\13\25\f\27\r\31\16\33\17\3\2\4\n\2))//\62")
buf.write(";>>@@C\\aac|\5\2\13\f\17\17\"\"\2G\2\3\3\2\2\2\2\5\3\2") buf.write(";>>@@C\\aac|\5\2\13\f\17\17\"\"\2G\2\3\3\2\2\2\2\5\3\2")
buf.write("\2\2\2\7\3\2\2\2\2\t\3\2\2\2\2\13\3\2\2\2\2\r\3\2\2\2") buf.write("\2\2\2\7\3\2\2\2\2\t\3\2\2\2\2\13\3\2\2\2\2\r\3\2\2\2")
buf.write("\2\17\3\2\2\2\2\21\3\2\2\2\2\23\3\2\2\2\2\25\3\2\2\2\2") buf.write("\2\17\3\2\2\2\2\21\3\2\2\2\2\23\3\2\2\2\2\25\3\2\2\2\2")
...@@ -76,7 +79,6 @@ class DFALexer(Lexer): ...@@ -76,7 +79,6 @@ class DFALexer(Lexer):
def __init__(self, input=None, output:TextIO = sys.stdout): def __init__(self, input=None, output:TextIO = sys.stdout):
super().__init__(input, output) super().__init__(input, output)
self.checkVersion("4.8")
self._interp = LexerATNSimulator(self, self.atn, self.decisionsToDFA, PredictionContextCache()) self._interp = LexerATNSimulator(self, self.atn, self.decisionsToDFA, PredictionContextCache())
self._actions = None self._actions = None
self._predicates = None self._predicates = None
......
# Generated from lib/parsing/DFA.g4 by ANTLR 4.8 # Generated from lib/parsing/DFA.g4 by ANTLR 4.9.2
from antlr4 import * from antlr4 import *
if __name__ is not None and "." in __name__: if __name__ is not None and "." in __name__:
from .DFAParser import DFAParser from .DFAParser import DFAParser
......
# Generated from lib/parsing/DFA.g4 by ANTLR 4.8 # Generated from lib/parsing/DFA.g4 by ANTLR 4.9.2
# encoding: utf-8 # encoding: utf-8
from antlr4 import * from antlr4 import *
from io import StringIO from io import StringIO
...@@ -86,7 +86,6 @@ class DFAParser ( Parser ): ...@@ -86,7 +86,6 @@ class DFAParser ( Parser ):
def __init__(self, input:TokenStream, output:TextIO = sys.stdout): def __init__(self, input:TokenStream, output:TextIO = sys.stdout):
super().__init__(input, output) super().__init__(input, output)
self.checkVersion("4.8")
self._interp = ParserATNSimulator(self, self.atn, self.decisionsToDFA, self.sharedContextCache) self._interp = ParserATNSimulator(self, self.atn, self.decisionsToDFA, self.sharedContextCache)
self._predicates = None self._predicates = None
...@@ -94,6 +93,7 @@ class DFAParser ( Parser ): ...@@ -94,6 +93,7 @@ class DFAParser ( Parser ):
class StartContext(ParserRuleContext): class StartContext(ParserRuleContext):
__slots__ = 'parser'
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
super().__init__(parent, invokingState) super().__init__(parent, invokingState)
...@@ -165,6 +165,7 @@ class DFAParser ( Parser ): ...@@ -165,6 +165,7 @@ class DFAParser ( Parser ):
class InitContext(ParserRuleContext): class InitContext(ParserRuleContext):
__slots__ = 'parser'
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
super().__init__(parent, invokingState) super().__init__(parent, invokingState)
...@@ -226,6 +227,7 @@ class DFAParser ( Parser ): ...@@ -226,6 +227,7 @@ class DFAParser ( Parser ):
class ProductionContext(ParserRuleContext): class ProductionContext(ParserRuleContext):
__slots__ = 'parser'
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
super().__init__(parent, invokingState) super().__init__(parent, invokingState)
...@@ -294,6 +296,7 @@ class DFAParser ( Parser ): ...@@ -294,6 +296,7 @@ class DFAParser ( Parser ):
class FinalContext(ParserRuleContext): class FinalContext(ParserRuleContext):
__slots__ = 'parser'
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
super().__init__(parent, invokingState) super().__init__(parent, invokingState)
...@@ -387,6 +390,7 @@ class DFAParser ( Parser ): ...@@ -387,6 +390,7 @@ class DFAParser ( Parser ):
class StatenameContext(ParserRuleContext): class StatenameContext(ParserRuleContext):
__slots__ = 'parser'
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
super().__init__(parent, invokingState) super().__init__(parent, invokingState)
...@@ -467,6 +471,7 @@ class DFAParser ( Parser ): ...@@ -467,6 +471,7 @@ class DFAParser ( Parser ):
class CommentContext(ParserRuleContext): class CommentContext(ParserRuleContext):
__slots__ = 'parser'
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
super().__init__(parent, invokingState) super().__init__(parent, invokingState)
...@@ -535,6 +540,7 @@ class DFAParser ( Parser ): ...@@ -535,6 +540,7 @@ class DFAParser ( Parser ):
class AnyvalueContext(ParserRuleContext): class AnyvalueContext(ParserRuleContext):
__slots__ = 'parser'
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
super().__init__(parent, invokingState) super().__init__(parent, invokingState)
......
# Generated from lib/parsing/NFA.g4 by ANTLR 4.8 # Generated from lib/parsing/NFA.g4 by ANTLR 4.9.2
from antlr4 import * from antlr4 import *
from io import StringIO from io import StringIO
from typing.io import TextIO
import sys import sys
if sys.version_info[1] > 5:
from typing import TextIO
else:
from typing.io import TextIO
...@@ -16,25 +19,25 @@ def serializedATN(): ...@@ -16,25 +19,25 @@ def serializedATN():
buf.write("\3\n\3\n\3\n\5\n:\n\n\3\13\6\13=\n\13\r\13\16\13>\3\f") buf.write("\3\n\3\n\3\n\5\n:\n\n\3\13\6\13=\n\13\r\13\16\13>\3\f")
buf.write("\3\f\3\r\3\r\3\16\6\16F\n\16\r\16\16\16G\3\16\3\16\3\17") buf.write("\3\f\3\r\3\r\3\16\6\16F\n\16\r\16\16\16G\3\16\3\16\3\17")
buf.write("\3\17\2\2\20\3\3\5\4\7\5\t\6\13\7\r\b\17\t\21\n\23\13") buf.write("\3\17\2\2\20\3\3\5\4\7\5\t\6\13\7\r\b\17\t\21\n\23\13")
buf.write("\25\f\27\r\31\16\33\17\35\20\3\2\4\7\2))\62;C\\aac|\5") buf.write("\25\f\27\r\31\16\33\17\35\20\3\2\4\n\2))//\62;>>@@C\\")
buf.write("\2\13\f\17\17\"\"\2O\2\3\3\2\2\2\2\5\3\2\2\2\2\7\3\2\2") buf.write("aac|\5\2\13\f\17\17\"\"\2O\2\3\3\2\2\2\2\5\3\2\2\2\2\7")
buf.write("\2\2\t\3\2\2\2\2\13\3\2\2\2\2\r\3\2\2\2\2\17\3\2\2\2\2") buf.write("\3\2\2\2\2\t\3\2\2\2\2\13\3\2\2\2\2\r\3\2\2\2\2\17\3\2")
buf.write("\21\3\2\2\2\2\23\3\2\2\2\2\25\3\2\2\2\2\27\3\2\2\2\2\31") buf.write("\2\2\2\21\3\2\2\2\2\23\3\2\2\2\2\25\3\2\2\2\2\27\3\2\2")
buf.write("\3\2\2\2\2\33\3\2\2\2\2\35\3\2\2\2\3\37\3\2\2\2\5$\3\2") buf.write("\2\2\31\3\2\2\2\2\33\3\2\2\2\2\35\3\2\2\2\3\37\3\2\2\2")
buf.write("\2\2\7&\3\2\2\2\t(\3\2\2\2\13*\3\2\2\2\r,\3\2\2\2\17.") buf.write("\5$\3\2\2\2\7&\3\2\2\2\t(\3\2\2\2\13*\3\2\2\2\r,\3\2\2")
buf.write("\3\2\2\2\21\60\3\2\2\2\239\3\2\2\2\25<\3\2\2\2\27@\3\2") buf.write("\2\17.\3\2\2\2\21\60\3\2\2\2\239\3\2\2\2\25<\3\2\2\2\27")
buf.write("\2\2\31B\3\2\2\2\33E\3\2\2\2\35K\3\2\2\2\37 \7k\2\2 !") buf.write("@\3\2\2\2\31B\3\2\2\2\33E\3\2\2\2\35K\3\2\2\2\37 \7k\2")
buf.write("\7p\2\2!\"\7k\2\2\"#\7v\2\2#\4\3\2\2\2$%\7?\2\2%\6\3\2") buf.write("\2 !\7p\2\2!\"\7k\2\2\"#\7v\2\2#\4\3\2\2\2$%\7?\2\2%\6")
buf.write("\2\2&\'\7*\2\2\'\b\3\2\2\2()\7+\2\2)\n\3\2\2\2*+\7}\2") buf.write("\3\2\2\2&\'\7*\2\2\'\b\3\2\2\2()\7+\2\2)\n\3\2\2\2*+\7")
buf.write("\2+\f\3\2\2\2,-\7\177\2\2-\16\3\2\2\2./\7.\2\2/\20\3\2") buf.write("}\2\2+\f\3\2\2\2,-\7\177\2\2-\16\3\2\2\2./\7.\2\2/\20")
buf.write("\2\2\60\61\7h\2\2\61\62\7k\2\2\62\63\7p\2\2\63\64\7c\2") buf.write("\3\2\2\2\60\61\7h\2\2\61\62\7k\2\2\62\63\7p\2\2\63\64")
buf.write("\2\64\65\7n\2\2\65\22\3\2\2\2\66:\7\u03b7\2\2\678\7^\2") buf.write("\7c\2\2\64\65\7n\2\2\65\22\3\2\2\2\66:\7\u03b7\2\2\67")
buf.write("\28:\7g\2\29\66\3\2\2\29\67\3\2\2\2:\24\3\2\2\2;=\t\2") buf.write("8\7^\2\28:\7g\2\29\66\3\2\2\29\67\3\2\2\2:\24\3\2\2\2")
buf.write("\2\2<;\3\2\2\2=>\3\2\2\2><\3\2\2\2>?\3\2\2\2?\26\3\2\2") buf.write(";=\t\2\2\2<;\3\2\2\2=>\3\2\2\2><\3\2\2\2>?\3\2\2\2?\26")
buf.write("\2@A\7%\2\2A\30\3\2\2\2BC\7$\2\2C\32\3\2\2\2DF\t\3\2\2") buf.write("\3\2\2\2@A\7%\2\2A\30\3\2\2\2BC\7$\2\2C\32\3\2\2\2DF\t")
buf.write("ED\3\2\2\2FG\3\2\2\2GE\3\2\2\2GH\3\2\2\2HI\3\2\2\2IJ\b") buf.write("\3\2\2ED\3\2\2\2FG\3\2\2\2GE\3\2\2\2GH\3\2\2\2HI\3\2\2")
buf.write("\16\2\2J\34\3\2\2\2KL\13\2\2\2L\36\3\2\2\2\7\29<>G\3\b") buf.write("\2IJ\b\16\2\2J\34\3\2\2\2KL\13\2\2\2L\36\3\2\2\2\7\29")
buf.write("\2\2") buf.write("<>G\3\b\2\2")
return buf.getvalue() return buf.getvalue()
...@@ -79,7 +82,6 @@ class NFALexer(Lexer): ...@@ -79,7 +82,6 @@ class NFALexer(Lexer):
def __init__(self, input=None, output:TextIO = sys.stdout): def __init__(self, input=None, output:TextIO = sys.stdout):
super().__init__(input, output) super().__init__(input, output)
self.checkVersion("4.8")
self._interp = LexerATNSimulator(self, self.atn, self.decisionsToDFA, PredictionContextCache()) self._interp = LexerATNSimulator(self, self.atn, self.decisionsToDFA, PredictionContextCache())
self._actions = None self._actions = None
self._predicates = None self._predicates = None
......
# Generated from lib/parsing/NFA.g4 by ANTLR 4.8 # Generated from lib/parsing/NFA.g4 by ANTLR 4.9.2
from antlr4 import * from antlr4 import *
if __name__ is not None and "." in __name__: if __name__ is not None and "." in __name__:
from .NFAParser import NFAParser from .NFAParser import NFAParser
......
# Generated from lib/parsing/NFA.g4 by ANTLR 4.8 # Generated from lib/parsing/NFA.g4 by ANTLR 4.9.2
# encoding: utf-8 # encoding: utf-8
from antlr4 import * from antlr4 import *
from io import StringIO from io import StringIO
...@@ -91,7 +91,6 @@ class NFAParser ( Parser ): ...@@ -91,7 +91,6 @@ class NFAParser ( Parser ):
def __init__(self, input:TokenStream, output:TextIO = sys.stdout): def __init__(self, input:TokenStream, output:TextIO = sys.stdout):
super().__init__(input, output) super().__init__(input, output)
self.checkVersion("4.8")
self._interp = ParserATNSimulator(self, self.atn, self.decisionsToDFA, self.sharedContextCache) self._interp = ParserATNSimulator(self, self.atn, self.decisionsToDFA, self.sharedContextCache)
self._predicates = None self._predicates = None
...@@ -99,6 +98,7 @@ class NFAParser ( Parser ): ...@@ -99,6 +98,7 @@ class NFAParser ( Parser ):
class StartContext(ParserRuleContext): class StartContext(ParserRuleContext):
__slots__ = 'parser'
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
super().__init__(parent, invokingState) super().__init__(parent, invokingState)
...@@ -170,6 +170,7 @@ class NFAParser ( Parser ): ...@@ -170,6 +170,7 @@ class NFAParser ( Parser ):
class InitContext(ParserRuleContext): class InitContext(ParserRuleContext):
__slots__ = 'parser'
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
super().__init__(parent, invokingState) super().__init__(parent, invokingState)
...@@ -231,6 +232,7 @@ class NFAParser ( Parser ): ...@@ -231,6 +232,7 @@ class NFAParser ( Parser ):
class ProductionContext(ParserRuleContext): class ProductionContext(ParserRuleContext):
__slots__ = 'parser'
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
super().__init__(parent, invokingState) super().__init__(parent, invokingState)
...@@ -318,6 +320,7 @@ class NFAParser ( Parser ): ...@@ -318,6 +320,7 @@ class NFAParser ( Parser ):
class StatesetContext(ParserRuleContext): class StatesetContext(ParserRuleContext):
__slots__ = 'parser'
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
super().__init__(parent, invokingState) super().__init__(parent, invokingState)
...@@ -401,6 +404,7 @@ class NFAParser ( Parser ): ...@@ -401,6 +404,7 @@ class NFAParser ( Parser ):
class FinalContext(ParserRuleContext): class FinalContext(ParserRuleContext):
__slots__ = 'parser'
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
super().__init__(parent, invokingState) super().__init__(parent, invokingState)
...@@ -452,6 +456,7 @@ class NFAParser ( Parser ): ...@@ -452,6 +456,7 @@ class NFAParser ( Parser ):
class StatenameContext(ParserRuleContext): class StatenameContext(ParserRuleContext):
__slots__ = 'parser'
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
super().__init__(parent, invokingState) super().__init__(parent, invokingState)
...@@ -532,6 +537,7 @@ class NFAParser ( Parser ): ...@@ -532,6 +537,7 @@ class NFAParser ( Parser ):
class CommentContext(ParserRuleContext): class CommentContext(ParserRuleContext):
__slots__ = 'parser'
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
super().__init__(parent, invokingState) super().__init__(parent, invokingState)
...@@ -600,6 +606,7 @@ class NFAParser ( Parser ): ...@@ -600,6 +606,7 @@ class NFAParser ( Parser ):
class AnyvalueContext(ParserRuleContext): class AnyvalueContext(ParserRuleContext):
__slots__ = 'parser'
def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
super().__init__(parent, invokingState) super().__init__(parent, invokingState)
......
Supports Markdown
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