{
    "content": [
        {
            "type": "text",
            "text": "# sre_parse (pydoc)\n\n**Summary:** sreparse - Internal support module for sre\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **MODULE REFERENCE** (8 lines)\n- **CLASSES** (7 lines) — 4 subsections\n  - class State (27 lines)\n  - class SubPattern (35 lines)\n  - class Tokenizer (35 lines)\n  - class Verbose (67 lines)\n- **FUNCTIONS** (1 lines) — 4 subsections\n  - expand_template (1 lines)\n  - fix_flags (1 lines)\n  - parse (1 lines)\n  - parse_template (1 lines)\n- **DATA** (112 lines)\n- **FILE** (3 lines)\n\n## Full Content\n\n### NAME\n\nsreparse - Internal support module for sre\n\n### MODULE REFERENCE\n\nhttps://docs.python.org/3.10/library/sreparse.html\n\nThe following documentation is automatically generated from the Python\nsource files.  It may be incomplete, incorrect or include features that\nare considered implementation detail and may vary between Python\nimplementations.  When in doubt, consult the module reference at the\nlocation listed above.\n\n### CLASSES\n\nbuiltins.Exception(builtins.BaseException)\nVerbose\nbuiltins.object\nState\nSubPattern\nTokenizer\n\n#### class State\n\n|  Methods defined here:\n|\n|  init(self)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  checkgroup(self, gid)\n|\n|  checklookbehindgroup(self, gid, source)\n|\n|  closegroup(self, gid, p)\n|\n|  opengroup(self, name=None)\n|\n|  ----------------------------------------------------------------------\n|  Readonly properties defined here:\n|\n|  groups\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors defined here:\n|\n|  dict\n|      dictionary for instance variables (if defined)\n|\n|  weakref\n|      list of weak references to the object (if defined)\n\n#### class SubPattern\n\n|  SubPattern(state, data=None)\n|\n|  Methods defined here:\n|\n|  delitem(self, index)\n|\n|  getitem(self, index)\n|\n|  init(self, state, data=None)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  len(self)\n|\n|  repr(self)\n|      Return repr(self).\n|\n|  setitem(self, index, code)\n|\n|  append(self, code)\n|\n|  dump(self, level=0)\n|\n|  getwidth(self)\n|\n|  insert(self, index, code)\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors defined here:\n|\n|  dict\n|      dictionary for instance variables (if defined)\n|\n|  weakref\n|      list of weak references to the object (if defined)\n\n#### class Tokenizer\n\n|  Tokenizer(string)\n|\n|  Methods defined here:\n|\n|  init(self, string)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  error(self, msg, offset=0)\n|\n|  get(self)\n|\n|  getuntil(self, terminator, name)\n|\n|  getwhile(self, n, charset)\n|\n|  match(self, char)\n|\n|  seek(self, index)\n|\n|  tell(self)\n|\n|  ----------------------------------------------------------------------\n|  Readonly properties defined here:\n|\n|  pos\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors defined here:\n|\n|  dict\n|      dictionary for instance variables (if defined)\n|\n|  weakref\n|      list of weak references to the object (if defined)\n\n#### class Verbose\n\n|  Method resolution order:\n|      Verbose\n|      builtins.Exception\n|      builtins.BaseException\n|      builtins.object\n|\n|  Data descriptors defined here:\n|\n|  weakref\n|      list of weak references to the object (if defined)\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.Exception:\n|\n|  init(self, /, *args, kwargs)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Static methods inherited from builtins.Exception:\n|\n|  new(*args, kwargs) from builtins.type\n|      Create and return a new object.  See help(type) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.BaseException:\n|\n|  delattr(self, name, /)\n|      Implement delattr(self, name).\n|\n|  getattribute(self, name, /)\n|      Return getattr(self, name).\n|\n|  reduce(...)\n|      Helper for pickle.\n|\n|  repr(self, /)\n|      Return repr(self).\n|\n|  setattr(self, name, value, /)\n|      Implement setattr(self, name, value).\n|\n|  setstate(...)\n|\n|  str(self, /)\n|      Return str(self).\n|\n|  withtraceback(...)\n|      Exception.withtraceback(tb) --\n|      set self.traceback to tb and return self.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from builtins.BaseException:\n|\n|  cause\n|      exception cause\n|\n|  context\n|      exception context\n|\n|  dict\n|\n|  suppresscontext\n|\n|  traceback\n|\n|  args\n\n### FUNCTIONS\n\n#### expand_template\n\n#### fix_flags\n\n#### parse\n\n#### parse_template\n\n### DATA\n\nANY = ANY\nANYALL = ANYALL\nASCIILETTERS = frozenset({'A', 'B', 'C', 'D', 'E', 'F', ...})\nASSERT = ASSERT\nASSERTNOT = ASSERTNOT\nAT = AT\nATCODES = [ATBEGINNING, ATBEGINNINGLINE, ATBEGINNINGSTRING, ATBO...\nATBEGINNING = ATBEGINNING\nATBEGINNINGLINE = ATBEGINNINGLINE\nATBEGINNINGSTRING = ATBEGINNINGSTRING\nATBOUNDARY = ATBOUNDARY\nATEND = ATEND\nATENDLINE = ATENDLINE\nATENDSTRING = ATENDSTRING\nATLOCALE = {ATBOUNDARY: ATLOCBOUNDARY, ATNONBOUNDARY: ATLOCNON...\nATLOCBOUNDARY = ATLOCBOUNDARY\nATLOCNONBOUNDARY = ATLOCNONBOUNDARY\nATMULTILINE = {ATBEGINNING: ATBEGINNINGLINE, ATEND: ATENDLINE}\nATNONBOUNDARY = ATNONBOUNDARY\nATUNICODE = {ATBOUNDARY: ATUNIBOUNDARY, ATNONBOUNDARY: ATUNINO...\nATUNIBOUNDARY = ATUNIBOUNDARY\nATUNINONBOUNDARY = ATUNINONBOUNDARY\nBIGCHARSET = BIGCHARSET\nBRANCH = BRANCH\nCALL = CALL\nCATEGORIES = {r'\\A': (AT, ATBEGINNINGSTRING), r'\\B': (AT, ATNONBOU...\nCATEGORY = CATEGORY\nCATEGORYDIGIT = CATEGORYDIGIT\nCATEGORYLINEBREAK = CATEGORYLINEBREAK\nCATEGORYLOCNOTWORD = CATEGORYLOCNOTWORD\nCATEGORYLOCWORD = CATEGORYLOCWORD\nCATEGORYNOTDIGIT = CATEGORYNOTDIGIT\nCATEGORYNOTLINEBREAK = CATEGORYNOTLINEBREAK\nCATEGORYNOTSPACE = CATEGORYNOTSPACE\nCATEGORYNOTWORD = CATEGORYNOTWORD\nCATEGORYSPACE = CATEGORYSPACE\nCATEGORYUNIDIGIT = CATEGORYUNIDIGIT\nCATEGORYUNILINEBREAK = CATEGORYUNILINEBREAK\nCATEGORYUNINOTDIGIT = CATEGORYUNINOTDIGIT\nCATEGORYUNINOTLINEBREAK = CATEGORYUNINOTLINEBREAK\nCATEGORYUNINOTSPACE = CATEGORYUNINOTSPACE\nCATEGORYUNINOTWORD = CATEGORYUNINOTWORD\nCATEGORYUNISPACE = CATEGORYUNISPACE\nCATEGORYUNIWORD = CATEGORYUNIWORD\nCATEGORYWORD = CATEGORYWORD\nCHARSET = CHARSET\nCHCODES = [CATEGORYDIGIT, CATEGORYNOTDIGIT, CATEGORYSPACE, CATEGOR...\nCHLOCALE = {CATEGORYDIGIT: CATEGORYDIGIT, CATEGORYNOTDIGIT: CATEG...\nCHUNICODE = {CATEGORYDIGIT: CATEGORYUNIDIGIT, CATEGORYNOTDIGIT: ...\nDIGITS = frozenset({'0', '1', '2', '3', '4', '5', ...})\nESCAPES = {r'\\\\': (LITERAL, 92), r'\\a': (LITERAL, 7), r'\\b': (LITERAL,...\nFAILURE = FAILURE\nFLAGS = {'L': 4, 'a': 256, 'i': 2, 'm': 8, 's': 16, 't': 1, 'u': 32, '...\nGLOBALFLAGS = 129\nGROUPREF = GROUPREF\nGROUPREFEXISTS = GROUPREFEXISTS\nGROUPREFIGNORE = GROUPREFIGNORE\nGROUPREFLOCIGNORE = GROUPREFLOCIGNORE\nGROUPREFUNIIGNORE = GROUPREFUNIIGNORE\nHEXDIGITS = frozenset({'0', '1', '2', '3', '4', '5', ...})\nIN = IN\nINFO = INFO\nINIGNORE = INIGNORE\nINLOCIGNORE = INLOCIGNORE\nINUNIIGNORE = INUNIIGNORE\nJUMP = JUMP\nLITERAL = LITERAL\nLITERALIGNORE = LITERALIGNORE\nLITERALLOCIGNORE = LITERALLOCIGNORE\nLITERALUNIIGNORE = LITERALUNIIGNORE\nMAGIC = 20171005\nMARK = MARK\nMAXGROUPS = 2147483647\nMAXREPEAT = MAXREPEAT\nMAXREPEAT = MAXREPEAT\nMAXUNTIL = MAXUNTIL\nMINREPEAT = MINREPEAT\nMINREPEATONE = MINREPEATONE\nMINUNTIL = MINUNTIL\nNEGATE = NEGATE\nNOTLITERAL = NOTLITERAL\nNOTLITERALIGNORE = NOTLITERALIGNORE\nNOTLITERALLOCIGNORE = NOTLITERALLOCIGNORE\nNOTLITERALUNIIGNORE = NOTLITERALUNIIGNORE\nOCTDIGITS = frozenset({'0', '1', '2', '3', '4', '5', ...})\nOPCODES = [FAILURE, SUCCESS, ANY, ANYALL, ASSERT, ASSERTNOT, AT, BRA...\nOPIGNORE = {LITERAL: LITERALIGNORE, NOTLITERAL: NOTLITERALIGNORE}\nOPLOCALEIGNORE = {LITERAL: LITERALLOCIGNORE, NOTLITERAL: NOTLITE...\nOPUNICODEIGNORE = {LITERAL: LITERALUNIIGNORE, NOTLITERAL: NOTLIT...\nRANGE = RANGE\nRANGEUNIIGNORE = RANGEUNIIGNORE\nREPEAT = REPEAT\nREPEATCHARS = '*+?{'\nREPEATONE = REPEATONE\nSPECIALCHARS = r'.\\[{()*+?^$|'\nSREFLAGASCII = 256\nSREFLAGDEBUG = 128\nSREFLAGDOTALL = 16\nSREFLAGIGNORECASE = 2\nSREFLAGLOCALE = 4\nSREFLAGMULTILINE = 8\nSREFLAGTEMPLATE = 1\nSREFLAGUNICODE = 32\nSREFLAGVERBOSE = 64\nSREINFOCHARSET = 4\nSREINFOLITERAL = 2\nSREINFOPREFIX = 1\nSUBPATTERN = SUBPATTERN\nSUCCESS = SUCCESS\nTYPEFLAGS = 292\nWHITESPACE = frozenset({'\\t', '\\n', '\\x0b', '\\x0c', '\\r', ' '})\n\n### FILE\n\n/usr/lib/python3.10/sreparse.py\n\n"
        }
    ],
    "structuredContent": {
        "command": "sre_parse",
        "section": "",
        "mode": "pydoc",
        "summary": "sreparse - Internal support module for sre",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "MODULE REFERENCE",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "CLASSES",
                "lines": 7,
                "subsections": [
                    {
                        "name": "class State",
                        "lines": 27
                    },
                    {
                        "name": "class SubPattern",
                        "lines": 35
                    },
                    {
                        "name": "class Tokenizer",
                        "lines": 35
                    },
                    {
                        "name": "class Verbose",
                        "lines": 67
                    }
                ]
            },
            {
                "name": "FUNCTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "expand_template",
                        "lines": 1
                    },
                    {
                        "name": "fix_flags",
                        "lines": 1
                    },
                    {
                        "name": "parse",
                        "lines": 1
                    },
                    {
                        "name": "parse_template",
                        "lines": 1
                    }
                ]
            },
            {
                "name": "DATA",
                "lines": 112,
                "subsections": []
            },
            {
                "name": "FILE",
                "lines": 3,
                "subsections": []
            }
        ]
    }
}