403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/cygwin64/lib/python3.9/site-packages/pyparsing/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/pyparsing/__pycache__/__init__.cpython-39.pyc
a

�l�a�#�@sdZddlmZGdd�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�vr�eZde�vr�eZde�vr�eZeee7Zgd�ZdS)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�6/usr/lib/python3.9/site-packages/pyparsing/__init__.py�__version__js���zversion_info.__version__cCsd�t|jt�S)Nz
{} {} / {})r
�__name__r�__version_time__rrrr�__str__uszversion_info.__str__c
Cs,d�tt|�jd�dd�t|j|�D���S)Nz	{}.{}({})z, css|]}dj|�VqdS)z{}={!r}N)r
)�.0�nvrrr�	<genexpr>|�z(version_info.__repr__.<locals>.<genexpr>)r
r�type�join�zip�_fieldsrrrr�__repr__xs
�zversion_info.__repr__N)
r�
__module__�__qualname__�int�__annotations__�str�propertyrrrrrrrrcs


r��rz12 Nov 2021 16:06 UTCz+Paul McGuire <ptmcg.gm+pyparsing@gmail.com>�)�*)�__diag__�
__compat__)�_builtin_exprs)�unicode_set�UnicodeRangeList�pyparsing_unicode)�pyparsing_test)�pyparsing_commonr+r.r0r/)�rr�
__author__r*r)ZAndZAtLineStartZ
AtStringStartZCaselessKeywordZCaselessLiteralZ
CharsNotInZCombine�DictZEachZEmptyZ
FollowedByZForwardZ
GoToColumnZGroupZ
IndentedBlockZKeywordZLineEndZ	LineStart�LiteralZLocatedZ
PrecededByZ
MatchFirstZNoMatchZNotAnyZ	OneOrMoreZOnlyOnceZOpAssocZOpt�OptionalZOrZParseBaseExceptionZParseElementEnhanceZParseExceptionZParseExpressionZParseFatalExceptionZ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_attribute�
indentedBlockZoriginal_text_forZungroupZinfix_notation�locatedExprZ
with_classZ
CloseMatchZ	token_mapr0r.r,Zcondition_as_parse_actionr/�__versionTime__ZanyCloseTagZ
anyOpenTagZ
cStyleCommentZcommonHTMLEntityZcountedArrayZcppStyleCommentZdblQuotedStringZdblSlashCommentZ
delimitedListZdictOfZhtmlCommentZjavaStyleCommentZlineEndZ	lineStartZmakeHTMLTagsZmakeXMLTagsZmatchOnlyAtColZmatchPreviousExprZmatchPreviousLiteralZ
nestedExprZnullDebugActionZoneOfZopAssocZpythonStyleCommentZquotedStringZremoveQuotesZreplaceHTMLEntityZreplaceWithZ
restOfLineZsglQuotedStringZ	stringEndZstringStartZtraceParseActionZ
unicodeStringZ
withAttributer:ZoriginalTextForZ
infixNotationr;Z	withClassZtokenMapZconditionAsParseActionZautoname_elementsN)�__doc__�typingrrZ__version_info__rrr<r1�util�
exceptions�actionsZcorer)r*�resultsr+Zcore_builtin_exprsZhelpersZhelper_builtin_exprsZunicoder,r-r.Ztestingr/�commonr0Zcommon_builtin_exprs�globals�__all__rrrr�<module>s6G




Youez - 2016 - github.com/yon3zu
LinuXploit