Repository URL to install this package:
Version:
1.0.7~rc2 ▾
|
wlanpi-profiler
/
opt
/
wlanpi-profiler
/
lib
/
python3.7
/
site-packages
/
__pycache__
/
pyparsing.cpython-37.pyc
|
---|
B (rLGPaƀã t @ s d Z dZdZdZddlZddlmZ ddlZddl Z ddl Z ddlZddlZddl Z ddlZddlZddlZddlmZ ddlmZ ddlZdd lmZ dd lmZ yddlmZ W n ek rÔ ddlmZ Y nX ydd lmZ W n" ek r dd lmZ Y nX y ddlm Z ddlm!Z!m"Z" W n2 ek r\ ddl m Z ddl m!Z!m"Z" Y nX yddl m#Z$ W nB ek r° yddl%m#Z$ W n ek rª dZ$Y nX Y nX yddlm&Z& W n$ ek ræ G dd dZ&Y nX e& Z'de'_ de'_(e& Z)de)_ de)_*de)_+de)_,de)_-de)_.dd e/e)D e)_0dd Z1e1e)_2ddddd 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~ddddddd ddddddddddgtZ3e4e j5dd Z6e6d dkZ7e7re j8Z9e:Z;e<Z=e:Z>e:Z?e@eAeBeCeDe4eEeFeGeHeIgZJnbe jKZ9eLZMdd Z?g ZJddlNZNxBd O¡ D ]6ZPyeJ QeReNeP¡ W n eSk râ w°Y nX q°W eTdd eMdD ZUdd ZVejWejX ZYdZZeZd Z[eYeZ Z\e<dZ]d ^dd ej_D ¡Z`daddZaG dd9 d9ebZcG d d; d;ecZdG d¡d= d=ecZeG d¢d? d?eeZfG d£dB dBebZgG d¤d¥ d¥ehZiG d¦d> d>ehZje! kej¡ d§dV Zld¨dg Zmd©dd Zndªd« Zod¬d Zpd®d¯ Zqd°dn Zrdbd²d³ZsG d´d@ d@ehZtG dµd¶ d¶etZuG d·dH dHetZvG d¸d( d(evZwG d¹d3 d3evZxG dºd0 d0evZyG d»d¼ d¼eyZzeyZ{eyet_|G d½d- d-evZ}G d¾d# d#eyZ~G d¿d" d"e}ZG dÀd devZG dÁdK dKevZG dÂdÄ dÃeZG dÄdO dOeZG dÅdC dCevZG dÆdA dAevZ G dÇd$ d$evZG dÈdJ dJevZG dÉdʄ dÊevZG dËd+ d+eZG dÌd/ d/eZG dÍd. d.eZG dÎdF dFeZG dÏdE dEeZG dÐdM dMeZG dÑdL dLeZG dÒd< d<etZG dÓd! d!eZG dÔd8 d8eZG dÕd2 d2eZG dÖd' d'eZG d×d: d:etZG dØd) d)eZG dÙd1 d1eZG dÚd4 d4eZG dÛd܄ dÜeZG dÝd5 d5eZG dÞdN dNeZG dßdà dàehZG dád7 d7eZG dâdD dDeZG dãd* d*eZG dädI dIeZ G dåd% d%e Z¡G dæd, d,e Z¢G dçd& d&e Z£G dèdG dGe Z¤G déd6 d6ehZ¥dêd Z¦dcdìd]Z§dddídYZ¨dîdï Z©dðdl Zªdñdk Z«dòdó Z¬dedôdpZdõd^ Z®dfdödZ¯d÷d Z°død Z±ew ²d`¡Z³e ²df¡Z´e ²de¡Zµe ²d~¡Z¶e ²d}¡Z·ee]dùd±dú ¸dûdü ¡Z¹edý ¸dþdü ¡Zºedÿ ¸d dü ¡Z»e¹eºB e»B edddúB Z¼e¢e¼e¤d e¼ Z½eyded ¾d¡ e¢ee½e¼B ¾d¡ d Z¿dd| Zd dj ZPd dy Zddw ZÐdd ZÄeĐd dü ZÅeĐddü ZÆe¤de¤dfddZǐddh ZȐddi Zɐdd ZÊeh eÊ_ːdgddZÌe& ZÍeh eÍ_Îeh eÍ_Ïe¤de¤dfddZÐeÐZÑe¡edd ²d¡ZÒe¡edd ²d¡ZÓe¡edd edd B ²d ¡ZÔe¡e{d!eԠ¡ ²d"¡ZՐdddeԠ¡ fd#dmZdhd$dZ×ed%ZØed&ZÙeÈeeYe\d' ²d(¡\ZÚZÛeÜeݐd) O¡ d*ZÞed+d, ^eޠߡ ¡ d- ²d.¡Zàd/dx Záe¡ed0d1 ²d2¡Zâed3 ²d4¡Zãed5 ä¡ ²d6¡Zåed7 ²d8¡Zæe¡ed0d1 eæB ²d9¡ZçeçZèed: ²d;¡Zée¡eee`dëd<eed=eydë e ê¡ ²d>¡Zëe§eeԠ¡ eëB dd? ²dW¡ZìG d@d dZíG dAdB dBehZîG dCd dehZïG dDd deïZðeðjñjòjóeðjñjôjó eðjñjõjó eðjñ_óe7 reöeðdEeðj÷ eöeðdFeðjø eöeðdGeðjù eöeðdHeðjú eöeðdIeðjû eöeðdJeðjñ eöeðjñdKeðjñjò eöeðjñdLeðjñjõ eöeðjñdMeðjñjô eöeðdNeðjü eöeðdOeðjý eöeðdPeðjþ G dQdR dRZÿe dSkre~dTZe~dUZeeYe\dV Ze§edWddX ¸ešZe¢e§e ²dY¡ZdZeB Ze§edWddX ¸ešZe¢e§e ²d[¡Zed\edY e ed[ Z e d]¡ eíj d^¡ eíj d^¡ eíj d_¡ ddlZeíj ¸eĐej¡ eíj d`¡ dS (i 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 :class:`'+'<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.parseString(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 '+', '|' and '^' 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 z2.4.7z30 Mar 2020 00:43 UTCz*Paul McGuire <ptmcg@users.sourceforge.net>é N)Úref)Údatetime)Ú itemgetter)Úwraps)Úcontextmanager)Úfilterfalse)Úifilterfalse)ÚRLock)ÚIterable)ÚMutableMappingÚMapping)ÚOrderedDict)ÚSimpleNamespacec @ s e Zd ZdS )r N)Ú__name__Ú __module__Ú__qualname__© r r ú/build/wlanpi-profiler-CSvHZ8/wlanpi-profiler-1.0.7~rc2/debian/wlanpi-profiler/opt/wlanpi-profiler/lib/python3.7/site-packages/pyparsing.pyr s r aA A cross-version compatibility configuration for pyparsing features that will be released in a future version. By setting values in this configuration to True, those features can be enabled in prior versions for compatibility development and testing. - collect_all_And_tokens - flag to enable fix for Issue #63 that fixes erroneous grouping of results names when an And expression is nested within an Or or MatchFirst; set to True to enable bugfix released in pyparsing 2.3.0, or False to preserve pre-2.3.0 handling of named results Ta Diagnostic configuration (all default to False) - warn_multiple_tokens_in_named_alternation - flag to enable warnings when a results name is defined on a MatchFirst or Or expression with one or more And subexpressions (only warns if __compat__.collect_all_And_tokens is False) - warn_ungrouped_named_tokens_in_collection - flag to enable warnings when a results name is defined on a containing expression with ungrouped subexpressions that also have results names - warn_name_set_on_empty_Forward - flag to enable warnings whan a Forward is defined with a results name, but has no contents defined - warn_on_multiple_string_args_to_oneof - flag to enable warnings whan oneOf is incorrectly called with multiple str arguments - enable_debug_on_named_expressions - flag to auto-enable debug on all subsequent calls to ParserElement.setName() Fc C s$ g | ]}| d ¡s| d¡r|qS )Zenable_Zwarn_)Ú startswith)Ú.0Únmr r r ú <listcomp>¼ s r c C s dt _dt _dt _dt _d S )NT)Ú__diag__Ú)warn_multiple_tokens_in_named_alternationÚ)warn_ungrouped_named_tokens_in_collectionÚwarn_name_set_on_empty_ForwardÚ%warn_on_multiple_string_args_to_oneofr r r r Ú_enable_all_warnings¾ s r Ú__version__Ú__versionTime__Ú __author__Ú __compat__r ÚAndÚCaselessKeywordÚCaselessLiteralÚ CharsNotInÚCombineÚDictÚEachÚEmptyÚ FollowedByÚForwardÚ GoToColumnÚGroupÚKeywordÚLineEndÚ LineStartÚLiteralÚ PrecededByÚ MatchFirstÚNoMatchÚNotAnyÚ OneOrMoreÚOnlyOnceÚOptionalÚOrÚParseBaseExceptionÚParseElementEnhanceÚParseExceptionÚParseExpressionÚParseFatalExceptionÚParseResultsÚParseSyntaxExceptionÚ ParserElementÚQuotedStringÚRecursiveGrammarExceptionÚRegexÚSkipToÚ StringEndÚStringStartÚSuppressÚTokenÚTokenConverterÚWhiteÚWordÚWordEndÚ WordStartÚ ZeroOrMoreÚCharÚ alphanumsÚalphasÚ alphas8bitÚanyCloseTagÚ anyOpenTagÚ cStyleCommentÚcolÚcommaSeparatedListÚcommonHTMLEntityÚcountedArrayÚcppStyleCommentÚdblQuotedStringÚdblSlashCommentÚ delimitedListÚdictOfÚdowncaseTokensÚemptyÚhexnumsÚhtmlCommentÚjavaStyleCommentÚlineÚlineEndÚ lineStartÚlinenoÚmakeHTMLTagsÚmakeXMLTagsÚmatchOnlyAtColÚmatchPreviousExprÚmatchPreviousLiteralÚ nestedExprÚnullDebugActionÚnumsÚoneOfÚopAssocÚoperatorPrecedenceÚ printablesÚpunc8bitÚpythonStyleCommentÚquotedStringÚremoveQuotesÚreplaceHTMLEntityÚreplaceWithÚ restOfLineÚsglQuotedStringÚsrangeÚ stringEndÚstringStartÚtraceParseActionÚ unicodeStringÚupcaseTokensÚ withAttributeÚ indentedBlockÚoriginalTextForÚungroupÚ infixNotationÚlocatedExprÚ withClassÚ CloseMatchÚtokenMapÚpyparsing_commonÚpyparsing_unicodeÚunicode_setÚconditionAsParseActionÚreé c C s` t | tr| S yt| S tk rZ t| t ¡ d¡}td}| dd ¡ | |¡S X dS )a Drop-in replacement for str(obj) that tries to be Unicode friendly. It first tries str(obj). If that fails with a UnicodeEncodeError, then it tries unicode(obj). It then < returns the unicode object | encodes it with the default encoding | ... >. Úxmlcharrefreplacez&#\d+;c S s$ dt t| d dd dd S )Nz\ur é éÿÿÿÿ)ÚhexÚint)Útr r r Ú<lambda>ÿ ó z_ustr.<locals>.<lambda>N) Ú isinstanceÚunicodeÚstrÚUnicodeEncodeErrorÚencodeÚsysÚgetdefaultencodingrD ÚsetParseActionÚtransformString)ÚobjÚretZ xmlcharrefr r r Ú_ustrì s r¥ z6sum len sorted reversed list tuple set any all min maxc c s | ] }|V qd S )Nr )r Úyr r r ú <genexpr> s r§ é c C s>