HEX
Server: LiteSpeed
System: Linux standart9.isimtescil.net 3.10.0-962.3.2.lve1.5.26.7.el7.x86_64 #1 SMP Wed Oct 2 07:53:12 EDT 2019 x86_64
User: karalev (5310)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //opt/alt/python37/lib/python3.7/site-packages/pyparsing/__pycache__/__init__.cpython-37.pyc
B

�f%d�#��@sPdZddlmZGdd�de�Zeddddd�ZdZejZeZd	Zd
dl	Td
dl
Td
dlTd
dlm
Z
mZd
dlTd
dlTd
d
lmZd
dlTd
d
lmZd
dlmZmZmZd
dlmZd
dlmZmZde�kr�eZde�kr�eZde�kr�eZeee7Zddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;d<d=d>d?d@dAdBdCdDdEdFdGdHdIdJdKdLdMdNdOdPdQdRdSdTdUdVdWdXdYdZd[d\d]d^d_d`dadbdcdddedfdgdhdidjdkdldmdndodpdqdrdsdtdudvdwdxdydzd{d|d}d~dd�d�d�d�d�d�d�ddd�d�dd�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�dd�d�d�d�d�d�d�g�Zd�S)�a
pyparsing module - Classes and methods to define and execute parsing grammars
=============================================================================

The pyparsing module is an alternative approach to creating and
executing simple grammars, vs. the traditional lex/yacc approach, or the
use of regular expressions.  With pyparsing, you don't need to learn
a new syntax for defining grammars or matching expressions - the parsing
module provides a library of classes that you use to construct the
grammar directly in Python.

Here is a program to parse "Hello, World!" (or any greeting of the form
``"<salutation>, <addressee>!"``), built up using :class:`Word`,
:class:`Literal`, and :class:`And` elements
(the :meth:`'+'<ParserElement.__add__>` operators create :class:`And` expressions,
and the strings are auto-converted to :class:`Literal` expressions)::

    from pyparsing import Word, alphas

    # define grammar of a greeting
    greet = Word(alphas) + "," + Word(alphas) + "!"

    hello = "Hello, World!"
    print(hello, "->", greet.parse_string(hello))

The program outputs the following::

    Hello, World! -> ['Hello', ',', 'World', '!']

The Python representation of the grammar is quite readable, owing to the
self-explanatory class names, and the use of :class:`'+'<And>`,
:class:`'|'<MatchFirst>`, :class:`'^'<Or>` and :class:`'&'<Each>` operators.

The :class:`ParseResults` object returned from
:class:`ParserElement.parseString` can be
accessed as a nested list, a dictionary, or an object with named
attributes.

The pyparsing module handles some of the problems that are typically
vexing when writing text parsers:

  - extra or missing whitespace (the above program will also handle
    "Hello,World!", "Hello  ,  World  !", etc.)
  - quoted strings
  - embedded comments


Getting Started -
-----------------
Visit the classes :class:`ParserElement` and :class:`ParseResults` to
see the base classes that most other pyparsing
classes inherit from. Use the docstrings for examples of how to:

 - construct literal match expressions from :class:`Literal` and
   :class:`CaselessLiteral` classes
 - construct character word-group expressions using the :class:`Word`
   class
 - see how to create repetitive expressions using :class:`ZeroOrMore`
   and :class:`OneOrMore` classes
 - use :class:`'+'<And>`, :class:`'|'<MatchFirst>`, :class:`'^'<Or>`,
   and :class:`'&'<Each>` operators to combine simple expressions into
   more complex ones
 - associate names with your parsed results using
   :class:`ParserElement.setResultsName`
 - access the parsed data, which is returned as a :class:`ParseResults`
   object
 - find some helpful expression short-cuts like :class:`delimitedList`
   and :class:`oneOf`
 - find more useful common expressions in the :class:`pyparsing_common`
   namespace class
�)�
NamedTuplec@sReZdZUeed<eed<eed<eed<eed<edd��Zdd	�Zd
d�Z	dS)
�version_info�major�minor�micro�releaselevel�serialcCsJd�|j|j|j�d�|jddkr(dnd|jd|j�df|jdkS)Nz{}.{}.{}z{}{}{}r�c�r��final)�formatrrrrr)�self�r�C/opt/alt/python37/lib/python3.7/site-packages/pyparsing/__init__.py�__version__jszversion_info.__version__cCsd�t|jt�S)Nz
{} {} / {})r
�__name__r�__version_time__)rrrr�__str__xszversion_info.__str__c
Cs,d�tt|�jd�dd�t|j|�D���S)Nz	{}.{}({})z, css|]}dj|�VqdS)z{}={!r}N)r
)�.0Znvrrr�	<genexpr>sz(version_info.__repr__.<locals>.<genexpr>)r
r�type�join�zip�_fields)rrrr�__repr__{szversion_info.__repr__N)
r�
__module__�__qualname__�int�__annotations__�str�propertyrrrrrrrrcs
r��	rz05 May 2022 07:02 UTCz+Paul McGuire <ptmcg.gm+pyparsing@gmail.com>�)�*)�__diag__�
__compat__)�_builtin_exprs)�unicode_set�UnicodeRangeList�pyparsing_unicode)�pyparsing_test)�pyparsing_commonr(r+r-r,rr�
__author__r'r&ZAndZAtLineStartZ
AtStringStartZCaselessKeywordZCaselessLiteralZ
CharsNotInZCombineZDictZEachZEmptyZ
FollowedByZForwardZ
GoToColumnZGroupZ
IndentedBlockZKeywordZLineEndZ	LineStartZLiteralZLocatedZ
PrecededByZ
MatchFirstZNoMatchZNotAnyZ	OneOrMoreZOnlyOnceZOpAssocZOptZOptionalZOrZParseBaseExceptionZParseElementEnhanceZParseExceptionZParseExpressionZParseFatalExceptionZParseResultsZParseSyntaxExceptionZ
ParserElementZ
PositionTokenZQuotedStringZRecursiveGrammarExceptionZRegexZSkipToZ	StringEndZStringStartZSuppress�TokenZTokenConverterZWhiteZWordZWordEndZ	WordStartZ
ZeroOrMoreZCharZ	alphanumsZalphasZ
alphas8bitZ
any_close_tagZany_open_tagZc_style_comment�colZcommon_html_entityZ
counted_arrayZcpp_style_commentZdbl_quoted_stringZdbl_slash_commentZdelimited_listZdict_of�emptyZhexnumsZhtml_commentZ
identcharsZidentbodycharsZjava_style_comment�lineZline_endZ
line_start�linenoZmake_html_tagsZ
make_xml_tagsZmatch_only_at_colZmatch_previous_exprZmatch_previous_literalZnested_exprZnull_debug_actionZnumsZone_ofZ
printablesZpunc8bitZpython_style_commentZ
quoted_stringZ
remove_quotesZreplace_withZreplace_html_entityZrest_of_lineZsgl_quoted_stringZsrangeZ
string_endZstring_startZtrace_parse_actionZunicode_stringZwith_attributeZ
indentedBlockZoriginal_text_forZungroupZinfix_notationZlocatedExprZ
with_classZ
CloseMatchZ	token_mapr)Zcondition_as_parse_action�__versionTime__ZanyCloseTagZ
anyOpenTagZ
cStyleCommentZcommonHTMLEntityZcountedArrayZcppStyleCommentZdblQuotedStringZdblSlashCommentZ
delimitedListZdictOfZhtmlCommentZjavaStyleCommentZlineEndZ	lineStartZmakeHTMLTagsZmakeXMLTagsZmatchOnlyAtColZmatchPreviousExprZmatchPreviousLiteralZ
nestedExprZnullDebugActionZoneOfZopAssocZpythonStyleCommentZquotedStringZremoveQuotesZreplaceHTMLEntityZreplaceWithZ
restOfLineZsglQuotedStringZ	stringEndZstringStartZtraceParseActionZ
unicodeStringZ
withAttributeZoriginalTextForZ
infixNotationZ	withClassZtokenMapZconditionAsParseActionZautoname_elementsN)�__doc__�typingrrZ__version_info__rrr4r.�util�
exceptionsZactionsZcorer&r'�resultsr(Zcore_builtin_exprsZhelpersZhelper_builtin_exprsZunicoder)r*r+Ztestingr,�commonr-Zcommon_builtin_exprs�globals�__all__rrrr�<module>_s|