2bi3% SSKrSSKrSSKrSSKJrJrJrJrJr SSK J r "SS\ R\ R\ R\ R\ R 5r\"\R$5r\R("S\-S-5r"S S \5r"S S \5r"S S\5r"SS\5r"SS\5rg)N)collinelineno_collapse_string_to_rangesreplaced_by_pep8)pyparsing_unicodec\rSrSrSrg)ExceptionWordUnicodeN)__name__ __module__ __qualname____firstlineno____static_attributes__r ڒ/builddir/build/BUILDROOT/alt-python313-pip-23.3.1-3.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/pip/_vendor/pyparsing/exceptions.pyr r srr z([z ]{1,16})|.c\rSrSr%Sr\\S'\\S'\\S'\R\S'\R\\\R\4\S'Sr SS\S\S\R\4S jjr \SS j5r\S 5r\S \4Sj5r\S \4Sj5r\S \4Sj5r\S \4Sj5r\S5r\R0S5rS \4SjrSrS SS.S\R\S\S \4SjjjrSS \4Sjjr\"\5S5rSrg )!ParseBaseExceptionz7base exception class for all parsing runtime exceptionslocmsgpstrparser_elementargsrrrrrNchX lUcXlSUlO X0lXlX@lXU4Ulg)Nr)selfrrrelems r__init__ParseBaseException.__init__,s6 ;HDIHI"$ rcrSSKnSSKJn Uc[R"5n/n[ U[ 5(a?URUR5 URSURS- -S-5 UR[U5RSU35 US:GaURURUS9n[5n[XQ*S5GHHupxUSn U R R#S S5n [ X5(aU R$R&R)S 5(dMc[+U 5U;aMtUR-[+U 55 [U 5n URU R.S U RS U 35 OsU b6[U 5n URU R.S U R35 O:U R$n U R&S ;aGMURU R&5 US-nU(aGMI O SR1U5$)a Method to take an exception and translate the Python internal traceback into a list of the pyparsing expressions that caused the exception to be raised. Parameters: - exc - exception raised during parsing (need not be a ParseException, in support of Python exceptions that might be raised in a parse action) - depth (default=16) - number of levels back in the stack trace to list expression and function names; if None, the full stack trace names will be listed; if 0, only the failing input line, marker, and exception string will be shown Returns a multi-line string listing the ParserElements and/or function names in the exception's stack trace. rNr) ParserElement ^z: )contextr ) parseImpl _parseNoCache.z - )wrapperz )inspectcorer%sysgetrecursionlimit isinstancerappendrcolumntypergetinnerframes __traceback__set enumeratef_localsgetf_codeco_name startswithidaddrjoin) excdepthr.r%retcallersseenifffrmf_self self_typecodes rexplain_exception$ParseBaseException.explain_exception=s" ' =))+E c- . . JJsxx JJscjj1n-3 4 d3i(()C512 19,,S->->,NG5D"767#34e))&$7f44::--886!&zT) HHRZ( $V IJJ$//0)2D2D1ESQ' $V IJJ)"6"6!7q9K9K8LMN::D||'>> JJt||, u?5Byy~rchU"URURURUR5$)z internal factory method to simplify creating one type of ParseException from another - avoids having __init__ signature conflicts among subclasses )rrrr)clspes r_from_exception"ParseBaseException._from_exceptions' 277BFFBFFB,=,=>>rreturncB[URUR5$)z7 Return the line of text where the exception occurred. )rrrr s rrParseBaseException.lines DHHdii((rcB[URUR5$)zF Return the 1-based line number of text where the exception occurred. )rrrrVs rrParseBaseException.linenos dhh **rcB[URUR5$zM Return the 1-based column on the line of text where the exception occurred. rrrrVs rrParseBaseException.col 488TYY''rcB[URUR5$r[r\rVs rr4ParseBaseException.columnr^rcUR$NrrVs r parserElement ParseBaseException.parserElements"""rcXlgrbrc)r r!s rrdres"rc UR(aUR[UR5:aSnO}[R URUR5nUbUR S5nO&URURURS-nSU-R SS5nOSnURUSURS URS URS 3 $) Nz, found end of textrrz , found %rz\\\rz (at char z ), (line:z, col:)) rrlen_exception_word_extractormatchgroupreplacerrr4)r foundstr found_matchfounds r__str__ParseBaseException.__str__s 99xx3tyy>)08==diiR *'--a0E IIdhhA>E(5099%FH((H:[ )DKK=PVW[WbWbVccdeerc[U5$rb)strrVs r__repr__ParseBaseException.__repr__s 4yrz>!<) markerString marker_stringrxcUbUOUnURnURS- nU(aSRUSUX#US45nUR5$)zs Extracts the exception line from the input string, and marks the location of the exception with a special symbol. Nrr)rr4rAstrip)r ryrxline_str line_columns rmark_input_line"ParseBaseException.mark_input_lines\)6(A}| 99kkAo ww,;' 7MNH~~rc$URX5$)a< Method to translate the Python internal traceback into a list of the pyparsing expressions that caused the exception to be raised. Parameters: - depth (default=16) - number of levels back in the stack trace to list expression and function names; if None, the full stack trace names will be listed; if 0, only the failing input line, marker, and exception string will be shown Returns a multi-line string listing the ParserElements and/or function names in the exception's stack trace. Example:: expr = pp.Word(pp.nums) * 3 try: expr.parse_string("123 456 A789") except pp.ParseException as pe: print(pe.explain(depth=0)) prints:: 123 456 A789 ^ ParseException: Expected W:(0-9), found 'A' (at char 8), (line:1, col:9) Note: the diagnostic output will include string representations of the expressions that failed to parse. These representations will be more helpful if you use `set_name` to give identifiable names to your expressions. Otherwise they will use the default string forms, which may be cryptic to read. Note: pyparsing's default truncation of exception tracebacks may also truncate the stack of expressions that are displayed in the ``explain`` output. To get the full listing of parser expressions, you may have to set ``ParserElement.verbose_stacktrace = True`` )rM)r rCs rexplainParseBaseException.explainsJ%%d22rcgrbr rVs r markInputline ParseBaseException.markInputlines r)rrrrr)rNN)rb) rrrr__doc__int__annotations__rutypingAnyTupleOptional __slots__r" staticmethodrM classmethodrRpropertyrrrr4rdsetterrrrvr~rrrrr rrrrsA H H IJJ ,,sC!55 66I$(  %%%__S ! %"??B??)c)) +++ (S(( (((####ff 59 QV #__S1 KN  %33%3Po& ' rrc\rSrSrSrSrg)ParseExceptionaE Exception thrown when a parse expression doesn't match the input string Example:: try: Word(nums).set_name("integer").parse_string("ABC") except ParseException as pe: print(pe) print("column: {}".format(pe.column)) prints:: Expected integer (at char 0), (line:1, col:1) column: 1 r Nrrrrrrr rrrrsrrc\rSrSrSrSrg)ParseFatalExceptionizi User-throwable exception thrown when inconsistent parse content is found; stops all parsing immediately r Nrr rrrrsrrc\rSrSrSrSrg)ParseSyntaxExceptioniz Just like :class:`ParseFatalException`, but thrown internally when an :class:`ErrorStop` ('-' operator) indicates that parsing is to stop immediately because an unbacktrackable syntax error has been found. r Nrr rrrrsrrc,\rSrSrSrSrS\4SjrSrg)RecursiveGrammarExceptioni z Exception thrown by :class:`ParserElement.validate` if the grammar could be left-recursive; parser may need to enable left recursion using :class:`ParserElement.enable_left_recursion` cXlgrbparseElementTrace)r parseElementLists rr""RecursiveGrammarException.__init__'s!1rrTc SUR3$)NzRecursiveGrammarException: rrVs rrr!RecursiveGrammarException.__str__*s,T-C-C,DEErrN) rrrrrr"rurrrr rrrr s 2FFrr)rer0rutilrrrrrunicoder ppuLatin1LatinALatinBGreekCyrillicr alphanums_extract_alphanumscompilerk Exceptionrrrrrr rrrs . 3::szz3::syy#,, 00D0N0NOJJt.@'@<'OP_!_!F'(,. F Fr