pyparsing-2.2.0+dfsg1/0000755000175000017500000000000013057145333013235 5ustar zigozigopyparsing-2.2.0+dfsg1/PKG-INFO0000644000175000017500000000165713057145333014343 0ustar zigozigoMetadata-Version: 1.1 Name: pyparsing Version: 2.2.0 Summary: Python parsing module Home-page: http://pyparsing.wikispaces.com/ Author: Paul McGuire Author-email: ptmcg@users.sourceforge.net License: MIT License Download-URL: http://sourceforge.net/project/showfiles.php?group_id=97203 Description: UNKNOWN Platform: UNKNOWN Classifier: Development Status :: 5 - Production/Stable Classifier: Intended Audience :: Developers Classifier: Intended Audience :: Information Technology Classifier: License :: OSI Approved :: MIT License Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 2.6 Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.3 Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 pyparsing-2.2.0+dfsg1/LICENSE0000644000175000017500000000202110704710234014227 0ustar zigozigoPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. pyparsing-2.2.0+dfsg1/README0000644000175000017500000000407312614334455014124 0ustar zigozigo==================================== PyParsing -- A Python Parsing Module ==================================== Introduction ============ 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. The pyparsing module provides a library of classes that client code uses to construct the grammar directly in Python code. Here is a program to parse "Hello, World!" (or any greeting of the form ", !"): from pyparsing import Word, alphas 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 '^' operator definitions. The parsed results returned from 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 The .zip file includes examples of a simple SQL parser, simple CORBA IDL parser, a config file parser, a chemical formula parser, and a four- function algebraic notation parser. It also includes a simple how-to document, and a UML class diagram of the library's classes. Installation ============ Do the usual: python setup.py install (pyparsing requires Python 2.6 or later.) Or corresponding commands using pip, easy_install, or wheel: pip install pyparsing easy_install pyparsing wheel install pyparsing Documentation ============= See: HowToUsePyparsing.html License ======= MIT License. See header of pyparsing.py History ======= See CHANGES file. pyparsing-2.2.0+dfsg1/setup.py0000644000175000017500000000267513046764244014767 0ustar zigozigo#!/usr/bin/env python """Setup script for the pyparsing module distribution.""" # Setuptools depends on pyparsing (via packaging) as of version 34, so allow # installing without it to avoid bootstrap problems. try: from setuptools import setup except ImportError: from distutils.core import setup import sys import os from pyparsing import __version__ as pyparsing_version modules = ["pyparsing",] setup(# Distribution meta-data name = "pyparsing", version = pyparsing_version, description = "Python parsing module", author = "Paul McGuire", author_email = "ptmcg@users.sourceforge.net", url = "http://pyparsing.wikispaces.com/", download_url = "http://sourceforge.net/project/showfiles.php?group_id=97203", license = "MIT License", py_modules = modules, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Intended Audience :: Information Technology', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', ] ) pyparsing-2.2.0+dfsg1/pyparsing.egg-info/0000755000175000017500000000000013057145333016743 5ustar zigozigopyparsing-2.2.0+dfsg1/pyparsing.egg-info/SOURCES.txt0000644000175000017500000001170313057145330020626 0ustar zigozigoCHANGES HowToUsePyparsing.html LICENSE MANIFEST.in README pyparsing.py pyparsingClassDiagram.JPG pyparsingClassDiagram.PNG robots.txt setup.cfg setup.py docs/HowToUsePyparsing.html docs/pycon06-AdventureEngineUsingPyparsing-notes.pdf docs/pycon06-IntroToPyparsing-notes.pdf docs/pyparsingClassDiagram.JPG docs/pyparsingClassDiagram.PNG examples/0README.html examples/AcManForm.dfm examples/LAparser.py examples/Setup.ini examples/SimpleCalc.py examples/SingleForm.dfm examples/TAP.py examples/__init__.py examples/adventureEngine.py examples/antlr_grammar.py examples/antlr_grammar_tests.py examples/apicheck.py examples/btpyparse.py examples/builtin_parse_action_demo.py examples/cLibHeader.py examples/chemicalFormulas.py examples/commasep.py examples/configParse.py examples/cpp_enum_parser.py examples/datetimeParseActions.py examples/deltaTime.py examples/dfmparse.py examples/dhcpd_leases_parser.py examples/dictExample.py examples/dictExample2.py examples/ebnf.py examples/ebnftest.py examples/eval_arith.py examples/excelExpr.py examples/fourFn.py examples/gen_ctypes.py examples/getNTPservers.py examples/getNTPserversNew.py examples/greeting.py examples/greetingInGreek.py examples/greetingInKorean.py examples/groupUsingListAllMatches.py examples/holaMundo.py examples/htmlStripper.py examples/httpServerLogParser.py examples/idlParse.py examples/indentedGrammarExample.py examples/invRegex.py examples/jsonParser.py examples/linenoExample.py examples/list1.py examples/listAllMatches.py examples/lucene_grammar.py examples/macroExpander.py examples/makeHTMLTagExample.py examples/matchPreviousDemo.py examples/mozilla.ics examples/mozillaCalendarParser.py examples/nested.py examples/numerics.py examples/oc.py examples/parseListString.py examples/parsePythonValue.py examples/parseResultsSumExample.py examples/parseTabularData.py examples/partial_gene_match.py examples/pgn.py examples/position.py examples/protobuf_parser.py examples/pymicko.py examples/pythonGrammarParser.py examples/rangeCheck.py examples/readJson.py examples/removeLineBreaks.py examples/romanNumerals.py examples/scanExamples.py examples/scanYahoo.py examples/searchParserAppDemo.py examples/searchparser.py examples/select_parser.py examples/sexpParser.py examples/shapes.py examples/simpleArith.py examples/simpleBool.py examples/simpleSQL.py examples/simpleWiki.py examples/sparser.py examples/sql2dot.py examples/stackish.py examples/stateMachine2.py examples/test_bibparse.py examples/urlExtractor.py examples/urlExtractorNew.py examples/verilogParse.py examples/withAttribute.py examples/wordsToNum.py htmldoc/api-objects.txt htmldoc/class-tree.html htmldoc/crarr.png htmldoc/epydoc.css htmldoc/epydoc.js htmldoc/frames.html htmldoc/help.html htmldoc/identifier-index.html htmldoc/index.html htmldoc/module-tree.html htmldoc/pyparsing-module.html htmldoc/pyparsing-pysrc.html htmldoc/pyparsing.And-class.html htmldoc/pyparsing.CaselessKeyword-class.html htmldoc/pyparsing.CaselessLiteral-class.html htmldoc/pyparsing.CharsNotIn-class.html htmldoc/pyparsing.CloseMatch-class.html htmldoc/pyparsing.Combine-class.html htmldoc/pyparsing.Dict-class.html htmldoc/pyparsing.Each-class.html htmldoc/pyparsing.Empty-class.html htmldoc/pyparsing.FollowedBy-class.html htmldoc/pyparsing.Forward-class.html htmldoc/pyparsing.GoToColumn-class.html htmldoc/pyparsing.Group-class.html htmldoc/pyparsing.Keyword-class.html htmldoc/pyparsing.LineEnd-class.html htmldoc/pyparsing.LineStart-class.html htmldoc/pyparsing.Literal-class.html htmldoc/pyparsing.MatchFirst-class.html htmldoc/pyparsing.NoMatch-class.html htmldoc/pyparsing.NotAny-class.html htmldoc/pyparsing.OneOrMore-class.html htmldoc/pyparsing.OnlyOnce-class.html htmldoc/pyparsing.Optional-class.html htmldoc/pyparsing.Or-class.html htmldoc/pyparsing.ParseBaseException-class.html htmldoc/pyparsing.ParseElementEnhance-class.html htmldoc/pyparsing.ParseException-class.html htmldoc/pyparsing.ParseExpression-class.html htmldoc/pyparsing.ParseFatalException-class.html htmldoc/pyparsing.ParseResults-class.html htmldoc/pyparsing.ParseSyntaxException-class.html htmldoc/pyparsing.ParserElement-class.html htmldoc/pyparsing.QuotedString-class.html htmldoc/pyparsing.Recipes-class.html htmldoc/pyparsing.RecursiveGrammarException-class.html htmldoc/pyparsing.Regex-class.html htmldoc/pyparsing.Regex.compiledREtype-class.html htmldoc/pyparsing.SkipTo-class.html htmldoc/pyparsing.StringEnd-class.html htmldoc/pyparsing.StringStart-class.html htmldoc/pyparsing.Suppress-class.html htmldoc/pyparsing.Token-class.html htmldoc/pyparsing.TokenConverter-class.html htmldoc/pyparsing.White-class.html htmldoc/pyparsing.Word-class.html htmldoc/pyparsing.WordEnd-class.html htmldoc/pyparsing.WordStart-class.html htmldoc/pyparsing.ZeroOrMore-class.html htmldoc/pyparsing.pyparsing_common-class.html htmldoc/redirect.html htmldoc/toc-everything.html htmldoc/toc-pyparsing-module.html htmldoc/toc.html pyparsing.egg-info/PKG-INFO pyparsing.egg-info/SOURCES.txt pyparsing.egg-info/dependency_links.txt pyparsing.egg-info/top_level.txtpyparsing-2.2.0+dfsg1/pyparsing.egg-info/PKG-INFO0000644000175000017500000000165713057145327020054 0ustar zigozigoMetadata-Version: 1.1 Name: pyparsing Version: 2.2.0 Summary: Python parsing module Home-page: http://pyparsing.wikispaces.com/ Author: Paul McGuire Author-email: ptmcg@users.sourceforge.net License: MIT License Download-URL: http://sourceforge.net/project/showfiles.php?group_id=97203 Description: UNKNOWN Platform: UNKNOWN Classifier: Development Status :: 5 - Production/Stable Classifier: Intended Audience :: Developers Classifier: Intended Audience :: Information Technology Classifier: License :: OSI Approved :: MIT License Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 2.6 Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.3 Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 pyparsing-2.2.0+dfsg1/pyparsing.egg-info/dependency_links.txt0000644000175000017500000000000113057145327023014 0ustar zigozigo pyparsing-2.2.0+dfsg1/pyparsing.egg-info/top_level.txt0000644000175000017500000000001213057145327021471 0ustar zigozigopyparsing pyparsing-2.2.0+dfsg1/htmldoc/0000755000175000017500000000000013057145333014667 5ustar zigozigopyparsing-2.2.0+dfsg1/htmldoc/frames.html0000644000175000017500000000110713057143513017027 0ustar zigozigo pyparsing pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.StringStart-class.html0000644000175000017500000003760013057143514023164 0ustar zigozigo pyparsing.StringStart
Module pyparsing :: Class StringStart
[frames] | no frames]

Class StringStart

source code

   object --+            
            |            
ParserElement --+        
                |        
            Token --+    
                    |    
       _PositionToken --+
                        |
                       StringStart

Matches if current position is at the beginning of the parse string

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
parseImpl(self, instring, loc, doActions=True) source code

Inherited from ParserElement: __add__, __and__, __call__, __eq__, __hash__, __invert__, __mul__, __ne__, __or__, __radd__, __rand__, __repr__, __req__, __rmul__, __rne__, __ror__, __rsub__, __rxor__, __str__, __sub__, __xor__, addCondition, addParseAction, canParseNext, checkRecursion, copy, ignore, leaveWhitespace, matches, parseFile, parseString, parseWithTabs, postParse, preParse, runTests, scanString, searchString, setBreak, setDebug, setDebugActions, setFailAction, setName, setParseAction, setResultsName, setWhitespaceChars, split, streamline, suppress, transformString, tryParse, validate

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods

Inherited from ParserElement: enablePackrat, inlineLiteralsUsing, resetCache, setDefaultWhitespaceChars

Class Variables

Inherited from ParserElement: DEFAULT_WHITE_CHARS, packrat_cache, packrat_cache_lock, packrat_cache_stats, verbose_stacktrace

Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

parseImpl(self, instring, loc, doActions=True)

source code 
Overrides: ParserElement.parseImpl

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.Combine-class.html0000644000175000017500000004725513057143513022262 0ustar zigozigo pyparsing.Combine
Module pyparsing :: Class Combine
[frames] | no frames]

Class Combine

source code

     object --+            
              |            
  ParserElement --+        
                  |        
ParseElementEnhance --+    
                      |    
         TokenConverter --+
                          |
                         Combine

Converter to concatenate all matching tokens to a single string. By default, the matching patterns must also be contiguous in the input string; this can be disabled by specifying 'adjacent=False' in the constructor.

Example:

   real = Word(nums) + '.' + Word(nums)
   print(real.parseString('3.1416')) # -> ['3', '.', '1416']
   # will also erroneously match the following
   print(real.parseString('3. 1416')) # -> ['3', '.', '1416']

   real = Combine(Word(nums) + '.' + Word(nums))
   print(real.parseString('3.1416')) # -> ['3.1416']
   # no match when there are internal spaces
   print(real.parseString('3. 1416')) # -> Exception: Expected W:(0123...)
Instance Methods
 
__init__(self, expr, joinString='', adjacent=True)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
ignore(self, other)
Define expression to be ignored (e.g., comments) while doing pattern matching; may be called repeatedly, to define multiple comment or other ignorable patterns.
source code
 
postParse(self, instring, loc, tokenlist) source code

Inherited from ParseElementEnhance: __str__, checkRecursion, leaveWhitespace, parseImpl, streamline, validate

Inherited from ParserElement: __add__, __and__, __call__, __eq__, __hash__, __invert__, __mul__, __ne__, __or__, __radd__, __rand__, __repr__, __req__, __rmul__, __rne__, __ror__, __rsub__, __rxor__, __sub__, __xor__, addCondition, addParseAction, canParseNext, copy, matches, parseFile, parseString, parseWithTabs, preParse, runTests, scanString, searchString, setBreak, setDebug, setDebugActions, setFailAction, setName, setParseAction, setResultsName, setWhitespaceChars, split, suppress, transformString, tryParse

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods

Inherited from ParserElement: enablePackrat, inlineLiteralsUsing, resetCache, setDefaultWhitespaceChars

Class Variables
  __slotnames__ = []

Inherited from ParserElement: DEFAULT_WHITE_CHARS, packrat_cache, packrat_cache_lock, packrat_cache_stats, verbose_stacktrace

Properties

Inherited from object: __class__

Method Details

__init__(self, expr, joinString='', adjacent=True)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

ignore(self, other)

source code 

Define expression to be ignored (e.g., comments) while doing pattern matching; may be called repeatedly, to define multiple comment or other ignorable patterns.

Example:

   patt = OneOrMore(Word(alphas))
   patt.parseString('ablaj /* comment */ lskjd') # -> ['ablaj']
   
   patt.ignore(cStyleComment)
   patt.parseString('ablaj /* comment */ lskjd') # -> ['ablaj', 'lskjd']
Overrides: ParserElement.ignore
(inherited documentation)

postParse(self, instring, loc, tokenlist)

source code 
Overrides: ParserElement.postParse

pyparsing-2.2.0+dfsg1/htmldoc/toc-pyparsing-module.html0000644000175000017500000002466213057143513021647 0ustar zigozigo pyparsing

Module pyparsing


Classes

And
CaselessKeyword
CaselessLiteral
CharsNotIn
CloseMatch
Combine
Dict
Each
Empty
FollowedBy
Forward
GoToColumn
Group
Keyword
LineEnd
LineStart
Literal
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
pyparsing_common

Functions

col
countedArray
delimitedList
dictOf
downcaseTokens
indentedBlock
infixNotation
line
lineno
locatedExpr
makeHTMLTags
makeXMLTags
matchOnlyAtCol
matchPreviousExpr
matchPreviousLiteral
nestedExpr
nullDebugAction
oneOf
operatorPrecedence
originalTextFor
removeQuotes
replaceHTMLEntity
replaceWith
srange
tokenMap
traceParseAction
ungroup
upcaseTokens
withAttribute
withClass

Variables

alphanums
alphas
alphas8bit
anyCloseTag
anyOpenTag
cStyleComment
commaSeparatedList
commonHTMLEntity
cppStyleComment
dblQuotedString
dblSlashComment
empty
hexnums
htmlComment
javaStyleComment
lineEnd
lineStart
nums
opAssoc
printables
punc8bit
pythonStyleComment
quotedString
restOfLine
sglQuotedString
stringEnd
stringStart
unicodeString

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.ParseSyntaxException-class.html0000644000175000017500000001644113057143513025037 0ustar zigozigo pyparsing.ParseSyntaxException
Module pyparsing :: Class ParseSyntaxException
[frames] | no frames]

Class ParseSyntaxException

source code

              object --+                
                       |                
exceptions.BaseException --+            
                           |            
        exceptions.Exception --+        
                               |        
              ParseBaseException --+    
                                   |    
                 ParseFatalException --+
                                       |
                                      ParseSyntaxException

just like ParseFatalException, but thrown internally when an ErrorStop ('-' operator) indicates that parsing is to stop immediately because an unbacktrackable syntax error has been found

Instance Methods

Inherited from ParseBaseException: __dir__, __getattr__, __init__, __repr__, __str__, markInputline

Inherited from exceptions.Exception: __new__

Inherited from exceptions.BaseException: __delattr__, __getattribute__, __getitem__, __getslice__, __reduce__, __setattr__, __setstate__, __unicode__

Inherited from object: __format__, __hash__, __reduce_ex__, __sizeof__, __subclasshook__

Properties

Inherited from exceptions.BaseException: args, message

Inherited from object: __class__

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.ParseException-class.html0000644000175000017500000001700213057143513023622 0ustar zigozigo pyparsing.ParseException
Module pyparsing :: Class ParseException
[frames] | no frames]

Class ParseException

source code

              object --+            
                       |            
exceptions.BaseException --+        
                           |        
        exceptions.Exception --+    
                               |    
              ParseBaseException --+
                                   |
                                  ParseException

Exception thrown when parse expressions don't match class; supported attributes by name are:

Example:

   try:
       Word(nums).setName("integer").parseString("ABC")
   except ParseException as pe:
       print(pe)
       print("column: {}".format(pe.col))

prints:

  Expected integer (at char 0), (line:1, col:1)
   column: 1
Instance Methods

Inherited from ParseBaseException: __dir__, __getattr__, __init__, __repr__, __str__, markInputline

Inherited from exceptions.Exception: __new__

Inherited from exceptions.BaseException: __delattr__, __getattribute__, __getitem__, __getslice__, __reduce__, __setattr__, __setstate__, __unicode__

Inherited from object: __format__, __hash__, __reduce_ex__, __sizeof__, __subclasshook__

Properties

Inherited from exceptions.BaseException: args, message

Inherited from object: __class__

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing-pysrc.html0000644000175000017500000633562313057143515020751 0ustar zigozigo pyparsing
Module pyparsing
[frames] | no frames]

Source Code for Module pyparsing

   1  # module pyparsing.py 
   2  # 
   3  # Copyright (c) 2003-2016  Paul T. McGuire 
   4  # 
   5  # Permission is hereby granted, free of charge, to any person obtaining 
   6  # a copy of this software and associated documentation files (the 
   7  # "Software"), to deal in the Software without restriction, including 
   8  # without limitation the rights to use, copy, modify, merge, publish, 
   9  # distribute, sublicense, and/or sell copies of the Software, and to 
  10  # permit persons to whom the Software is furnished to do so, subject to 
  11  # the following conditions: 
  12  # 
  13  # The above copyright notice and this permission notice shall be 
  14  # included in all copies or substantial portions of the Software. 
  15  # 
  16  # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 
  17  # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 
  18  # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 
  19  # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 
  20  # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 
  21  # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 
  22  # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 
  23  # 
  24   
  25  __doc__ = \ 
  26  """ 
  27  pyparsing module - Classes and methods to define and execute parsing grammars 
  28   
  29  The pyparsing module is an alternative approach to creating and executing simple grammars, 
  30  vs. the traditional lex/yacc approach, or the use of regular expressions.  With pyparsing, you 
  31  don't need to learn a new syntax for defining grammars or matching expressions - the parsing module 
  32  provides a library of classes that you use to construct the grammar directly in Python. 
  33   
  34  Here is a program to parse "Hello, World!" (or any greeting of the form  
  35  C{"<salutation>, <addressee>!"}), built up using L{Word}, L{Literal}, and L{And} elements  
  36  (L{'+'<ParserElement.__add__>} operator gives L{And} expressions, strings are auto-converted to 
  37  L{Literal} expressions):: 
  38   
  39      from pyparsing import Word, alphas 
  40   
  41      # define grammar of a greeting 
  42      greet = Word(alphas) + "," + Word(alphas) + "!" 
  43   
  44      hello = "Hello, World!" 
  45      print (hello, "->", greet.parseString(hello)) 
  46   
  47  The program outputs the following:: 
  48   
  49      Hello, World! -> ['Hello', ',', 'World', '!'] 
  50   
  51  The Python representation of the grammar is quite readable, owing to the self-explanatory 
  52  class names, and the use of '+', '|' and '^' operators. 
  53   
  54  The L{ParseResults} object returned from L{ParserElement.parseString<ParserElement.parseString>} can be accessed as a nested list, a dictionary, or an 
  55  object with named attributes. 
  56   
  57  The pyparsing module handles some of the problems that are typically vexing when writing text parsers: 
  58   - extra or missing whitespace (the above program will also handle "Hello,World!", "Hello  ,  World  !", etc.) 
  59   - quoted strings 
  60   - embedded comments 
  61  """ 
  62   
  63  __version__ = "2.2.0" 
  64  __versionTime__ = "06 Mar 2017 02:06 UTC" 
  65  __author__ = "Paul McGuire <ptmcg@users.sourceforge.net>" 
  66   
  67  import string 
  68  from weakref import ref as wkref 
  69  import copy 
  70  import sys 
  71  import warnings 
  72  import re 
  73  import sre_constants 
  74  import collections 
  75  import pprint 
  76  import traceback 
  77  import types 
  78  from datetime import datetime 
  79   
  80  try: 
  81      from _thread import RLock 
  82  except ImportError: 
  83      from threading import RLock 
  84   
  85  try: 
  86      from collections import OrderedDict as _OrderedDict 
  87  except ImportError: 
  88      try: 
  89          from ordereddict import OrderedDict as _OrderedDict 
  90      except ImportError: 
  91          _OrderedDict = None 
  92   
  93  #~ sys.stderr.write( "testing pyparsing module, version %s, %s\n" % (__version__,__versionTime__ ) ) 
  94   
  95  __all__ = [ 
  96  'And', 'CaselessKeyword', 'CaselessLiteral', 'CharsNotIn', 'Combine', 'Dict', 'Each', 'Empty', 
  97  'FollowedBy', 'Forward', 'GoToColumn', 'Group', 'Keyword', 'LineEnd', 'LineStart', 'Literal', 
  98  'MatchFirst', 'NoMatch', 'NotAny', 'OneOrMore', 'OnlyOnce', 'Optional', 'Or', 
  99  'ParseBaseException', 'ParseElementEnhance', 'ParseException', 'ParseExpression', 'ParseFatalException', 
 100  'ParseResults', 'ParseSyntaxException', 'ParserElement', 'QuotedString', 'RecursiveGrammarException', 
 101  'Regex', 'SkipTo', 'StringEnd', 'StringStart', 'Suppress', 'Token', 'TokenConverter',  
 102  'White', 'Word', 'WordEnd', 'WordStart', 'ZeroOrMore', 
 103  'alphanums', 'alphas', 'alphas8bit', 'anyCloseTag', 'anyOpenTag', 'cStyleComment', 'col', 
 104  'commaSeparatedList', 'commonHTMLEntity', 'countedArray', 'cppStyleComment', 'dblQuotedString', 
 105  'dblSlashComment', 'delimitedList', 'dictOf', 'downcaseTokens', 'empty', 'hexnums', 
 106  'htmlComment', 'javaStyleComment', 'line', 'lineEnd', 'lineStart', 'lineno', 
 107  'makeHTMLTags', 'makeXMLTags', 'matchOnlyAtCol', 'matchPreviousExpr', 'matchPreviousLiteral', 
 108  'nestedExpr', 'nullDebugAction', 'nums', 'oneOf', 'opAssoc', 'operatorPrecedence', 'printables', 
 109  'punc8bit', 'pythonStyleComment', 'quotedString', 'removeQuotes', 'replaceHTMLEntity',  
 110  'replaceWith', 'restOfLine', 'sglQuotedString', 'srange', 'stringEnd', 
 111  'stringStart', 'traceParseAction', 'unicodeString', 'upcaseTokens', 'withAttribute', 
 112  'indentedBlock', 'originalTextFor', 'ungroup', 'infixNotation','locatedExpr', 'withClass', 
 113  'CloseMatch', 'tokenMap', 'pyparsing_common', 
 114  ] 
 115   
 116  system_version = tuple(sys.version_info)[:3] 
 117  PY_3 = system_version[0] == 3 
 118  if PY_3: 
 119      _MAX_INT = sys.maxsize 
 120      basestring = str 
 121      unichr = chr 
 122      _ustr = str 
 123   
 124      # build list of single arg builtins, that can be used as parse actions 
 125      singleArgBuiltins = [sum, len, sorted, reversed, list, tuple, set, any, all, min, max] 
 126   
 127  else: 
 128      _MAX_INT = sys.maxint 
 129      range = xrange 
130 131 - def _ustr(obj):
132 """Drop-in replacement for str(obj) that tries to be Unicode friendly. It first tries 133 str(obj). If that fails with a UnicodeEncodeError, then it tries unicode(obj). It 134 then < returns the unicode object | encodes it with the default encoding | ... >. 135 """ 136 if isinstance(obj,unicode): 137 return obj 138 139 try: 140 # If this works, then _ustr(obj) has the same behaviour as str(obj), so 141 # it won't break any existing code. 142 return str(obj) 143 144 except UnicodeEncodeError: 145 # Else encode it 146 ret = unicode(obj).encode(sys.getdefaultencoding(), 'xmlcharrefreplace') 147 xmlcharref = Regex(r'&#\d+;') 148 xmlcharref.setParseAction(lambda t: '\\u' + hex(int(t[0][2:-1]))[2:]) 149 return xmlcharref.transformString(ret)
150 151 # build list of single arg builtins, tolerant of Python version, that can be used as parse actions 152 singleArgBuiltins = [] 153 import __builtin__ 154 for fname in "sum len sorted reversed list tuple set any all min max".split(): 155 try: 156 singleArgBuiltins.append(getattr(__builtin__,fname)) 157 except AttributeError: 158 continue 159 160 _generatorType = type((y for y in range(1)))
161 162 -def _xml_escape(data):
163 """Escape &, <, >, ", ', etc. in a string of data.""" 164 165 # ampersand must be replaced first 166 from_symbols = '&><"\'' 167 to_symbols = ('&'+s+';' for s in "amp gt lt quot apos".split()) 168 for from_,to_ in zip(from_symbols, to_symbols): 169 data = data.replace(from_, to_) 170 return data
171
172 -class _Constants(object):
173 pass
174 175 alphas = string.ascii_uppercase + string.ascii_lowercase 176 nums = "0123456789" 177 hexnums = nums + "ABCDEFabcdef" 178 alphanums = alphas + nums 179 _bslash = chr(92) 180 printables = "".join(c for c in string.printable if c not in string.whitespace)
181 182 -class ParseBaseException(Exception):
183 """base exception class for all parsing runtime exceptions""" 184 # Performance tuning: we construct a *lot* of these, so keep this 185 # constructor as small and fast as possible
186 - def __init__( self, pstr, loc=0, msg=None, elem=None ):
187 self.loc = loc 188 if msg is None: 189 self.msg = pstr 190 self.pstr = "" 191 else: 192 self.msg = msg 193 self.pstr = pstr 194 self.parserElement = elem 195 self.args = (pstr, loc, msg)
196 197 @classmethod
198 - def _from_exception(cls, pe):
199 """ 200 internal factory method to simplify creating one type of ParseException 201 from another - avoids having __init__ signature conflicts among subclasses 202 """ 203 return cls(pe.pstr, pe.loc, pe.msg, pe.parserElement)
204
205 - def __getattr__( self, aname ):
206 """supported attributes by name are: 207 - lineno - returns the line number of the exception text 208 - col - returns the column number of the exception text 209 - line - returns the line containing the exception text 210 """ 211 if( aname == "lineno" ): 212 return lineno( self.loc, self.pstr ) 213 elif( aname in ("col", "column") ): 214 return col( self.loc, self.pstr ) 215 elif( aname == "line" ): 216 return line( self.loc, self.pstr ) 217 else: 218 raise AttributeError(aname)
219
220 - def __str__( self ):
221 return "%s (at char %d), (line:%d, col:%d)" % \ 222 ( self.msg, self.loc, self.lineno, self.column )
223 - def __repr__( self ):
224 return _ustr(self)
225 - def markInputline( self, markerString = ">!<" ):
226 """Extracts the exception line from the input string, and marks 227 the location of the exception with a special symbol. 228 """ 229 line_str = self.line 230 line_column = self.column - 1 231 if markerString: 232 line_str = "".join((line_str[:line_column], 233 markerString, line_str[line_column:])) 234 return line_str.strip()
235 - def __dir__(self):
236 return "lineno col line".split() + dir(type(self))
237
238 -class ParseException(ParseBaseException):
239 """ 240 Exception thrown when parse expressions don't match class; 241 supported attributes by name are: 242 - lineno - returns the line number of the exception text 243 - col - returns the column number of the exception text 244 - line - returns the line containing the exception text 245 246 Example:: 247 try: 248 Word(nums).setName("integer").parseString("ABC") 249 except ParseException as pe: 250 print(pe) 251 print("column: {}".format(pe.col)) 252 253 prints:: 254 Expected integer (at char 0), (line:1, col:1) 255 column: 1 256 """ 257 pass
258
259 -class ParseFatalException(ParseBaseException):
260 """user-throwable exception thrown when inconsistent parse content 261 is found; stops all parsing immediately""" 262 pass
263
264 -class ParseSyntaxException(ParseFatalException):
265 """just like L{ParseFatalException}, but thrown internally when an 266 L{ErrorStop<And._ErrorStop>} ('-' operator) indicates that parsing is to stop 267 immediately because an unbacktrackable syntax error has been found""" 268 pass
269
270 #~ class ReparseException(ParseBaseException): 271 #~ """Experimental class - parse actions can raise this exception to cause 272 #~ pyparsing to reparse the input string: 273 #~ - with a modified input string, and/or 274 #~ - with a modified start location 275 #~ Set the values of the ReparseException in the constructor, and raise the 276 #~ exception in a parse action to cause pyparsing to use the new string/location. 277 #~ Setting the values as None causes no change to be made. 278 #~ """ 279 #~ def __init_( self, newstring, restartLoc ): 280 #~ self.newParseText = newstring 281 #~ self.reparseLoc = restartLoc 282 283 -class RecursiveGrammarException(Exception):
284 """exception thrown by L{ParserElement.validate} if the grammar could be improperly recursive"""
285 - def __init__( self, parseElementList ):
286 self.parseElementTrace = parseElementList
287
288 - def __str__( self ):
289 return "RecursiveGrammarException: %s" % self.parseElementTrace
290
291 -class _ParseResultsWithOffset(object):
292 - def __init__(self,p1,p2):
293 self.tup = (p1,p2)
294 - def __getitem__(self,i):
295 return self.tup[i]
296 - def __repr__(self):
297 return repr(self.tup[0])
298 - def setOffset(self,i):
299 self.tup = (self.tup[0],i)
300
301 -class ParseResults(object):
302 """ 303 Structured parse results, to provide multiple means of access to the parsed data: 304 - as a list (C{len(results)}) 305 - by list index (C{results[0], results[1]}, etc.) 306 - by attribute (C{results.<resultsName>} - see L{ParserElement.setResultsName}) 307 308 Example:: 309 integer = Word(nums) 310 date_str = (integer.setResultsName("year") + '/' 311 + integer.setResultsName("month") + '/' 312 + integer.setResultsName("day")) 313 # equivalent form: 314 # date_str = integer("year") + '/' + integer("month") + '/' + integer("day") 315 316 # parseString returns a ParseResults object 317 result = date_str.parseString("1999/12/31") 318 319 def test(s, fn=repr): 320 print("%s -> %s" % (s, fn(eval(s)))) 321 test("list(result)") 322 test("result[0]") 323 test("result['month']") 324 test("result.day") 325 test("'month' in result") 326 test("'minutes' in result") 327 test("result.dump()", str) 328 prints:: 329 list(result) -> ['1999', '/', '12', '/', '31'] 330 result[0] -> '1999' 331 result['month'] -> '12' 332 result.day -> '31' 333 'month' in result -> True 334 'minutes' in result -> False 335 result.dump() -> ['1999', '/', '12', '/', '31'] 336 - day: 31 337 - month: 12 338 - year: 1999 339 """
340 - def __new__(cls, toklist=None, name=None, asList=True, modal=True ):
341 if isinstance(toklist, cls): 342 return toklist 343 retobj = object.__new__(cls) 344 retobj.__doinit = True 345 return retobj
346 347 # Performance tuning: we construct a *lot* of these, so keep this 348 # constructor as small and fast as possible
349 - def __init__( self, toklist=None, name=None, asList=True, modal=True, isinstance=isinstance ):
350 if self.__doinit: 351 self.__doinit = False 352 self.__name = None 353 self.__parent = None 354 self.__accumNames = {} 355 self.__asList = asList 356 self.__modal = modal 357 if toklist is None: 358 toklist = [] 359 if isinstance(toklist, list): 360 self.__toklist = toklist[:] 361 elif isinstance(toklist, _generatorType): 362 self.__toklist = list(toklist) 363 else: 364 self.__toklist = [toklist] 365 self.__tokdict = dict() 366 367 if name is not None and name: 368 if not modal: 369 self.__accumNames[name] = 0 370 if isinstance(name,int): 371 name = _ustr(name) # will always return a str, but use _ustr for consistency 372 self.__name = name 373 if not (isinstance(toklist, (type(None), basestring, list)) and toklist in (None,'',[])): 374 if isinstance(toklist,basestring): 375 toklist = [ toklist ] 376 if asList: 377 if isinstance(toklist,ParseResults): 378 self[name] = _ParseResultsWithOffset(toklist.copy(),0) 379 else: 380 self[name] = _ParseResultsWithOffset(ParseResults(toklist[0]),0) 381 self[name].__name = name 382 else: 383 try: 384 self[name] = toklist[0] 385 except (KeyError,TypeError,IndexError): 386 self[name] = toklist
387
388 - def __getitem__( self, i ):
389 if isinstance( i, (int,slice) ): 390 return self.__toklist[i] 391 else: 392 if i not in self.__accumNames: 393 return self.__tokdict[i][-1][0] 394 else: 395 return ParseResults([ v[0] for v in self.__tokdict[i] ])
396
397 - def __setitem__( self, k, v, isinstance=isinstance ):
398 if isinstance(v,_ParseResultsWithOffset): 399 self.__tokdict[k] = self.__tokdict.get(k,list()) + [v] 400 sub = v[0] 401 elif isinstance(k,(int,slice)): 402 self.__toklist[k] = v 403 sub = v 404 else: 405 self.__tokdict[k] = self.__tokdict.get(k,list()) + [_ParseResultsWithOffset(v,0)] 406 sub = v 407 if isinstance(sub,ParseResults): 408 sub.__parent = wkref(self)
409
410 - def __delitem__( self, i ):
411 if isinstance(i,(int,slice)): 412 mylen = len( self.__toklist ) 413 del self.__toklist[i] 414 415 # convert int to slice 416 if isinstance(i, int): 417 if i < 0: 418 i += mylen 419 i = slice(i, i+1) 420 # get removed indices 421 removed = list(range(*i.indices(mylen))) 422 removed.reverse() 423 # fixup indices in token dictionary 424 for name,occurrences in self.__tokdict.items(): 425 for j in removed: 426 for k, (value, position) in enumerate(occurrences): 427 occurrences[k] = _ParseResultsWithOffset(value, position - (position > j)) 428 else: 429 del self.__tokdict[i]
430
431 - def __contains__( self, k ):
432 return k in self.__tokdict
433
434 - def __len__( self ): return len( self.__toklist )
435 - def __bool__(self): return ( not not self.__toklist )
436 __nonzero__ = __bool__
437 - def __iter__( self ): return iter( self.__toklist )
438 - def __reversed__( self ): return iter( self.__toklist[::-1] )
439 - def _iterkeys( self ):
440 if hasattr(self.__tokdict, "iterkeys"): 441 return self.__tokdict.iterkeys() 442 else: 443 return iter(self.__tokdict)
444
445 - def _itervalues( self ):
446 return (self[k] for k in self._iterkeys())
447
448 - def _iteritems( self ):
449 return ((k, self[k]) for k in self._iterkeys())
450 451 if PY_3: 452 keys = _iterkeys 453 """Returns an iterator of all named result keys (Python 3.x only).""" 454 455 values = _itervalues 456 """Returns an iterator of all named result values (Python 3.x only).""" 457 458 items = _iteritems 459 """Returns an iterator of all named result key-value tuples (Python 3.x only).""" 460 461 else: 462 iterkeys = _iterkeys 463 """Returns an iterator of all named result keys (Python 2.x only).""" 464 465 itervalues = _itervalues 466 """Returns an iterator of all named result values (Python 2.x only).""" 467 468 iteritems = _iteritems 469 """Returns an iterator of all named result key-value tuples (Python 2.x only).""" 470
471 - def keys( self ):
472 """Returns all named result keys (as a list in Python 2.x, as an iterator in Python 3.x).""" 473 return list(self.iterkeys())
474
475 - def values( self ):
476 """Returns all named result values (as a list in Python 2.x, as an iterator in Python 3.x).""" 477 return list(self.itervalues())
478
479 - def items( self ):
480 """Returns all named result key-values (as a list of tuples in Python 2.x, as an iterator in Python 3.x).""" 481 return list(self.iteritems())
482
483 - def haskeys( self ):
484 """Since keys() returns an iterator, this method is helpful in bypassing 485 code that looks for the existence of any defined results names.""" 486 return bool(self.__tokdict)
487
488 - def pop( self, *args, **kwargs):
489 """ 490 Removes and returns item at specified index (default=C{last}). 491 Supports both C{list} and C{dict} semantics for C{pop()}. If passed no 492 argument or an integer argument, it will use C{list} semantics 493 and pop tokens from the list of parsed tokens. If passed a 494 non-integer argument (most likely a string), it will use C{dict} 495 semantics and pop the corresponding value from any defined 496 results names. A second default return value argument is 497 supported, just as in C{dict.pop()}. 498 499 Example:: 500 def remove_first(tokens): 501 tokens.pop(0) 502 print(OneOrMore(Word(nums)).parseString("0 123 321")) # -> ['0', '123', '321'] 503 print(OneOrMore(Word(nums)).addParseAction(remove_first).parseString("0 123 321")) # -> ['123', '321'] 504 505 label = Word(alphas) 506 patt = label("LABEL") + OneOrMore(Word(nums)) 507 print(patt.parseString("AAB 123 321").dump()) 508 509 # Use pop() in a parse action to remove named result (note that corresponding value is not 510 # removed from list form of results) 511 def remove_LABEL(tokens): 512 tokens.pop("LABEL") 513 return tokens 514 patt.addParseAction(remove_LABEL) 515 print(patt.parseString("AAB 123 321").dump()) 516 prints:: 517 ['AAB', '123', '321'] 518 - LABEL: AAB 519 520 ['AAB', '123', '321'] 521 """ 522 if not args: 523 args = [-1] 524 for k,v in kwargs.items(): 525 if k == 'default': 526 args = (args[0], v) 527 else: 528 raise TypeError("pop() got an unexpected keyword argument '%s'" % k) 529 if (isinstance(args[0], int) or 530 len(args) == 1 or 531 args[0] in self): 532 index = args[0] 533 ret = self[index] 534 del self[index] 535 return ret 536 else: 537 defaultvalue = args[1] 538 return defaultvalue
539
540 - def get(self, key, defaultValue=None):
541 """ 542 Returns named result matching the given key, or if there is no 543 such name, then returns the given C{defaultValue} or C{None} if no 544 C{defaultValue} is specified. 545 546 Similar to C{dict.get()}. 547 548 Example:: 549 integer = Word(nums) 550 date_str = integer("year") + '/' + integer("month") + '/' + integer("day") 551 552 result = date_str.parseString("1999/12/31") 553 print(result.get("year")) # -> '1999' 554 print(result.get("hour", "not specified")) # -> 'not specified' 555 print(result.get("hour")) # -> None 556 """ 557 if key in self: 558 return self[key] 559 else: 560 return defaultValue
561
562 - def insert( self, index, insStr ):
563 """ 564 Inserts new element at location index in the list of parsed tokens. 565 566 Similar to C{list.insert()}. 567 568 Example:: 569 print(OneOrMore(Word(nums)).parseString("0 123 321")) # -> ['0', '123', '321'] 570 571 # use a parse action to insert the parse location in the front of the parsed results 572 def insert_locn(locn, tokens): 573 tokens.insert(0, locn) 574 print(OneOrMore(Word(nums)).addParseAction(insert_locn).parseString("0 123 321")) # -> [0, '0', '123', '321'] 575 """ 576 self.__toklist.insert(index, insStr) 577 # fixup indices in token dictionary 578 for name,occurrences in self.__tokdict.items(): 579 for k, (value, position) in enumerate(occurrences): 580 occurrences[k] = _ParseResultsWithOffset(value, position + (position > index))
581
582 - def append( self, item ):
583 """ 584 Add single element to end of ParseResults list of elements. 585 586 Example:: 587 print(OneOrMore(Word(nums)).parseString("0 123 321")) # -> ['0', '123', '321'] 588 589 # use a parse action to compute the sum of the parsed integers, and add it to the end 590 def append_sum(tokens): 591 tokens.append(sum(map(int, tokens))) 592 print(OneOrMore(Word(nums)).addParseAction(append_sum).parseString("0 123 321")) # -> ['0', '123', '321', 444] 593 """ 594 self.__toklist.append(item)
595
596 - def extend( self, itemseq ):
597 """ 598 Add sequence of elements to end of ParseResults list of elements. 599 600 Example:: 601 patt = OneOrMore(Word(alphas)) 602 603 # use a parse action to append the reverse of the matched strings, to make a palindrome 604 def make_palindrome(tokens): 605 tokens.extend(reversed([t[::-1] for t in tokens])) 606 return ''.join(tokens) 607 print(patt.addParseAction(make_palindrome).parseString("lskdj sdlkjf lksd")) # -> 'lskdjsdlkjflksddsklfjkldsjdksl' 608 """ 609 if isinstance(itemseq, ParseResults): 610 self += itemseq 611 else: 612 self.__toklist.extend(itemseq)
613
614 - def clear( self ):
615 """ 616 Clear all elements and results names. 617 """ 618 del self.__toklist[:] 619 self.__tokdict.clear()
620
621 - def __getattr__( self, name ):
622 try: 623 return self[name] 624 except KeyError: 625 return "" 626 627 if name in self.__tokdict: 628 if name not in self.__accumNames: 629 return self.__tokdict[name][-1][0] 630 else: 631 return ParseResults([ v[0] for v in self.__tokdict[name] ]) 632 else: 633 return ""
634
635 - def __add__( self, other ):
636 ret = self.copy() 637 ret += other 638 return ret
639
640 - def __iadd__( self, other ):
641 if other.__tokdict: 642 offset = len(self.__toklist) 643 addoffset = lambda a: offset if a<0 else a+offset 644 otheritems = other.__tokdict.items() 645 otherdictitems = [(k, _ParseResultsWithOffset(v[0],addoffset(v[1])) ) 646 for (k,vlist) in otheritems for v in vlist] 647 for k,v in otherdictitems: 648 self[k] = v 649 if isinstance(v[0],ParseResults): 650 v[0].__parent = wkref(self) 651 652 self.__toklist += other.__toklist 653 self.__accumNames.update( other.__accumNames ) 654 return self
655
656 - def __radd__(self, other):
657 if isinstance(other,int) and other == 0: 658 # useful for merging many ParseResults using sum() builtin 659 return self.copy() 660 else: 661 # this may raise a TypeError - so be it 662 return other + self
663
664 - def __repr__( self ):
665 return "(%s, %s)" % ( repr( self.__toklist ), repr( self.__tokdict ) )
666
667 - def __str__( self ):
668 return '[' + ', '.join(_ustr(i) if isinstance(i, ParseResults) else repr(i) for i in self.__toklist) + ']'
669
670 - def _asStringList( self, sep='' ):
671 out = [] 672 for item in self.__toklist: 673 if out and sep: 674 out.append(sep) 675 if isinstance( item, ParseResults ): 676 out += item._asStringList() 677 else: 678 out.append( _ustr(item) ) 679 return out
680
681 - def asList( self ):
682 """ 683 Returns the parse results as a nested list of matching tokens, all converted to strings. 684 685 Example:: 686 patt = OneOrMore(Word(alphas)) 687 result = patt.parseString("sldkj lsdkj sldkj") 688 # even though the result prints in string-like form, it is actually a pyparsing ParseResults 689 print(type(result), result) # -> <class 'pyparsing.ParseResults'> ['sldkj', 'lsdkj', 'sldkj'] 690 691 # Use asList() to create an actual list 692 result_list = result.asList() 693 print(type(result_list), result_list) # -> <class 'list'> ['sldkj', 'lsdkj', 'sldkj'] 694 """ 695 return [res.asList() if isinstance(res,ParseResults) else res for res in self.__toklist]
696
697 - def asDict( self ):
698 """ 699 Returns the named parse results as a nested dictionary. 700 701 Example:: 702 integer = Word(nums) 703 date_str = integer("year") + '/' + integer("month") + '/' + integer("day") 704 705 result = date_str.parseString('12/31/1999') 706 print(type(result), repr(result)) # -> <class 'pyparsing.ParseResults'> (['12', '/', '31', '/', '1999'], {'day': [('1999', 4)], 'year': [('12', 0)], 'month': [('31', 2)]}) 707 708 result_dict = result.asDict() 709 print(type(result_dict), repr(result_dict)) # -> <class 'dict'> {'day': '1999', 'year': '12', 'month': '31'} 710 711 # even though a ParseResults supports dict-like access, sometime you just need to have a dict 712 import json 713 print(json.dumps(result)) # -> Exception: TypeError: ... is not JSON serializable 714 print(json.dumps(result.asDict())) # -> {"month": "31", "day": "1999", "year": "12"} 715 """ 716 if PY_3: 717 item_fn = self.items 718 else: 719 item_fn = self.iteritems 720 721 def toItem(obj): 722 if isinstance(obj, ParseResults): 723 if obj.haskeys(): 724 return obj.asDict() 725 else: 726 return [toItem(v) for v in obj] 727 else: 728 return obj
729 730 return dict((k,toItem(v)) for k,v in item_fn())
731
732 - def copy( self ):
733 """ 734 Returns a new copy of a C{ParseResults} object. 735 """ 736 ret = ParseResults( self.__toklist ) 737 ret.__tokdict = self.__tokdict.copy() 738 ret.__parent = self.__parent 739 ret.__accumNames.update( self.__accumNames ) 740 ret.__name = self.__name 741 return ret
742
743 - def asXML( self, doctag=None, namedItemsOnly=False, indent="", formatted=True ):
744 """ 745 (Deprecated) Returns the parse results as XML. Tags are created for tokens and lists that have defined results names. 746 """ 747 nl = "\n" 748 out = [] 749 namedItems = dict((v[1],k) for (k,vlist) in self.__tokdict.items() 750 for v in vlist) 751 nextLevelIndent = indent + " " 752 753 # collapse out indents if formatting is not desired 754 if not formatted: 755 indent = "" 756 nextLevelIndent = "" 757 nl = "" 758 759 selfTag = None 760 if doctag is not None: 761 selfTag = doctag 762 else: 763 if self.__name: 764 selfTag = self.__name 765 766 if not selfTag: 767 if namedItemsOnly: 768 return "" 769 else: 770 selfTag = "ITEM" 771 772 out += [ nl, indent, "<", selfTag, ">" ] 773 774 for i,res in enumerate(self.__toklist): 775 if isinstance(res,ParseResults): 776 if i in namedItems: 777 out += [ res.asXML(namedItems[i], 778 namedItemsOnly and doctag is None, 779 nextLevelIndent, 780 formatted)] 781 else: 782 out += [ res.asXML(None, 783 namedItemsOnly and doctag is None, 784 nextLevelIndent, 785 formatted)] 786 else: 787 # individual token, see if there is a name for it 788 resTag = None 789 if i in namedItems: 790 resTag = namedItems[i] 791 if not resTag: 792 if namedItemsOnly: 793 continue 794 else: 795 resTag = "ITEM" 796 xmlBodyText = _xml_escape(_ustr(res)) 797 out += [ nl, nextLevelIndent, "<", resTag, ">", 798 xmlBodyText, 799 "</", resTag, ">" ] 800 801 out += [ nl, indent, "</", selfTag, ">" ] 802 return "".join(out)
803
804 - def __lookup(self,sub):
805 for k,vlist in self.__tokdict.items(): 806 for v,loc in vlist: 807 if sub is v: 808 return k 809 return None
810
811 - def getName(self):
812 r""" 813 Returns the results name for this token expression. Useful when several 814 different expressions might match at a particular location. 815 816 Example:: 817 integer = Word(nums) 818 ssn_expr = Regex(r"\d\d\d-\d\d-\d\d\d\d") 819 house_number_expr = Suppress('#') + Word(nums, alphanums) 820 user_data = (Group(house_number_expr)("house_number") 821 | Group(ssn_expr)("ssn") 822 | Group(integer)("age")) 823 user_info = OneOrMore(user_data) 824 825 result = user_info.parseString("22 111-22-3333 #221B") 826 for item in result: 827 print(item.getName(), ':', item[0]) 828 prints:: 829 age : 22 830 ssn : 111-22-3333 831 house_number : 221B 832 """ 833 if self.__name: 834 return self.__name 835 elif self.__parent: 836 par = self.__parent() 837 if par: 838 return par.__lookup(self) 839 else: 840 return None 841 elif (len(self) == 1 and 842 len(self.__tokdict) == 1 and 843 next(iter(self.__tokdict.values()))[0][1] in (0,-1)): 844 return next(iter(self.__tokdict.keys())) 845 else: 846 return None
847
848 - def dump(self, indent='', depth=0, full=True):
849 """ 850 Diagnostic method for listing out the contents of a C{ParseResults}. 851 Accepts an optional C{indent} argument so that this string can be embedded 852 in a nested display of other data. 853 854 Example:: 855 integer = Word(nums) 856 date_str = integer("year") + '/' + integer("month") + '/' + integer("day") 857 858 result = date_str.parseString('12/31/1999') 859 print(result.dump()) 860 prints:: 861 ['12', '/', '31', '/', '1999'] 862 - day: 1999 863 - month: 31 864 - year: 12 865 """ 866 out = [] 867 NL = '\n' 868 out.append( indent+_ustr(self.asList()) ) 869 if full: 870 if self.haskeys(): 871 items = sorted((str(k), v) for k,v in self.items()) 872 for k,v in items: 873 if out: 874 out.append(NL) 875 out.append( "%s%s- %s: " % (indent,(' '*depth), k) ) 876 if isinstance(v,ParseResults): 877 if v: 878 out.append( v.dump(indent,depth+1) ) 879 else: 880 out.append(_ustr(v)) 881 else: 882 out.append(repr(v)) 883 elif any(isinstance(vv,ParseResults) for vv in self): 884 v = self 885 for i,vv in enumerate(v): 886 if isinstance(vv,ParseResults): 887 out.append("\n%s%s[%d]:\n%s%s%s" % (indent,(' '*(depth)),i,indent,(' '*(depth+1)),vv.dump(indent,depth+1) )) 888 else: 889 out.append("\n%s%s[%d]:\n%s%s%s" % (indent,(' '*(depth)),i,indent,(' '*(depth+1)),_ustr(vv))) 890 891 return "".join(out)
892
893 - def pprint(self, *args, **kwargs):
894 """ 895 Pretty-printer for parsed results as a list, using the C{pprint} module. 896 Accepts additional positional or keyword args as defined for the 897 C{pprint.pprint} method. (U{http://docs.python.org/3/library/pprint.html#pprint.pprint}) 898 899 Example:: 900 ident = Word(alphas, alphanums) 901 num = Word(nums) 902 func = Forward() 903 term = ident | num | Group('(' + func + ')') 904 func <<= ident + Group(Optional(delimitedList(term))) 905 result = func.parseString("fna a,b,(fnb c,d,200),100") 906 result.pprint(width=40) 907 prints:: 908 ['fna', 909 ['a', 910 'b', 911 ['(', 'fnb', ['c', 'd', '200'], ')'], 912 '100']] 913 """ 914 pprint.pprint(self.asList(), *args, **kwargs)
915 916 # add support for pickle protocol
917 - def __getstate__(self):
918 return ( self.__toklist, 919 ( self.__tokdict.copy(), 920 self.__parent is not None and self.__parent() or None, 921 self.__accumNames, 922 self.__name ) )
923
924 - def __setstate__(self,state):
925 self.__toklist = state[0] 926 (self.__tokdict, 927 par, 928 inAccumNames, 929 self.__name) = state[1] 930 self.__accumNames = {} 931 self.__accumNames.update(inAccumNames) 932 if par is not None: 933 self.__parent = wkref(par) 934 else: 935 self.__parent = None
936
937 - def __getnewargs__(self):
938 return self.__toklist, self.__name, self.__asList, self.__modal
939
940 - def __dir__(self):
941 return (dir(type(self)) + list(self.keys()))
942 943 collections.MutableMapping.register(ParseResults)
944 945 -def col (loc,strg):
946 """Returns current column within a string, counting newlines as line separators. 947 The first column is number 1. 948 949 Note: the default parsing behavior is to expand tabs in the input string 950 before starting the parsing process. See L{I{ParserElement.parseString}<ParserElement.parseString>} for more information 951 on parsing strings containing C{<TAB>}s, and suggested methods to maintain a 952 consistent view of the parsed string, the parse location, and line and column 953 positions within the parsed string. 954 """ 955 s = strg 956 return 1 if 0<loc<len(s) and s[loc-1] == '\n' else loc - s.rfind("\n", 0, loc)
957
958 -def lineno(loc,strg):
959 """Returns current line number within a string, counting newlines as line separators. 960 The first line is number 1. 961 962 Note: the default parsing behavior is to expand tabs in the input string 963 before starting the parsing process. See L{I{ParserElement.parseString}<ParserElement.parseString>} for more information 964 on parsing strings containing C{<TAB>}s, and suggested methods to maintain a 965 consistent view of the parsed string, the parse location, and line and column 966 positions within the parsed string. 967 """ 968 return strg.count("\n",0,loc) + 1
969
970 -def line( loc, strg ):
971 """Returns the line of text containing loc within a string, counting newlines as line separators. 972 """ 973 lastCR = strg.rfind("\n", 0, loc) 974 nextCR = strg.find("\n", loc) 975 if nextCR >= 0: 976 return strg[lastCR+1:nextCR] 977 else: 978 return strg[lastCR+1:]
979
980 -def _defaultStartDebugAction( instring, loc, expr ):
981 print (("Match " + _ustr(expr) + " at loc " + _ustr(loc) + "(%d,%d)" % ( lineno(loc,instring), col(loc,instring) )))
982
983 -def _defaultSuccessDebugAction( instring, startloc, endloc, expr, toks ):
984 print ("Matched " + _ustr(expr) + " -> " + str(toks.asList()))
985
986 -def _defaultExceptionDebugAction( instring, loc, expr, exc ):
987 print ("Exception raised:" + _ustr(exc))
988
989 -def nullDebugAction(*args):
990 """'Do-nothing' debug action, to suppress debugging output during parsing.""" 991 pass
992 993 # Only works on Python 3.x - nonlocal is toxic to Python 2 installs 994 #~ 'decorator to trim function calls to match the arity of the target' 995 #~ def _trim_arity(func, maxargs=3): 996 #~ if func in singleArgBuiltins: 997 #~ return lambda s,l,t: func(t) 998 #~ limit = 0 999 #~ foundArity = False 1000 #~ def wrapper(*args): 1001 #~ nonlocal limit,foundArity 1002 #~ while 1: 1003 #~ try: 1004 #~ ret = func(*args[limit:]) 1005 #~ foundArity = True 1006 #~ return ret 1007 #~ except TypeError: 1008 #~ if limit == maxargs or foundArity: 1009 #~ raise 1010 #~ limit += 1 1011 #~ continue 1012 #~ return wrapper 1013 1014 # this version is Python 2.x-3.x cross-compatible 1015 'decorator to trim function calls to match the arity of the target'
1016 -def _trim_arity(func, maxargs=2):
1017 if func in singleArgBuiltins: 1018 return lambda s,l,t: func(t) 1019 limit = [0] 1020 foundArity = [False] 1021 1022 # traceback return data structure changed in Py3.5 - normalize back to plain tuples 1023 if system_version[:2] >= (3,5): 1024 def extract_stack(limit=0): 1025 # special handling for Python 3.5.0 - extra deep call stack by 1 1026 offset = -3 if system_version == (3,5,0) else -2 1027 frame_summary = traceback.extract_stack(limit=-offset+limit-1)[offset] 1028 return [(frame_summary.filename, frame_summary.lineno)]
1029 def extract_tb(tb, limit=0): 1030 frames = traceback.extract_tb(tb, limit=limit) 1031 frame_summary = frames[-1] 1032 return [(frame_summary.filename, frame_summary.lineno)] 1033 else: 1034 extract_stack = traceback.extract_stack 1035 extract_tb = traceback.extract_tb 1036 1037 # synthesize what would be returned by traceback.extract_stack at the call to 1038 # user's parse action 'func', so that we don't incur call penalty at parse time 1039 1040 LINE_DIFF = 6 1041 # IF ANY CODE CHANGES, EVEN JUST COMMENTS OR BLANK LINES, BETWEEN THE NEXT LINE AND 1042 # THE CALL TO FUNC INSIDE WRAPPER, LINE_DIFF MUST BE MODIFIED!!!! 1043 this_line = extract_stack(limit=2)[-1] 1044 pa_call_line_synth = (this_line[0], this_line[1]+LINE_DIFF) 1045 1046 def wrapper(*args): 1047 while 1: 1048 try: 1049 ret = func(*args[limit[0]:]) 1050 foundArity[0] = True 1051 return ret 1052 except TypeError: 1053 # re-raise TypeErrors if they did not come from our arity testing 1054 if foundArity[0]: 1055 raise 1056 else: 1057 try: 1058 tb = sys.exc_info()[-1] 1059 if not extract_tb(tb, limit=2)[-1][:2] == pa_call_line_synth: 1060 raise 1061 finally: 1062 del tb 1063 1064 if limit[0] <= maxargs: 1065 limit[0] += 1 1066 continue 1067 raise 1068 1069 # copy func name to wrapper for sensible debug output 1070 func_name = "<parse action>" 1071 try: 1072 func_name = getattr(func, '__name__', 1073 getattr(func, '__class__').__name__) 1074 except Exception: 1075 func_name = str(func) 1076 wrapper.__name__ = func_name 1077 1078 return wrapper 1079
1080 -class ParserElement(object):
1081 """Abstract base level parser element class.""" 1082 DEFAULT_WHITE_CHARS = " \n\t\r" 1083 verbose_stacktrace = False 1084 1085 @staticmethod
1086 - def setDefaultWhitespaceChars( chars ):
1087 r""" 1088 Overrides the default whitespace chars 1089 1090 Example:: 1091 # default whitespace chars are space, <TAB> and newline 1092 OneOrMore(Word(alphas)).parseString("abc def\nghi jkl") # -> ['abc', 'def', 'ghi', 'jkl'] 1093 1094 # change to just treat newline as significant 1095 ParserElement.setDefaultWhitespaceChars(" \t") 1096 OneOrMore(Word(alphas)).parseString("abc def\nghi jkl") # -> ['abc', 'def'] 1097 """ 1098 ParserElement.DEFAULT_WHITE_CHARS = chars
1099 1100 @staticmethod
1101 - def inlineLiteralsUsing(cls):
1102 """ 1103 Set class to be used for inclusion of string literals into a parser. 1104 1105 Example:: 1106 # default literal class used is Literal 1107 integer = Word(nums) 1108 date_str = integer("year") + '/' + integer("month") + '/' + integer("day") 1109 1110 date_str.parseString("1999/12/31") # -> ['1999', '/', '12', '/', '31'] 1111 1112 1113 # change to Suppress 1114 ParserElement.inlineLiteralsUsing(Suppress) 1115 date_str = integer("year") + '/' + integer("month") + '/' + integer("day") 1116 1117 date_str.parseString("1999/12/31") # -> ['1999', '12', '31'] 1118 """ 1119 ParserElement._literalStringClass = cls
1120
1121 - def __init__( self, savelist=False ):
1122 self.parseAction = list() 1123 self.failAction = None 1124 #~ self.name = "<unknown>" # don't define self.name, let subclasses try/except upcall 1125 self.strRepr = None 1126 self.resultsName = None 1127 self.saveAsList = savelist 1128 self.skipWhitespace = True 1129 self.whiteChars = ParserElement.DEFAULT_WHITE_CHARS 1130 self.copyDefaultWhiteChars = True 1131 self.mayReturnEmpty = False # used when checking for left-recursion 1132 self.keepTabs = False 1133 self.ignoreExprs = list() 1134 self.debug = False 1135 self.streamlined = False 1136 self.mayIndexError = True # used to optimize exception handling for subclasses that don't advance parse index 1137 self.errmsg = "" 1138 self.modalResults = True # used to mark results names as modal (report only last) or cumulative (list all) 1139 self.debugActions = ( None, None, None ) #custom debug actions 1140 self.re = None 1141 self.callPreparse = True # used to avoid redundant calls to preParse 1142 self.callDuringTry = False
1143
1144 - def copy( self ):
1145 """ 1146 Make a copy of this C{ParserElement}. Useful for defining different parse actions 1147 for the same parsing pattern, using copies of the original parse element. 1148 1149 Example:: 1150 integer = Word(nums).setParseAction(lambda toks: int(toks[0])) 1151 integerK = integer.copy().addParseAction(lambda toks: toks[0]*1024) + Suppress("K") 1152 integerM = integer.copy().addParseAction(lambda toks: toks[0]*1024*1024) + Suppress("M") 1153 1154 print(OneOrMore(integerK | integerM | integer).parseString("5K 100 640K 256M")) 1155 prints:: 1156 [5120, 100, 655360, 268435456] 1157 Equivalent form of C{expr.copy()} is just C{expr()}:: 1158 integerM = integer().addParseAction(lambda toks: toks[0]*1024*1024) + Suppress("M") 1159 """ 1160 cpy = copy.copy( self ) 1161 cpy.parseAction = self.parseAction[:] 1162 cpy.ignoreExprs = self.ignoreExprs[:] 1163 if self.copyDefaultWhiteChars: 1164 cpy.whiteChars = ParserElement.DEFAULT_WHITE_CHARS 1165 return cpy
1166
1167 - def setName( self, name ):
1168 """ 1169 Define name for this expression, makes debugging and exception messages clearer. 1170 1171 Example:: 1172 Word(nums).parseString("ABC") # -> Exception: Expected W:(0123...) (at char 0), (line:1, col:1) 1173 Word(nums).setName("integer").parseString("ABC") # -> Exception: Expected integer (at char 0), (line:1, col:1) 1174 """ 1175 self.name = name 1176 self.errmsg = "Expected " + self.name 1177 if hasattr(self,"exception"): 1178 self.exception.msg = self.errmsg 1179 return self
1180
1181 - def setResultsName( self, name, listAllMatches=False ):
1182 """ 1183 Define name for referencing matching tokens as a nested attribute 1184 of the returned parse results. 1185 NOTE: this returns a *copy* of the original C{ParserElement} object; 1186 this is so that the client can define a basic element, such as an 1187 integer, and reference it in multiple places with different names. 1188 1189 You can also set results names using the abbreviated syntax, 1190 C{expr("name")} in place of C{expr.setResultsName("name")} - 1191 see L{I{__call__}<__call__>}. 1192 1193 Example:: 1194 date_str = (integer.setResultsName("year") + '/' 1195 + integer.setResultsName("month") + '/' 1196 + integer.setResultsName("day")) 1197 1198 # equivalent form: 1199 date_str = integer("year") + '/' + integer("month") + '/' + integer("day") 1200 """ 1201 newself = self.copy() 1202 if name.endswith("*"): 1203 name = name[:-1] 1204 listAllMatches=True 1205 newself.resultsName = name 1206 newself.modalResults = not listAllMatches 1207 return newself
1208
1209 - def setBreak(self,breakFlag = True):
1210 """Method to invoke the Python pdb debugger when this element is 1211 about to be parsed. Set C{breakFlag} to True to enable, False to 1212 disable. 1213 """ 1214 if breakFlag: 1215 _parseMethod = self._parse 1216 def breaker(instring, loc, doActions=True, callPreParse=True): 1217 import pdb 1218 pdb.set_trace() 1219 return _parseMethod( instring, loc, doActions, callPreParse )
1220 breaker._originalParseMethod = _parseMethod 1221 self._parse = breaker 1222 else: 1223 if hasattr(self._parse,"_originalParseMethod"): 1224 self._parse = self._parse._originalParseMethod 1225 return self
1226
1227 - def setParseAction( self, *fns, **kwargs ):
1228 """ 1229 Define one or more actions to perform when successfully matching parse element definition. 1230 Parse action fn is a callable method with 0-3 arguments, called as C{fn(s,loc,toks)}, 1231 C{fn(loc,toks)}, C{fn(toks)}, or just C{fn()}, where: 1232 - s = the original string being parsed (see note below) 1233 - loc = the location of the matching substring 1234 - toks = a list of the matched tokens, packaged as a C{L{ParseResults}} object 1235 If the functions in fns modify the tokens, they can return them as the return 1236 value from fn, and the modified list of tokens will replace the original. 1237 Otherwise, fn does not need to return any value. 1238 1239 Optional keyword arguments: 1240 - callDuringTry = (default=C{False}) indicate if parse action should be run during lookaheads and alternate testing 1241 1242 Note: the default parsing behavior is to expand tabs in the input string 1243 before starting the parsing process. See L{I{parseString}<parseString>} for more information 1244 on parsing strings containing C{<TAB>}s, and suggested methods to maintain a 1245 consistent view of the parsed string, the parse location, and line and column 1246 positions within the parsed string. 1247 1248 Example:: 1249 integer = Word(nums) 1250 date_str = integer + '/' + integer + '/' + integer 1251 1252 date_str.parseString("1999/12/31") # -> ['1999', '/', '12', '/', '31'] 1253 1254 # use parse action to convert to ints at parse time 1255 integer = Word(nums).setParseAction(lambda toks: int(toks[0])) 1256 date_str = integer + '/' + integer + '/' + integer 1257 1258 # note that integer fields are now ints, not strings 1259 date_str.parseString("1999/12/31") # -> [1999, '/', 12, '/', 31] 1260 """ 1261 self.parseAction = list(map(_trim_arity, list(fns))) 1262 self.callDuringTry = kwargs.get("callDuringTry", False) 1263 return self
1264
1265 - def addParseAction( self, *fns, **kwargs ):
1266 """ 1267 Add one or more parse actions to expression's list of parse actions. See L{I{setParseAction}<setParseAction>}. 1268 1269 See examples in L{I{copy}<copy>}. 1270 """ 1271 self.parseAction += list(map(_trim_arity, list(fns))) 1272 self.callDuringTry = self.callDuringTry or kwargs.get("callDuringTry", False) 1273 return self
1274
1275 - def addCondition(self, *fns, **kwargs):
1276 """Add a boolean predicate function to expression's list of parse actions. See 1277 L{I{setParseAction}<setParseAction>} for function call signatures. Unlike C{setParseAction}, 1278 functions passed to C{addCondition} need to return boolean success/fail of the condition. 1279 1280 Optional keyword arguments: 1281 - message = define a custom message to be used in the raised exception 1282 - fatal = if True, will raise ParseFatalException to stop parsing immediately; otherwise will raise ParseException 1283 1284 Example:: 1285 integer = Word(nums).setParseAction(lambda toks: int(toks[0])) 1286 year_int = integer.copy() 1287 year_int.addCondition(lambda toks: toks[0] >= 2000, message="Only support years 2000 and later") 1288 date_str = year_int + '/' + integer + '/' + integer 1289 1290 result = date_str.parseString("1999/12/31") # -> Exception: Only support years 2000 and later (at char 0), (line:1, col:1) 1291 """ 1292 msg = kwargs.get("message", "failed user-defined condition") 1293 exc_type = ParseFatalException if kwargs.get("fatal", False) else ParseException 1294 for fn in fns: 1295 def pa(s,l,t): 1296 if not bool(_trim_arity(fn)(s,l,t)): 1297 raise exc_type(s,l,msg)
1298 self.parseAction.append(pa) 1299 self.callDuringTry = self.callDuringTry or kwargs.get("callDuringTry", False) 1300 return self 1301
1302 - def setFailAction( self, fn ):
1303 """Define action to perform if parsing fails at this expression. 1304 Fail acton fn is a callable function that takes the arguments 1305 C{fn(s,loc,expr,err)} where: 1306 - s = string being parsed 1307 - loc = location where expression match was attempted and failed 1308 - expr = the parse expression that failed 1309 - err = the exception thrown 1310 The function returns no value. It may throw C{L{ParseFatalException}} 1311 if it is desired to stop parsing immediately.""" 1312 self.failAction = fn 1313 return self
1314
1315 - def _skipIgnorables( self, instring, loc ):
1316 exprsFound = True 1317 while exprsFound: 1318 exprsFound = False 1319 for e in self.ignoreExprs: 1320 try: 1321 while 1: 1322 loc,dummy = e._parse( instring, loc ) 1323 exprsFound = True 1324 except ParseException: 1325 pass 1326 return loc
1327
1328 - def preParse( self, instring, loc ):
1329 if self.ignoreExprs: 1330 loc = self._skipIgnorables( instring, loc ) 1331 1332 if self.skipWhitespace: 1333 wt = self.whiteChars 1334 instrlen = len(instring) 1335 while loc < instrlen and instring[loc] in wt: 1336 loc += 1 1337 1338 return loc
1339
1340 - def parseImpl( self, instring, loc, doActions=True ):
1341 return loc, []
1342
1343 - def postParse( self, instring, loc, tokenlist ):
1344 return tokenlist
1345 1346 #~ @profile
1347 - def _parseNoCache( self, instring, loc, doActions=True, callPreParse=True ):
1348 debugging = ( self.debug ) #and doActions ) 1349 1350 if debugging or self.failAction: 1351 #~ print ("Match",self,"at loc",loc,"(%d,%d)" % ( lineno(loc,instring), col(loc,instring) )) 1352 if (self.debugActions[0] ): 1353 self.debugActions[0]( instring, loc, self ) 1354 if callPreParse and self.callPreparse: 1355 preloc = self.preParse( instring, loc ) 1356 else: 1357 preloc = loc 1358 tokensStart = preloc 1359 try: 1360 try: 1361 loc,tokens = self.parseImpl( instring, preloc, doActions ) 1362 except IndexError: 1363 raise ParseException( instring, len(instring), self.errmsg, self ) 1364 except ParseBaseException as err: 1365 #~ print ("Exception raised:", err) 1366 if self.debugActions[2]: 1367 self.debugActions[2]( instring, tokensStart, self, err ) 1368 if self.failAction: 1369 self.failAction( instring, tokensStart, self, err ) 1370 raise 1371 else: 1372 if callPreParse and self.callPreparse: 1373 preloc = self.preParse( instring, loc ) 1374 else: 1375 preloc = loc 1376 tokensStart = preloc 1377 if self.mayIndexError or loc >= len(instring): 1378 try: 1379 loc,tokens = self.parseImpl( instring, preloc, doActions ) 1380 except IndexError: 1381 raise ParseException( instring, len(instring), self.errmsg, self ) 1382 else: 1383 loc,tokens = self.parseImpl( instring, preloc, doActions ) 1384 1385 tokens = self.postParse( instring, loc, tokens ) 1386 1387 retTokens = ParseResults( tokens, self.resultsName, asList=self.saveAsList, modal=self.modalResults ) 1388 if self.parseAction and (doActions or self.callDuringTry): 1389 if debugging: 1390 try: 1391 for fn in self.parseAction: 1392 tokens = fn( instring, tokensStart, retTokens ) 1393 if tokens is not None: 1394 retTokens = ParseResults( tokens, 1395 self.resultsName, 1396 asList=self.saveAsList and isinstance(tokens,(ParseResults,list)), 1397 modal=self.modalResults ) 1398 except ParseBaseException as err: 1399 #~ print "Exception raised in user parse action:", err 1400 if (self.debugActions[2] ): 1401 self.debugActions[2]( instring, tokensStart, self, err ) 1402 raise 1403 else: 1404 for fn in self.parseAction: 1405 tokens = fn( instring, tokensStart, retTokens ) 1406 if tokens is not None: 1407 retTokens = ParseResults( tokens, 1408 self.resultsName, 1409 asList=self.saveAsList and isinstance(tokens,(ParseResults,list)), 1410 modal=self.modalResults ) 1411 1412 if debugging: 1413 #~ print ("Matched",self,"->",retTokens.asList()) 1414 if (self.debugActions[1] ): 1415 self.debugActions[1]( instring, tokensStart, loc, self, retTokens ) 1416 1417 return loc, retTokens
1418
1419 - def tryParse( self, instring, loc ):
1420 try: 1421 return self._parse( instring, loc, doActions=False )[0] 1422 except ParseFatalException: 1423 raise ParseException( instring, loc, self.errmsg, self)
1424
1425 - def canParseNext(self, instring, loc):
1426 try: 1427 self.tryParse(instring, loc) 1428 except (ParseException, IndexError): 1429 return False 1430 else: 1431 return True
1432
1433 - class _UnboundedCache(object):
1434 - def __init__(self):
1435 cache = {} 1436 self.not_in_cache = not_in_cache = object() 1437 1438 def get(self, key): 1439 return cache.get(key, not_in_cache)
1440 1441 def set(self, key, value): 1442 cache[key] = value
1443 1444 def clear(self): 1445 cache.clear() 1446 1447 def cache_len(self): 1448 return len(cache) 1449 1450 self.get = types.MethodType(get, self) 1451 self.set = types.MethodType(set, self) 1452 self.clear = types.MethodType(clear, self) 1453 self.__len__ = types.MethodType(cache_len, self) 1454 1455 if _OrderedDict is not None:
1456 - class _FifoCache(object):
1457 - def __init__(self, size):
1458 self.not_in_cache = not_in_cache = object() 1459 1460 cache = _OrderedDict() 1461 1462 def get(self, key): 1463 return cache.get(key, not_in_cache)
1464 1465 def set(self, key, value): 1466 cache[key] = value 1467 while len(cache) > size: 1468 try: 1469 cache.popitem(False) 1470 except KeyError: 1471 pass
1472 1473 def clear(self): 1474 cache.clear() 1475 1476 def cache_len(self): 1477 return len(cache) 1478 1479 self.get = types.MethodType(get, self) 1480 self.set = types.MethodType(set, self) 1481 self.clear = types.MethodType(clear, self) 1482 self.__len__ = types.MethodType(cache_len, self) 1483 1484 else:
1485 - class _FifoCache(object):
1486 - def __init__(self, size):
1487 self.not_in_cache = not_in_cache = object() 1488 1489 cache = {} 1490 key_fifo = collections.deque([], size) 1491 1492 def get(self, key): 1493 return cache.get(key, not_in_cache)
1494 1495 def set(self, key, value): 1496 cache[key] = value 1497 while len(key_fifo) > size: 1498 cache.pop(key_fifo.popleft(), None) 1499 key_fifo.append(key)
1500 1501 def clear(self): 1502 cache.clear() 1503 key_fifo.clear() 1504 1505 def cache_len(self): 1506 return len(cache) 1507 1508 self.get = types.MethodType(get, self) 1509 self.set = types.MethodType(set, self) 1510 self.clear = types.MethodType(clear, self) 1511 self.__len__ = types.MethodType(cache_len, self) 1512 1513 # argument cache for optimizing repeated calls when backtracking through recursive expressions 1514 packrat_cache = {} # this is set later by enabledPackrat(); this is here so that resetCache() doesn't fail 1515 packrat_cache_lock = RLock() 1516 packrat_cache_stats = [0, 0] 1517 1518 # this method gets repeatedly called during backtracking with the same arguments - 1519 # we can cache these arguments and save ourselves the trouble of re-parsing the contained expression
1520 - def _parseCache( self, instring, loc, doActions=True, callPreParse=True ):
1521 HIT, MISS = 0, 1 1522 lookup = (self, instring, loc, callPreParse, doActions) 1523 with ParserElement.packrat_cache_lock: 1524 cache = ParserElement.packrat_cache 1525 value = cache.get(lookup) 1526 if value is cache.not_in_cache: 1527 ParserElement.packrat_cache_stats[MISS] += 1 1528 try: 1529 value = self._parseNoCache(instring, loc, doActions, callPreParse) 1530 except ParseBaseException as pe: 1531 # cache a copy of the exception, without the traceback 1532 cache.set(lookup, pe.__class__(*pe.args)) 1533 raise 1534 else: 1535 cache.set(lookup, (value[0], value[1].copy())) 1536 return value 1537 else: 1538 ParserElement.packrat_cache_stats[HIT] += 1 1539 if isinstance(value, Exception): 1540 raise value 1541 return (value[0], value[1].copy())
1542 1543 _parse = _parseNoCache 1544 1545 @staticmethod
1546 - def resetCache():
1549 1550 _packratEnabled = False 1551 @staticmethod
1552 - def enablePackrat(cache_size_limit=128):
1553 """Enables "packrat" parsing, which adds memoizing to the parsing logic. 1554 Repeated parse attempts at the same string location (which happens 1555 often in many complex grammars) can immediately return a cached value, 1556 instead of re-executing parsing/validating code. Memoizing is done of 1557 both valid results and parsing exceptions. 1558 1559 Parameters: 1560 - cache_size_limit - (default=C{128}) - if an integer value is provided 1561 will limit the size of the packrat cache; if None is passed, then 1562 the cache size will be unbounded; if 0 is passed, the cache will 1563 be effectively disabled. 1564 1565 This speedup may break existing programs that use parse actions that 1566 have side-effects. For this reason, packrat parsing is disabled when 1567 you first import pyparsing. To activate the packrat feature, your 1568 program must call the class method C{ParserElement.enablePackrat()}. If 1569 your program uses C{psyco} to "compile as you go", you must call 1570 C{enablePackrat} before calling C{psyco.full()}. If you do not do this, 1571 Python will crash. For best results, call C{enablePackrat()} immediately 1572 after importing pyparsing. 1573 1574 Example:: 1575 import pyparsing 1576 pyparsing.ParserElement.enablePackrat() 1577 """ 1578 if not ParserElement._packratEnabled: 1579 ParserElement._packratEnabled = True 1580 if cache_size_limit is None: 1581 ParserElement.packrat_cache = ParserElement._UnboundedCache() 1582 else: 1583 ParserElement.packrat_cache = ParserElement._FifoCache(cache_size_limit) 1584 ParserElement._parse = ParserElement._parseCache
1585
1586 - def parseString( self, instring, parseAll=False ):
1587 """ 1588 Execute the parse expression with the given string. 1589 This is the main interface to the client code, once the complete 1590 expression has been built. 1591 1592 If you want the grammar to require that the entire input string be 1593 successfully parsed, then set C{parseAll} to True (equivalent to ending 1594 the grammar with C{L{StringEnd()}}). 1595 1596 Note: C{parseString} implicitly calls C{expandtabs()} on the input string, 1597 in order to report proper column numbers in parse actions. 1598 If the input string contains tabs and 1599 the grammar uses parse actions that use the C{loc} argument to index into the 1600 string being parsed, you can ensure you have a consistent view of the input 1601 string by: 1602 - calling C{parseWithTabs} on your grammar before calling C{parseString} 1603 (see L{I{parseWithTabs}<parseWithTabs>}) 1604 - define your parse action using the full C{(s,loc,toks)} signature, and 1605 reference the input string using the parse action's C{s} argument 1606 - explictly expand the tabs in your input string before calling 1607 C{parseString} 1608 1609 Example:: 1610 Word('a').parseString('aaaaabaaa') # -> ['aaaaa'] 1611 Word('a').parseString('aaaaabaaa', parseAll=True) # -> Exception: Expected end of text 1612 """ 1613 ParserElement.resetCache() 1614 if not self.streamlined: 1615 self.streamline() 1616 #~ self.saveAsList = True 1617 for e in self.ignoreExprs: 1618 e.streamline() 1619 if not self.keepTabs: 1620 instring = instring.expandtabs() 1621 try: 1622 loc, tokens = self._parse( instring, 0 ) 1623 if parseAll: 1624 loc = self.preParse( instring, loc ) 1625 se = Empty() + StringEnd() 1626 se._parse( instring, loc ) 1627 except ParseBaseException as exc: 1628 if ParserElement.verbose_stacktrace: 1629 raise 1630 else: 1631 # catch and re-raise exception from here, clears out pyparsing internal stack trace 1632 raise exc 1633 else: 1634 return tokens
1635
1636 - def scanString( self, instring, maxMatches=_MAX_INT, overlap=False ):
1637 """ 1638 Scan the input string for expression matches. Each match will return the 1639 matching tokens, start location, and end location. May be called with optional 1640 C{maxMatches} argument, to clip scanning after 'n' matches are found. If 1641 C{overlap} is specified, then overlapping matches will be reported. 1642 1643 Note that the start and end locations are reported relative to the string 1644 being parsed. See L{I{parseString}<parseString>} for more information on parsing 1645 strings with embedded tabs. 1646 1647 Example:: 1648 source = "sldjf123lsdjjkf345sldkjf879lkjsfd987" 1649 print(source) 1650 for tokens,start,end in Word(alphas).scanString(source): 1651 print(' '*start + '^'*(end-start)) 1652 print(' '*start + tokens[0]) 1653 1654 prints:: 1655 1656 sldjf123lsdjjkf345sldkjf879lkjsfd987 1657 ^^^^^ 1658 sldjf 1659 ^^^^^^^ 1660 lsdjjkf 1661 ^^^^^^ 1662 sldkjf 1663 ^^^^^^ 1664 lkjsfd 1665 """ 1666 if not self.streamlined: 1667 self.streamline() 1668 for e in self.ignoreExprs: 1669 e.streamline() 1670 1671 if not self.keepTabs: 1672 instring = _ustr(instring).expandtabs() 1673 instrlen = len(instring) 1674 loc = 0 1675 preparseFn = self.preParse 1676 parseFn = self._parse 1677 ParserElement.resetCache() 1678 matches = 0 1679 try: 1680 while loc <= instrlen and matches < maxMatches: 1681 try: 1682 preloc = preparseFn( instring, loc ) 1683 nextLoc,tokens = parseFn( instring, preloc, callPreParse=False ) 1684 except ParseException: 1685 loc = preloc+1 1686 else: 1687 if nextLoc > loc: 1688 matches += 1 1689 yield tokens, preloc, nextLoc 1690 if overlap: 1691 nextloc = preparseFn( instring, loc ) 1692 if nextloc > loc: 1693 loc = nextLoc 1694 else: 1695 loc += 1 1696 else: 1697 loc = nextLoc 1698 else: 1699 loc = preloc+1 1700 except ParseBaseException as exc: 1701 if ParserElement.verbose_stacktrace: 1702 raise 1703 else: 1704 # catch and re-raise exception from here, clears out pyparsing internal stack trace 1705 raise exc
1706
1707 - def transformString( self, instring ):
1708 """ 1709 Extension to C{L{scanString}}, to modify matching text with modified tokens that may 1710 be returned from a parse action. To use C{transformString}, define a grammar and 1711 attach a parse action to it that modifies the returned token list. 1712 Invoking C{transformString()} on a target string will then scan for matches, 1713 and replace the matched text patterns according to the logic in the parse 1714 action. C{transformString()} returns the resulting transformed string. 1715 1716 Example:: 1717 wd = Word(alphas) 1718 wd.setParseAction(lambda toks: toks[0].title()) 1719 1720 print(wd.transformString("now is the winter of our discontent made glorious summer by this sun of york.")) 1721 Prints:: 1722 Now Is The Winter Of Our Discontent Made Glorious Summer By This Sun Of York. 1723 """ 1724 out = [] 1725 lastE = 0 1726 # force preservation of <TAB>s, to minimize unwanted transformation of string, and to 1727 # keep string locs straight between transformString and scanString 1728 self.keepTabs = True 1729 try: 1730 for t,s,e in self.scanString( instring ): 1731 out.append( instring[lastE:s] ) 1732 if t: 1733 if isinstance(t,ParseResults): 1734 out += t.asList() 1735 elif isinstance(t,list): 1736 out += t 1737 else: 1738 out.append(t) 1739 lastE = e 1740 out.append(instring[lastE:]) 1741 out = [o for o in out if o] 1742 return "".join(map(_ustr,_flatten(out))) 1743 except ParseBaseException as exc: 1744 if ParserElement.verbose_stacktrace: 1745 raise 1746 else: 1747 # catch and re-raise exception from here, clears out pyparsing internal stack trace 1748 raise exc
1749
1750 - def searchString( self, instring, maxMatches=_MAX_INT ):
1751 """ 1752 Another extension to C{L{scanString}}, simplifying the access to the tokens found 1753 to match the given parse expression. May be called with optional 1754 C{maxMatches} argument, to clip searching after 'n' matches are found. 1755 1756 Example:: 1757 # a capitalized word starts with an uppercase letter, followed by zero or more lowercase letters 1758 cap_word = Word(alphas.upper(), alphas.lower()) 1759 1760 print(cap_word.searchString("More than Iron, more than Lead, more than Gold I need Electricity")) 1761 1762 # the sum() builtin can be used to merge results into a single ParseResults object 1763 print(sum(cap_word.searchString("More than Iron, more than Lead, more than Gold I need Electricity"))) 1764 prints:: 1765 [['More'], ['Iron'], ['Lead'], ['Gold'], ['I'], ['Electricity']] 1766 ['More', 'Iron', 'Lead', 'Gold', 'I', 'Electricity'] 1767 """ 1768 try: 1769 return ParseResults([ t for t,s,e in self.scanString( instring, maxMatches ) ]) 1770 except ParseBaseException as exc: 1771 if ParserElement.verbose_stacktrace: 1772 raise 1773 else: 1774 # catch and re-raise exception from here, clears out pyparsing internal stack trace 1775 raise exc
1776
1777 - def split(self, instring, maxsplit=_MAX_INT, includeSeparators=False):
1778 """ 1779 Generator method to split a string using the given expression as a separator. 1780 May be called with optional C{maxsplit} argument, to limit the number of splits; 1781 and the optional C{includeSeparators} argument (default=C{False}), if the separating 1782 matching text should be included in the split results. 1783 1784 Example:: 1785 punc = oneOf(list(".,;:/-!?")) 1786 print(list(punc.split("This, this?, this sentence, is badly punctuated!"))) 1787 prints:: 1788 ['This', ' this', '', ' this sentence', ' is badly punctuated', ''] 1789 """ 1790 splits = 0 1791 last = 0 1792 for t,s,e in self.scanString(instring, maxMatches=maxsplit): 1793 yield instring[last:s] 1794 if includeSeparators: 1795 yield t[0] 1796 last = e 1797 yield instring[last:]
1798
1799 - def __add__(self, other ):
1800 """ 1801 Implementation of + operator - returns C{L{And}}. Adding strings to a ParserElement 1802 converts them to L{Literal}s by default. 1803 1804 Example:: 1805 greet = Word(alphas) + "," + Word(alphas) + "!" 1806 hello = "Hello, World!" 1807 print (hello, "->", greet.parseString(hello)) 1808 Prints:: 1809 Hello, World! -> ['Hello', ',', 'World', '!'] 1810 """ 1811 if isinstance( other, basestring ): 1812 other = ParserElement._literalStringClass( other ) 1813 if not isinstance( other, ParserElement ): 1814 warnings.warn("Cannot combine element of type %s with ParserElement" % type(other), 1815 SyntaxWarning, stacklevel=2) 1816 return None 1817 return And( [ self, other ] )
1818
1819 - def __radd__(self, other ):
1820 """ 1821 Implementation of + operator when left operand is not a C{L{ParserElement}} 1822 """ 1823 if isinstance( other, basestring ): 1824 other = ParserElement._literalStringClass( other ) 1825 if not isinstance( other, ParserElement ): 1826 warnings.warn("Cannot combine element of type %s with ParserElement" % type(other), 1827 SyntaxWarning, stacklevel=2) 1828 return None 1829 return other + self
1830
1831 - def __sub__(self, other):
1832 """ 1833 Implementation of - operator, returns C{L{And}} with error stop 1834 """ 1835 if isinstance( other, basestring ): 1836 other = ParserElement._literalStringClass( other ) 1837 if not isinstance( other, ParserElement ): 1838 warnings.warn("Cannot combine element of type %s with ParserElement" % type(other), 1839 SyntaxWarning, stacklevel=2) 1840 return None 1841 return self + And._ErrorStop() + other
1842
1843 - def __rsub__(self, other ):
1844 """ 1845 Implementation of - operator when left operand is not a C{L{ParserElement}} 1846 """ 1847 if isinstance( other, basestring ): 1848 other = ParserElement._literalStringClass( other ) 1849 if not isinstance( other, ParserElement ): 1850 warnings.warn("Cannot combine element of type %s with ParserElement" % type(other), 1851 SyntaxWarning, stacklevel=2) 1852 return None 1853 return other - self
1854
1855 - def __mul__(self,other):
1856 """ 1857 Implementation of * operator, allows use of C{expr * 3} in place of 1858 C{expr + expr + expr}. Expressions may also me multiplied by a 2-integer 1859 tuple, similar to C{{min,max}} multipliers in regular expressions. Tuples 1860 may also include C{None} as in: 1861 - C{expr*(n,None)} or C{expr*(n,)} is equivalent 1862 to C{expr*n + L{ZeroOrMore}(expr)} 1863 (read as "at least n instances of C{expr}") 1864 - C{expr*(None,n)} is equivalent to C{expr*(0,n)} 1865 (read as "0 to n instances of C{expr}") 1866 - C{expr*(None,None)} is equivalent to C{L{ZeroOrMore}(expr)} 1867 - C{expr*(1,None)} is equivalent to C{L{OneOrMore}(expr)} 1868 1869 Note that C{expr*(None,n)} does not raise an exception if 1870 more than n exprs exist in the input stream; that is, 1871 C{expr*(None,n)} does not enforce a maximum number of expr 1872 occurrences. If this behavior is desired, then write 1873 C{expr*(None,n) + ~expr} 1874 """ 1875 if isinstance(other,int): 1876 minElements, optElements = other,0 1877 elif isinstance(other,tuple): 1878 other = (other + (None, None))[:2] 1879 if other[0] is None: 1880 other = (0, other[1]) 1881 if isinstance(other[0],int) and other[1] is None: 1882 if other[0] == 0: 1883 return ZeroOrMore(self) 1884 if other[0] == 1: 1885 return OneOrMore(self) 1886 else: 1887 return self*other[0] + ZeroOrMore(self) 1888 elif isinstance(other[0],int) and isinstance(other[1],int): 1889 minElements, optElements = other 1890 optElements -= minElements 1891 else: 1892 raise TypeError("cannot multiply 'ParserElement' and ('%s','%s') objects", type(other[0]),type(other[1])) 1893 else: 1894 raise TypeError("cannot multiply 'ParserElement' and '%s' objects", type(other)) 1895 1896 if minElements < 0: 1897 raise ValueError("cannot multiply ParserElement by negative value") 1898 if optElements < 0: 1899 raise ValueError("second tuple value must be greater or equal to first tuple value") 1900 if minElements == optElements == 0: 1901 raise ValueError("cannot multiply ParserElement by 0 or (0,0)") 1902 1903 if (optElements): 1904 def makeOptionalList(n): 1905 if n>1: 1906 return Optional(self + makeOptionalList(n-1)) 1907 else: 1908 return Optional(self)
1909 if minElements: 1910 if minElements == 1: 1911 ret = self + makeOptionalList(optElements) 1912 else: 1913 ret = And([self]*minElements) + makeOptionalList(optElements) 1914 else: 1915 ret = makeOptionalList(optElements) 1916 else: 1917 if minElements == 1: 1918 ret = self 1919 else: 1920 ret = And([self]*minElements) 1921 return ret 1922
1923 - def __rmul__(self, other):
1924 return self.__mul__(other)
1925
1926 - def __or__(self, other ):
1927 """ 1928 Implementation of | operator - returns C{L{MatchFirst}} 1929 """ 1930 if isinstance( other, basestring ): 1931 other = ParserElement._literalStringClass( other ) 1932 if not isinstance( other, ParserElement ): 1933 warnings.warn("Cannot combine element of type %s with ParserElement" % type(other), 1934 SyntaxWarning, stacklevel=2) 1935 return None 1936 return MatchFirst( [ self, other ] )
1937
1938 - def __ror__(self, other ):
1939 """ 1940 Implementation of | operator when left operand is not a C{L{ParserElement}} 1941 """ 1942 if isinstance( other, basestring ): 1943 other = ParserElement._literalStringClass( other ) 1944 if not isinstance( other, ParserElement ): 1945 warnings.warn("Cannot combine element of type %s with ParserElement" % type(other), 1946 SyntaxWarning, stacklevel=2) 1947 return None 1948 return other | self
1949
1950 - def __xor__(self, other ):
1951 """ 1952 Implementation of ^ operator - returns C{L{Or}} 1953 """ 1954 if isinstance( other, basestring ): 1955 other = ParserElement._literalStringClass( other ) 1956 if not isinstance( other, ParserElement ): 1957 warnings.warn("Cannot combine element of type %s with ParserElement" % type(other), 1958 SyntaxWarning, stacklevel=2) 1959 return None 1960 return Or( [ self, other ] )
1961
1962 - def __rxor__(self, other ):
1963 """ 1964 Implementation of ^ operator when left operand is not a C{L{ParserElement}} 1965 """ 1966 if isinstance( other, basestring ): 1967 other = ParserElement._literalStringClass( other ) 1968 if not isinstance( other, ParserElement ): 1969 warnings.warn("Cannot combine element of type %s with ParserElement" % type(other), 1970 SyntaxWarning, stacklevel=2) 1971 return None 1972 return other ^ self
1973
1974 - def __and__(self, other ):
1975 """ 1976 Implementation of & operator - returns C{L{Each}} 1977 """ 1978 if isinstance( other, basestring ): 1979 other = ParserElement._literalStringClass( other ) 1980 if not isinstance( other, ParserElement ): 1981 warnings.warn("Cannot combine element of type %s with ParserElement" % type(other), 1982 SyntaxWarning, stacklevel=2) 1983 return None 1984 return Each( [ self, other ] )
1985
1986 - def __rand__(self, other ):
1987 """ 1988 Implementation of & operator when left operand is not a C{L{ParserElement}} 1989 """ 1990 if isinstance( other, basestring ): 1991 other = ParserElement._literalStringClass( other ) 1992 if not isinstance( other, ParserElement ): 1993 warnings.warn("Cannot combine element of type %s with ParserElement" % type(other), 1994 SyntaxWarning, stacklevel=2) 1995 return None 1996 return other & self
1997
1998 - def __invert__( self ):
1999 """ 2000 Implementation of ~ operator - returns C{L{NotAny}} 2001 """ 2002 return NotAny( self )
2003
2004 - def __call__(self, name=None):
2005 """ 2006 Shortcut for C{L{setResultsName}}, with C{listAllMatches=False}. 2007 2008 If C{name} is given with a trailing C{'*'} character, then C{listAllMatches} will be 2009 passed as C{True}. 2010 2011 If C{name} is omitted, same as calling C{L{copy}}. 2012 2013 Example:: 2014 # these are equivalent 2015 userdata = Word(alphas).setResultsName("name") + Word(nums+"-").setResultsName("socsecno") 2016 userdata = Word(alphas)("name") + Word(nums+"-")("socsecno") 2017 """ 2018 if name is not None: 2019 return self.setResultsName(name) 2020 else: 2021 return self.copy()
2022
2023 - def suppress( self ):
2024 """ 2025 Suppresses the output of this C{ParserElement}; useful to keep punctuation from 2026 cluttering up returned output. 2027 """ 2028 return Suppress( self )
2029
2030 - def leaveWhitespace( self ):
2031 """ 2032 Disables the skipping of whitespace before matching the characters in the 2033 C{ParserElement}'s defined pattern. This is normally only used internally by 2034 the pyparsing module, but may be needed in some whitespace-sensitive grammars. 2035 """ 2036 self.skipWhitespace = False 2037 return self
2038
2039 - def setWhitespaceChars( self, chars ):
2040 """ 2041 Overrides the default whitespace chars 2042 """ 2043 self.skipWhitespace = True 2044 self.whiteChars = chars 2045 self.copyDefaultWhiteChars = False 2046 return self
2047
2048 - def parseWithTabs( self ):
2049 """ 2050 Overrides default behavior to expand C{<TAB>}s to spaces before parsing the input string. 2051 Must be called before C{parseString} when the input grammar contains elements that 2052 match C{<TAB>} characters. 2053 """ 2054 self.keepTabs = True 2055 return self
2056
2057 - def ignore( self, other ):
2058 """ 2059 Define expression to be ignored (e.g., comments) while doing pattern 2060 matching; may be called repeatedly, to define multiple comment or other 2061 ignorable patterns. 2062 2063 Example:: 2064 patt = OneOrMore(Word(alphas)) 2065 patt.parseString('ablaj /* comment */ lskjd') # -> ['ablaj'] 2066 2067 patt.ignore(cStyleComment) 2068 patt.parseString('ablaj /* comment */ lskjd') # -> ['ablaj', 'lskjd'] 2069 """ 2070 if isinstance(other, basestring): 2071 other = Suppress(other) 2072 2073 if isinstance( other, Suppress ): 2074 if other not in self.ignoreExprs: 2075 self.ignoreExprs.append(other) 2076 else: 2077 self.ignoreExprs.append( Suppress( other.copy() ) ) 2078 return self
2079
2080 - def setDebugActions( self, startAction, successAction, exceptionAction ):
2081 """ 2082 Enable display of debugging messages while doing pattern matching. 2083 """ 2084 self.debugActions = (startAction or _defaultStartDebugAction, 2085 successAction or _defaultSuccessDebugAction, 2086 exceptionAction or _defaultExceptionDebugAction) 2087 self.debug = True 2088 return self
2089
2090 - def setDebug( self, flag=True ):
2091 """ 2092 Enable display of debugging messages while doing pattern matching. 2093 Set C{flag} to True to enable, False to disable. 2094 2095 Example:: 2096 wd = Word(alphas).setName("alphaword") 2097 integer = Word(nums).setName("numword") 2098 term = wd | integer 2099 2100 # turn on debugging for wd 2101 wd.setDebug() 2102 2103 OneOrMore(term).parseString("abc 123 xyz 890") 2104 2105 prints:: 2106 Match alphaword at loc 0(1,1) 2107 Matched alphaword -> ['abc'] 2108 Match alphaword at loc 3(1,4) 2109 Exception raised:Expected alphaword (at char 4), (line:1, col:5) 2110 Match alphaword at loc 7(1,8) 2111 Matched alphaword -> ['xyz'] 2112 Match alphaword at loc 11(1,12) 2113 Exception raised:Expected alphaword (at char 12), (line:1, col:13) 2114 Match alphaword at loc 15(1,16) 2115 Exception raised:Expected alphaword (at char 15), (line:1, col:16) 2116 2117 The output shown is that produced by the default debug actions - custom debug actions can be 2118 specified using L{setDebugActions}. Prior to attempting 2119 to match the C{wd} expression, the debugging message C{"Match <exprname> at loc <n>(<line>,<col>)"} 2120 is shown. Then if the parse succeeds, a C{"Matched"} message is shown, or an C{"Exception raised"} 2121 message is shown. Also note the use of L{setName} to assign a human-readable name to the expression, 2122 which makes debugging and exception messages easier to understand - for instance, the default 2123 name created for the C{Word} expression without calling C{setName} is C{"W:(ABCD...)"}. 2124 """ 2125 if flag: 2126 self.setDebugActions( _defaultStartDebugAction, _defaultSuccessDebugAction, _defaultExceptionDebugAction ) 2127 else: 2128 self.debug = False 2129 return self
2130
2131 - def __str__( self ):
2132 return self.name
2133
2134 - def __repr__( self ):
2135 return _ustr(self)
2136
2137 - def streamline( self ):
2138 self.streamlined = True 2139 self.strRepr = None 2140 return self
2141
2142 - def checkRecursion( self, parseElementList ):
2143 pass
2144
2145 - def validate( self, validateTrace=[] ):
2146 """ 2147 Check defined expressions for valid structure, check for infinite recursive definitions. 2148 """ 2149 self.checkRecursion( [] )
2150
2151 - def parseFile( self, file_or_filename, parseAll=False ):
2152 """ 2153 Execute the parse expression on the given file or filename. 2154 If a filename is specified (instead of a file object), 2155 the entire file is opened, read, and closed before parsing. 2156 """ 2157 try: 2158 file_contents = file_or_filename.read() 2159 except AttributeError: 2160 with open(file_or_filename, "r") as f: 2161 file_contents = f.read() 2162 try: 2163 return self.parseString(file_contents, parseAll) 2164 except ParseBaseException as exc: 2165 if ParserElement.verbose_stacktrace: 2166 raise 2167 else: 2168 # catch and re-raise exception from here, clears out pyparsing internal stack trace 2169 raise exc
2170
2171 - def __eq__(self,other):
2172 if isinstance(other, ParserElement): 2173 return self is other or vars(self) == vars(other) 2174 elif isinstance(other, basestring): 2175 return self.matches(other) 2176 else: 2177 return super(ParserElement,self)==other
2178
2179 - def __ne__(self,other):
2180 return not (self == other)
2181
2182 - def __hash__(self):
2183 return hash(id(self))
2184
2185 - def __req__(self,other):
2186 return self == other
2187
2188 - def __rne__(self,other):
2189 return not (self == other)
2190
2191 - def matches(self, testString, parseAll=True):
2192 """ 2193 Method for quick testing of a parser against a test string. Good for simple 2194 inline microtests of sub expressions while building up larger parser. 2195 2196 Parameters: 2197 - testString - to test against this expression for a match 2198 - parseAll - (default=C{True}) - flag to pass to C{L{parseString}} when running tests 2199 2200 Example:: 2201 expr = Word(nums) 2202 assert expr.matches("100") 2203 """ 2204 try: 2205 self.parseString(_ustr(testString), parseAll=parseAll) 2206 return True 2207 except ParseBaseException: 2208 return False
2209
2210 - def runTests(self, tests, parseAll=True, comment='#', fullDump=True, printResults=True, failureTests=False):
2211 """ 2212 Execute the parse expression on a series of test strings, showing each 2213 test, the parsed results or where the parse failed. Quick and easy way to 2214 run a parse expression against a list of sample strings. 2215 2216 Parameters: 2217 - tests - a list of separate test strings, or a multiline string of test strings 2218 - parseAll - (default=C{True}) - flag to pass to C{L{parseString}} when running tests 2219 - comment - (default=C{'#'}) - expression for indicating embedded comments in the test 2220 string; pass None to disable comment filtering 2221 - fullDump - (default=C{True}) - dump results as list followed by results names in nested outline; 2222 if False, only dump nested list 2223 - printResults - (default=C{True}) prints test output to stdout 2224 - failureTests - (default=C{False}) indicates if these tests are expected to fail parsing 2225 2226 Returns: a (success, results) tuple, where success indicates that all tests succeeded 2227 (or failed if C{failureTests} is True), and the results contain a list of lines of each 2228 test's output 2229 2230 Example:: 2231 number_expr = pyparsing_common.number.copy() 2232 2233 result = number_expr.runTests(''' 2234 # unsigned integer 2235 100 2236 # negative integer 2237 -100 2238 # float with scientific notation 2239 6.02e23 2240 # integer with scientific notation 2241 1e-12 2242 ''') 2243 print("Success" if result[0] else "Failed!") 2244 2245 result = number_expr.runTests(''' 2246 # stray character 2247 100Z 2248 # missing leading digit before '.' 2249 -.100 2250 # too many '.' 2251 3.14.159 2252 ''', failureTests=True) 2253 print("Success" if result[0] else "Failed!") 2254 prints:: 2255 # unsigned integer 2256 100 2257 [100] 2258 2259 # negative integer 2260 -100 2261 [-100] 2262 2263 # float with scientific notation 2264 6.02e23 2265 [6.02e+23] 2266 2267 # integer with scientific notation 2268 1e-12 2269 [1e-12] 2270 2271 Success 2272 2273 # stray character 2274 100Z 2275 ^ 2276 FAIL: Expected end of text (at char 3), (line:1, col:4) 2277 2278 # missing leading digit before '.' 2279 -.100 2280 ^ 2281 FAIL: Expected {real number with scientific notation | real number | signed integer} (at char 0), (line:1, col:1) 2282 2283 # too many '.' 2284 3.14.159 2285 ^ 2286 FAIL: Expected end of text (at char 4), (line:1, col:5) 2287 2288 Success 2289 2290 Each test string must be on a single line. If you want to test a string that spans multiple 2291 lines, create a test like this:: 2292 2293 expr.runTest(r"this is a test\\n of strings that spans \\n 3 lines") 2294 2295 (Note that this is a raw string literal, you must include the leading 'r'.) 2296 """ 2297 if isinstance(tests, basestring): 2298 tests = list(map(str.strip, tests.rstrip().splitlines())) 2299 if isinstance(comment, basestring): 2300 comment = Literal(comment) 2301 allResults = [] 2302 comments = [] 2303 success = True 2304 for t in tests: 2305 if comment is not None and comment.matches(t, False) or comments and not t: 2306 comments.append(t) 2307 continue 2308 if not t: 2309 continue 2310 out = ['\n'.join(comments), t] 2311 comments = [] 2312 try: 2313 t = t.replace(r'\n','\n') 2314 result = self.parseString(t, parseAll=parseAll) 2315 out.append(result.dump(full=fullDump)) 2316 success = success and not failureTests 2317 except ParseBaseException as pe: 2318 fatal = "(FATAL)" if isinstance(pe, ParseFatalException) else "" 2319 if '\n' in t: 2320 out.append(line(pe.loc, t)) 2321 out.append(' '*(col(pe.loc,t)-1) + '^' + fatal) 2322 else: 2323 out.append(' '*pe.loc + '^' + fatal) 2324 out.append("FAIL: " + str(pe)) 2325 success = success and failureTests 2326 result = pe 2327 except Exception as exc: 2328 out.append("FAIL-EXCEPTION: " + str(exc)) 2329 success = success and failureTests 2330 result = exc 2331 2332 if printResults: 2333 if fullDump: 2334 out.append('') 2335 print('\n'.join(out)) 2336 2337 allResults.append((t, result)) 2338 2339 return success, allResults
2340
2341 2342 -class Token(ParserElement):
2343 """ 2344 Abstract C{ParserElement} subclass, for defining atomic matching patterns. 2345 """
2346 - def __init__( self ):
2347 super(Token,self).__init__( savelist=False )
2348
2349 2350 -class Empty(Token):
2351 """ 2352 An empty token, will always match. 2353 """
2354 - def __init__( self ):
2355 super(Empty,self).__init__() 2356 self.name = "Empty" 2357 self.mayReturnEmpty = True 2358 self.mayIndexError = False
2359
2360 2361 -class NoMatch(Token):
2362 """ 2363 A token that will never match. 2364 """
2365 - def __init__( self ):
2366 super(NoMatch,self).__init__() 2367 self.name = "NoMatch" 2368 self.mayReturnEmpty = True 2369 self.mayIndexError = False 2370 self.errmsg = "Unmatchable token"
2371
2372 - def parseImpl( self, instring, loc, doActions=True ):
2373 raise ParseException(instring, loc, self.errmsg, self)
2374
2375 2376 -class Literal(Token):
2377 """ 2378 Token to exactly match a specified string. 2379 2380 Example:: 2381 Literal('blah').parseString('blah') # -> ['blah'] 2382 Literal('blah').parseString('blahfooblah') # -> ['blah'] 2383 Literal('blah').parseString('bla') # -> Exception: Expected "blah" 2384 2385 For case-insensitive matching, use L{CaselessLiteral}. 2386 2387 For keyword matching (force word break before and after the matched string), 2388 use L{Keyword} or L{CaselessKeyword}. 2389 """
2390 - def __init__( self, matchString ):
2391 super(Literal,self).__init__() 2392 self.match = matchString 2393 self.matchLen = len(matchString) 2394 try: 2395 self.firstMatchChar = matchString[0] 2396 except IndexError: 2397 warnings.warn("null string passed to Literal; use Empty() instead", 2398 SyntaxWarning, stacklevel=2) 2399 self.__class__ = Empty 2400 self.name = '"%s"' % _ustr(self.match) 2401 self.errmsg = "Expected " + self.name 2402 self.mayReturnEmpty = False 2403 self.mayIndexError = False
2404 2405 # Performance tuning: this routine gets called a *lot* 2406 # if this is a single character match string and the first character matches, 2407 # short-circuit as quickly as possible, and avoid calling startswith 2408 #~ @profile
2409 - def parseImpl( self, instring, loc, doActions=True ):
2410 if (instring[loc] == self.firstMatchChar and 2411 (self.matchLen==1 or instring.startswith(self.match,loc)) ): 2412 return loc+self.matchLen, self.match 2413 raise ParseException(instring, loc, self.errmsg, self)
2414 _L = Literal 2415 ParserElement._literalStringClass = Literal
2416 2417 -class Keyword(Token):
2418 """ 2419 Token to exactly match a specified string as a keyword, that is, it must be 2420 immediately followed by a non-keyword character. Compare with C{L{Literal}}: 2421 - C{Literal("if")} will match the leading C{'if'} in C{'ifAndOnlyIf'}. 2422 - C{Keyword("if")} will not; it will only match the leading C{'if'} in C{'if x=1'}, or C{'if(y==2)'} 2423 Accepts two optional constructor arguments in addition to the keyword string: 2424 - C{identChars} is a string of characters that would be valid identifier characters, 2425 defaulting to all alphanumerics + "_" and "$" 2426 - C{caseless} allows case-insensitive matching, default is C{False}. 2427 2428 Example:: 2429 Keyword("start").parseString("start") # -> ['start'] 2430 Keyword("start").parseString("starting") # -> Exception 2431 2432 For case-insensitive matching, use L{CaselessKeyword}. 2433 """ 2434 DEFAULT_KEYWORD_CHARS = alphanums+"_$" 2435
2436 - def __init__( self, matchString, identChars=None, caseless=False ):
2437 super(Keyword,self).__init__() 2438 if identChars is None: 2439 identChars = Keyword.DEFAULT_KEYWORD_CHARS 2440 self.match = matchString 2441 self.matchLen = len(matchString) 2442 try: 2443 self.firstMatchChar = matchString[0] 2444 except IndexError: 2445 warnings.warn("null string passed to Keyword; use Empty() instead", 2446 SyntaxWarning, stacklevel=2) 2447 self.name = '"%s"' % self.match 2448 self.errmsg = "Expected " + self.name 2449 self.mayReturnEmpty = False 2450 self.mayIndexError = False 2451 self.caseless = caseless 2452 if caseless: 2453 self.caselessmatch = matchString.upper() 2454 identChars = identChars.upper() 2455 self.identChars = set(identChars)
2456
2457 - def parseImpl( self, instring, loc, doActions=True ):
2458 if self.caseless: 2459 if ( (instring[ loc:loc+self.matchLen ].upper() == self.caselessmatch) and 2460 (loc >= len(instring)-self.matchLen or instring[loc+self.matchLen].upper() not in self.identChars) and 2461 (loc == 0 or instring[loc-1].upper() not in self.identChars) ): 2462 return loc+self.matchLen, self.match 2463 else: 2464 if (instring[loc] == self.firstMatchChar and 2465 (self.matchLen==1 or instring.startswith(self.match,loc)) and 2466 (loc >= len(instring)-self.matchLen or instring[loc+self.matchLen] not in self.identChars) and 2467 (loc == 0 or instring[loc-1] not in self.identChars) ): 2468 return loc+self.matchLen, self.match 2469 raise ParseException(instring, loc, self.errmsg, self)
2470
2471 - def copy(self):
2472 c = super(Keyword,self).copy() 2473 c.identChars = Keyword.DEFAULT_KEYWORD_CHARS 2474 return c
2475 2476 @staticmethod
2477 - def setDefaultKeywordChars( chars ):
2478 """Overrides the default Keyword chars 2479 """ 2480 Keyword.DEFAULT_KEYWORD_CHARS = chars
2481
2482 -class CaselessLiteral(Literal):
2483 """ 2484 Token to match a specified string, ignoring case of letters. 2485 Note: the matched results will always be in the case of the given 2486 match string, NOT the case of the input text. 2487 2488 Example:: 2489 OneOrMore(CaselessLiteral("CMD")).parseString("cmd CMD Cmd10") # -> ['CMD', 'CMD', 'CMD'] 2490 2491 (Contrast with example for L{CaselessKeyword}.) 2492 """
2493 - def __init__( self, matchString ):
2494 super(CaselessLiteral,self).__init__( matchString.upper() ) 2495 # Preserve the defining literal. 2496 self.returnString = matchString 2497 self.name = "'%s'" % self.returnString 2498 self.errmsg = "Expected " + self.name
2499
2500 - def parseImpl( self, instring, loc, doActions=True ):
2501 if instring[ loc:loc+self.matchLen ].upper() == self.match: 2502 return loc+self.matchLen, self.returnString 2503 raise ParseException(instring, loc, self.errmsg, self)
2504
2505 -class CaselessKeyword(Keyword):
2506 """ 2507 Caseless version of L{Keyword}. 2508 2509 Example:: 2510 OneOrMore(CaselessKeyword("CMD")).parseString("cmd CMD Cmd10") # -> ['CMD', 'CMD'] 2511 2512 (Contrast with example for L{CaselessLiteral}.) 2513 """
2514 - def __init__( self, matchString, identChars=None ):
2515 super(CaselessKeyword,self).__init__( matchString, identChars, caseless=True )
2516
2517 - def parseImpl( self, instring, loc, doActions=True ):
2518 if ( (instring[ loc:loc+self.matchLen ].upper() == self.caselessmatch) and 2519 (loc >= len(instring)-self.matchLen or instring[loc+self.matchLen].upper() not in self.identChars) ): 2520 return loc+self.matchLen, self.match 2521 raise ParseException(instring, loc, self.errmsg, self)
2522
2523 -class CloseMatch(Token):
2524 """ 2525 A variation on L{Literal} which matches "close" matches, that is, 2526 strings with at most 'n' mismatching characters. C{CloseMatch} takes parameters: 2527 - C{match_string} - string to be matched 2528 - C{maxMismatches} - (C{default=1}) maximum number of mismatches allowed to count as a match 2529 2530 The results from a successful parse will contain the matched text from the input string and the following named results: 2531 - C{mismatches} - a list of the positions within the match_string where mismatches were found 2532 - C{original} - the original match_string used to compare against the input string 2533 2534 If C{mismatches} is an empty list, then the match was an exact match. 2535 2536 Example:: 2537 patt = CloseMatch("ATCATCGAATGGA") 2538 patt.parseString("ATCATCGAAXGGA") # -> (['ATCATCGAAXGGA'], {'mismatches': [[9]], 'original': ['ATCATCGAATGGA']}) 2539 patt.parseString("ATCAXCGAAXGGA") # -> Exception: Expected 'ATCATCGAATGGA' (with up to 1 mismatches) (at char 0), (line:1, col:1) 2540 2541 # exact match 2542 patt.parseString("ATCATCGAATGGA") # -> (['ATCATCGAATGGA'], {'mismatches': [[]], 'original': ['ATCATCGAATGGA']}) 2543 2544 # close match allowing up to 2 mismatches 2545 patt = CloseMatch("ATCATCGAATGGA", maxMismatches=2) 2546 patt.parseString("ATCAXCGAAXGGA") # -> (['ATCAXCGAAXGGA'], {'mismatches': [[4, 9]], 'original': ['ATCATCGAATGGA']}) 2547 """
2548 - def __init__(self, match_string, maxMismatches=1):
2549 super(CloseMatch,self).__init__() 2550 self.name = match_string 2551 self.match_string = match_string 2552 self.maxMismatches = maxMismatches 2553 self.errmsg = "Expected %r (with up to %d mismatches)" % (self.match_string, self.maxMismatches) 2554 self.mayIndexError = False 2555 self.mayReturnEmpty = False
2556
2557 - def parseImpl( self, instring, loc, doActions=True ):
2558 start = loc 2559 instrlen = len(instring) 2560 maxloc = start + len(self.match_string) 2561 2562 if maxloc <= instrlen: 2563 match_string = self.match_string 2564 match_stringloc = 0 2565 mismatches = [] 2566 maxMismatches = self.maxMismatches 2567 2568 for match_stringloc,s_m in enumerate(zip(instring[loc:maxloc], self.match_string)): 2569 src,mat = s_m 2570 if src != mat: 2571 mismatches.append(match_stringloc) 2572 if len(mismatches) > maxMismatches: 2573 break 2574 else: 2575 loc = match_stringloc + 1 2576 results = ParseResults([instring[start:loc]]) 2577 results['original'] = self.match_string 2578 results['mismatches'] = mismatches 2579 return loc, results 2580 2581 raise ParseException(instring, loc, self.errmsg, self)
2582
2583 2584 -class Word(Token):
2585 """ 2586 Token for matching words composed of allowed character sets. 2587 Defined with string containing all allowed initial characters, 2588 an optional string containing allowed body characters (if omitted, 2589 defaults to the initial character set), and an optional minimum, 2590 maximum, and/or exact length. The default value for C{min} is 1 (a 2591 minimum value < 1 is not valid); the default values for C{max} and C{exact} 2592 are 0, meaning no maximum or exact length restriction. An optional 2593 C{excludeChars} parameter can list characters that might be found in 2594 the input C{bodyChars} string; useful to define a word of all printables 2595 except for one or two characters, for instance. 2596 2597 L{srange} is useful for defining custom character set strings for defining 2598 C{Word} expressions, using range notation from regular expression character sets. 2599 2600 A common mistake is to use C{Word} to match a specific literal string, as in 2601 C{Word("Address")}. Remember that C{Word} uses the string argument to define 2602 I{sets} of matchable characters. This expression would match "Add", "AAA", 2603 "dAred", or any other word made up of the characters 'A', 'd', 'r', 'e', and 's'. 2604 To match an exact literal string, use L{Literal} or L{Keyword}. 2605 2606 pyparsing includes helper strings for building Words: 2607 - L{alphas} 2608 - L{nums} 2609 - L{alphanums} 2610 - L{hexnums} 2611 - L{alphas8bit} (alphabetic characters in ASCII range 128-255 - accented, tilded, umlauted, etc.) 2612 - L{punc8bit} (non-alphabetic characters in ASCII range 128-255 - currency, symbols, superscripts, diacriticals, etc.) 2613 - L{printables} (any non-whitespace character) 2614 2615 Example:: 2616 # a word composed of digits 2617 integer = Word(nums) # equivalent to Word("0123456789") or Word(srange("0-9")) 2618 2619 # a word with a leading capital, and zero or more lowercase 2620 capital_word = Word(alphas.upper(), alphas.lower()) 2621 2622 # hostnames are alphanumeric, with leading alpha, and '-' 2623 hostname = Word(alphas, alphanums+'-') 2624 2625 # roman numeral (not a strict parser, accepts invalid mix of characters) 2626 roman = Word("IVXLCDM") 2627 2628 # any string of non-whitespace characters, except for ',' 2629 csv_value = Word(printables, excludeChars=",") 2630 """
2631 - def __init__( self, initChars, bodyChars=None, min=1, max=0, exact=0, asKeyword=False, excludeChars=None ):
2632 super(Word,self).__init__() 2633 if excludeChars: 2634 initChars = ''.join(c for c in initChars if c not in excludeChars) 2635 if bodyChars: 2636 bodyChars = ''.join(c for c in bodyChars if c not in excludeChars) 2637 self.initCharsOrig = initChars 2638 self.initChars = set(initChars) 2639 if bodyChars : 2640 self.bodyCharsOrig = bodyChars 2641 self.bodyChars = set(bodyChars) 2642 else: 2643 self.bodyCharsOrig = initChars 2644 self.bodyChars = set(initChars) 2645 2646 self.maxSpecified = max > 0 2647 2648 if min < 1: 2649 raise ValueError("cannot specify a minimum length < 1; use Optional(Word()) if zero-length word is permitted") 2650 2651 self.minLen = min 2652 2653 if max > 0: 2654 self.maxLen = max 2655 else: 2656 self.maxLen = _MAX_INT 2657 2658 if exact > 0: 2659 self.maxLen = exact 2660 self.minLen = exact 2661 2662 self.name = _ustr(self) 2663 self.errmsg = "Expected " + self.name 2664 self.mayIndexError = False 2665 self.asKeyword = asKeyword 2666 2667 if ' ' not in self.initCharsOrig+self.bodyCharsOrig and (min==1 and max==0 and exact==0): 2668 if self.bodyCharsOrig == self.initCharsOrig: 2669 self.reString = "[%s]+" % _escapeRegexRangeChars(self.initCharsOrig) 2670 elif len(self.initCharsOrig) == 1: 2671 self.reString = "%s[%s]*" % \ 2672 (re.escape(self.initCharsOrig), 2673 _escapeRegexRangeChars(self.bodyCharsOrig),) 2674 else: 2675 self.reString = "[%s][%s]*" % \ 2676 (_escapeRegexRangeChars(self.initCharsOrig), 2677 _escapeRegexRangeChars(self.bodyCharsOrig),) 2678 if self.asKeyword: 2679 self.reString = r"\b"+self.reString+r"\b" 2680 try: 2681 self.re = re.compile( self.reString ) 2682 except Exception: 2683 self.re = None
2684
2685 - def parseImpl( self, instring, loc, doActions=True ):
2686 if self.re: 2687 result = self.re.match(instring,loc) 2688 if not result: 2689 raise ParseException(instring, loc, self.errmsg, self) 2690 2691 loc = result.end() 2692 return loc, result.group() 2693 2694 if not(instring[ loc ] in self.initChars): 2695 raise ParseException(instring, loc, self.errmsg, self) 2696 2697 start = loc 2698 loc += 1 2699 instrlen = len(instring) 2700 bodychars = self.bodyChars 2701 maxloc = start + self.maxLen 2702 maxloc = min( maxloc, instrlen ) 2703 while loc < maxloc and instring[loc] in bodychars: 2704 loc += 1 2705 2706 throwException = False 2707 if loc - start < self.minLen: 2708 throwException = True 2709 if self.maxSpecified and loc < instrlen and instring[loc] in bodychars: 2710 throwException = True 2711 if self.asKeyword: 2712 if (start>0 and instring[start-1] in bodychars) or (loc<instrlen and instring[loc] in bodychars): 2713 throwException = True 2714 2715 if throwException: 2716 raise ParseException(instring, loc, self.errmsg, self) 2717 2718 return loc, instring[start:loc]
2719
2720 - def __str__( self ):
2721 try: 2722 return super(Word,self).__str__() 2723 except Exception: 2724 pass 2725 2726 2727 if self.strRepr is None: 2728 2729 def charsAsStr(s): 2730 if len(s)>4: 2731 return s[:4]+"..." 2732 else: 2733 return s
2734 2735 if ( self.initCharsOrig != self.bodyCharsOrig ): 2736 self.strRepr = "W:(%s,%s)" % ( charsAsStr(self.initCharsOrig), charsAsStr(self.bodyCharsOrig) ) 2737 else: 2738 self.strRepr = "W:(%s)" % charsAsStr(self.initCharsOrig) 2739 2740 return self.strRepr
2741
2742 2743 -class Regex(Token):
2744 r""" 2745 Token for matching strings that match a given regular expression. 2746 Defined with string specifying the regular expression in a form recognized by the inbuilt Python re module. 2747 If the given regex contains named groups (defined using C{(?P<name>...)}), these will be preserved as 2748 named parse results. 2749 2750 Example:: 2751 realnum = Regex(r"[+-]?\d+\.\d*") 2752 date = Regex(r'(?P<year>\d{4})-(?P<month>\d\d?)-(?P<day>\d\d?)') 2753 # ref: http://stackoverflow.com/questions/267399/how-do-you-match-only-valid-roman-numerals-with-a-regular-expression 2754 roman = Regex(r"M{0,4}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})") 2755 """ 2756 compiledREtype = type(re.compile("[A-Z]"))
2757 - def __init__( self, pattern, flags=0):
2758 """The parameters C{pattern} and C{flags} are passed to the C{re.compile()} function as-is. See the Python C{re} module for an explanation of the acceptable patterns and flags.""" 2759 super(Regex,self).__init__() 2760 2761 if isinstance(pattern, basestring): 2762 if not pattern: 2763 warnings.warn("null string passed to Regex; use Empty() instead", 2764 SyntaxWarning, stacklevel=2) 2765 2766 self.pattern = pattern 2767 self.flags = flags 2768 2769 try: 2770 self.re = re.compile(self.pattern, self.flags) 2771 self.reString = self.pattern 2772 except sre_constants.error: 2773 warnings.warn("invalid pattern (%s) passed to Regex" % pattern, 2774 SyntaxWarning, stacklevel=2) 2775 raise 2776 2777 elif isinstance(pattern, Regex.compiledREtype): 2778 self.re = pattern 2779 self.pattern = \ 2780 self.reString = str(pattern) 2781 self.flags = flags 2782 2783 else: 2784 raise ValueError("Regex may only be constructed with a string or a compiled RE object") 2785 2786 self.name = _ustr(self) 2787 self.errmsg = "Expected " + self.name 2788 self.mayIndexError = False 2789 self.mayReturnEmpty = True
2790
2791 - def parseImpl( self, instring, loc, doActions=True ):
2792 result = self.re.match(instring,loc) 2793 if not result: 2794 raise ParseException(instring, loc, self.errmsg, self) 2795 2796 loc = result.end() 2797 d = result.groupdict() 2798 ret = ParseResults(result.group()) 2799 if d: 2800 for k in d: 2801 ret[k] = d[k] 2802 return loc,ret
2803
2804 - def __str__( self ):
2805 try: 2806 return super(Regex,self).__str__() 2807 except Exception: 2808 pass 2809 2810 if self.strRepr is None: 2811 self.strRepr = "Re:(%s)" % repr(self.pattern) 2812 2813 return self.strRepr
2814
2815 2816 -class QuotedString(Token):
2817 r""" 2818 Token for matching strings that are delimited by quoting characters. 2819 2820 Defined with the following parameters: 2821 - quoteChar - string of one or more characters defining the quote delimiting string 2822 - escChar - character to escape quotes, typically backslash (default=C{None}) 2823 - escQuote - special quote sequence to escape an embedded quote string (such as SQL's "" to escape an embedded ") (default=C{None}) 2824 - multiline - boolean indicating whether quotes can span multiple lines (default=C{False}) 2825 - unquoteResults - boolean indicating whether the matched text should be unquoted (default=C{True}) 2826 - endQuoteChar - string of one or more characters defining the end of the quote delimited string (default=C{None} => same as quoteChar) 2827 - convertWhitespaceEscapes - convert escaped whitespace (C{'\t'}, C{'\n'}, etc.) to actual whitespace (default=C{True}) 2828 2829 Example:: 2830 qs = QuotedString('"') 2831 print(qs.searchString('lsjdf "This is the quote" sldjf')) 2832 complex_qs = QuotedString('{{', endQuoteChar='}}') 2833 print(complex_qs.searchString('lsjdf {{This is the "quote"}} sldjf')) 2834 sql_qs = QuotedString('"', escQuote='""') 2835 print(sql_qs.searchString('lsjdf "This is the quote with ""embedded"" quotes" sldjf')) 2836 prints:: 2837 [['This is the quote']] 2838 [['This is the "quote"']] 2839 [['This is the quote with "embedded" quotes']] 2840 """
2841 - def __init__( self, quoteChar, escChar=None, escQuote=None, multiline=False, unquoteResults=True, endQuoteChar=None, convertWhitespaceEscapes=True):
2842 super(QuotedString,self).__init__() 2843 2844 # remove white space from quote chars - wont work anyway 2845 quoteChar = quoteChar.strip() 2846 if not quoteChar: 2847 warnings.warn("quoteChar cannot be the empty string",SyntaxWarning,stacklevel=2) 2848 raise SyntaxError() 2849 2850 if endQuoteChar is None: 2851 endQuoteChar = quoteChar 2852 else: 2853 endQuoteChar = endQuoteChar.strip() 2854 if not endQuoteChar: 2855 warnings.warn("endQuoteChar cannot be the empty string",SyntaxWarning,stacklevel=2) 2856 raise SyntaxError() 2857 2858 self.quoteChar = quoteChar 2859 self.quoteCharLen = len(quoteChar) 2860 self.firstQuoteChar = quoteChar[0] 2861 self.endQuoteChar = endQuoteChar 2862 self.endQuoteCharLen = len(endQuoteChar) 2863 self.escChar = escChar 2864 self.escQuote = escQuote 2865 self.unquoteResults = unquoteResults 2866 self.convertWhitespaceEscapes = convertWhitespaceEscapes 2867 2868 if multiline: 2869 self.flags = re.MULTILINE | re.DOTALL 2870 self.pattern = r'%s(?:[^%s%s]' % \ 2871 ( re.escape(self.quoteChar), 2872 _escapeRegexRangeChars(self.endQuoteChar[0]), 2873 (escChar is not None and _escapeRegexRangeChars(escChar) or '') ) 2874 else: 2875 self.flags = 0 2876 self.pattern = r'%s(?:[^%s\n\r%s]' % \ 2877 ( re.escape(self.quoteChar), 2878 _escapeRegexRangeChars(self.endQuoteChar[0]), 2879 (escChar is not None and _escapeRegexRangeChars(escChar) or '') ) 2880 if len(self.endQuoteChar) > 1: 2881 self.pattern += ( 2882 '|(?:' + ')|(?:'.join("%s[^%s]" % (re.escape(self.endQuoteChar[:i]), 2883 _escapeRegexRangeChars(self.endQuoteChar[i])) 2884 for i in range(len(self.endQuoteChar)-1,0,-1)) + ')' 2885 ) 2886 if escQuote: 2887 self.pattern += (r'|(?:%s)' % re.escape(escQuote)) 2888 if escChar: 2889 self.pattern += (r'|(?:%s.)' % re.escape(escChar)) 2890 self.escCharReplacePattern = re.escape(self.escChar)+"(.)" 2891 self.pattern += (r')*%s' % re.escape(self.endQuoteChar)) 2892 2893 try: 2894 self.re = re.compile(self.pattern, self.flags) 2895 self.reString = self.pattern 2896 except sre_constants.error: 2897 warnings.warn("invalid pattern (%s) passed to Regex" % self.pattern, 2898 SyntaxWarning, stacklevel=2) 2899 raise 2900 2901 self.name = _ustr(self) 2902 self.errmsg = "Expected " + self.name 2903 self.mayIndexError = False 2904 self.mayReturnEmpty = True
2905
2906 - def parseImpl( self, instring, loc, doActions=True ):
2907 result = instring[loc] == self.firstQuoteChar and self.re.match(instring,loc) or None 2908 if not result: 2909 raise ParseException(instring, loc, self.errmsg, self) 2910 2911 loc = result.end() 2912 ret = result.group() 2913 2914 if self.unquoteResults: 2915 2916 # strip off quotes 2917 ret = ret[self.quoteCharLen:-self.endQuoteCharLen] 2918 2919 if isinstance(ret,basestring): 2920 # replace escaped whitespace 2921 if '\\' in ret and self.convertWhitespaceEscapes: 2922 ws_map = { 2923 r'\t' : '\t', 2924 r'\n' : '\n', 2925 r'\f' : '\f', 2926 r'\r' : '\r', 2927 } 2928 for wslit,wschar in ws_map.items(): 2929 ret = ret.replace(wslit, wschar) 2930 2931 # replace escaped characters 2932 if self.escChar: 2933 ret = re.sub(self.escCharReplacePattern, r"\g<1>", ret) 2934 2935 # replace escaped quotes 2936 if self.escQuote: 2937 ret = ret.replace(self.escQuote, self.endQuoteChar) 2938 2939 return loc, ret
2940
2941 - def __str__( self ):
2942 try: 2943 return super(QuotedString,self).__str__() 2944 except Exception: 2945 pass 2946 2947 if self.strRepr is None: 2948 self.strRepr = "quoted string, starting with %s ending with %s" % (self.quoteChar, self.endQuoteChar) 2949 2950 return self.strRepr
2951
2952 2953 -class CharsNotIn(Token):
2954 """ 2955 Token for matching words composed of characters I{not} in a given set (will 2956 include whitespace in matched characters if not listed in the provided exclusion set - see example). 2957 Defined with string containing all disallowed characters, and an optional 2958 minimum, maximum, and/or exact length. The default value for C{min} is 1 (a 2959 minimum value < 1 is not valid); the default values for C{max} and C{exact} 2960 are 0, meaning no maximum or exact length restriction. 2961 2962 Example:: 2963 # define a comma-separated-value as anything that is not a ',' 2964 csv_value = CharsNotIn(',') 2965 print(delimitedList(csv_value).parseString("dkls,lsdkjf,s12 34,@!#,213")) 2966 prints:: 2967 ['dkls', 'lsdkjf', 's12 34', '@!#', '213'] 2968 """
2969 - def __init__( self, notChars, min=1, max=0, exact=0 ):
2970 super(CharsNotIn,self).__init__() 2971 self.skipWhitespace = False 2972 self.notChars = notChars 2973 2974 if min < 1: 2975 raise ValueError("cannot specify a minimum length < 1; use Optional(CharsNotIn()) if zero-length char group is permitted") 2976 2977 self.minLen = min 2978 2979 if max > 0: 2980 self.maxLen = max 2981 else: 2982 self.maxLen = _MAX_INT 2983 2984 if exact > 0: 2985 self.maxLen = exact 2986 self.minLen = exact 2987 2988 self.name = _ustr(self) 2989 self.errmsg = "Expected " + self.name 2990 self.mayReturnEmpty = ( self.minLen == 0 ) 2991 self.mayIndexError = False
2992
2993 - def parseImpl( self, instring, loc, doActions=True ):
2994 if instring[loc] in self.notChars: 2995 raise ParseException(instring, loc, self.errmsg, self) 2996 2997 start = loc 2998 loc += 1 2999 notchars = self.notChars 3000 maxlen = min( start+self.maxLen, len(instring) ) 3001 while loc < maxlen and \ 3002 (instring[loc] not in notchars): 3003 loc += 1 3004 3005 if loc - start < self.minLen: 3006 raise ParseException(instring, loc, self.errmsg, self) 3007 3008 return loc, instring[start:loc]
3009
3010 - def __str__( self ):
3011 try: 3012 return super(CharsNotIn, self).__str__() 3013 except Exception: 3014 pass 3015 3016 if self.strRepr is None: 3017 if len(self.notChars) > 4: 3018 self.strRepr = "!W:(%s...)" % self.notChars[:4] 3019 else: 3020 self.strRepr = "!W:(%s)" % self.notChars 3021 3022 return self.strRepr
3023
3024 -class White(Token):
3025 """ 3026 Special matching class for matching whitespace. Normally, whitespace is ignored 3027 by pyparsing grammars. This class is included when some whitespace structures 3028 are significant. Define with a string containing the whitespace characters to be 3029 matched; default is C{" \\t\\r\\n"}. Also takes optional C{min}, C{max}, and C{exact} arguments, 3030 as defined for the C{L{Word}} class. 3031 """ 3032 whiteStrs = { 3033 " " : "<SPC>", 3034 "\t": "<TAB>", 3035 "\n": "<LF>", 3036 "\r": "<CR>", 3037 "\f": "<FF>", 3038 }
3039 - def __init__(self, ws=" \t\r\n", min=1, max=0, exact=0):
3040 super(White,self).__init__() 3041 self.matchWhite = ws 3042 self.setWhitespaceChars( "".join(c for c in self.whiteChars if c not in self.matchWhite) ) 3043 #~ self.leaveWhitespace() 3044 self.name = ("".join(White.whiteStrs[c] for c in self.matchWhite)) 3045 self.mayReturnEmpty = True 3046 self.errmsg = "Expected " + self.name 3047 3048 self.minLen = min 3049 3050 if max > 0: 3051 self.maxLen = max 3052 else: 3053 self.maxLen = _MAX_INT 3054 3055 if exact > 0: 3056 self.maxLen = exact 3057 self.minLen = exact
3058
3059 - def parseImpl( self, instring, loc, doActions=True ):
3060 if not(instring[ loc ] in self.matchWhite): 3061 raise ParseException(instring, loc, self.errmsg, self) 3062 start = loc 3063 loc += 1 3064 maxloc = start + self.maxLen 3065 maxloc = min( maxloc, len(instring) ) 3066 while loc < maxloc and instring[loc] in self.matchWhite: 3067 loc += 1 3068 3069 if loc - start < self.minLen: 3070 raise ParseException(instring, loc, self.errmsg, self) 3071 3072 return loc, instring[start:loc]
3073
3074 3075 -class _PositionToken(Token):
3076 - def __init__( self ):
3077 super(_PositionToken,self).__init__() 3078 self.name=self.__class__.__name__ 3079 self.mayReturnEmpty = True 3080 self.mayIndexError = False
3081
3082 -class GoToColumn(_PositionToken):
3083 """ 3084 Token to advance to a specific column of input text; useful for tabular report scraping. 3085 """
3086 - def __init__( self, colno ):
3087 super(GoToColumn,self).__init__() 3088 self.col = colno
3089
3090 - def preParse( self, instring, loc ):
3091 if col(loc,instring) != self.col: 3092 instrlen = len(instring) 3093 if self.ignoreExprs: 3094 loc = self._skipIgnorables( instring, loc ) 3095 while loc < instrlen and instring[loc].isspace() and col( loc, instring ) != self.col : 3096 loc += 1 3097 return loc
3098
3099 - def parseImpl( self, instring, loc, doActions=True ):
3100 thiscol = col( loc, instring ) 3101 if thiscol > self.col: 3102 raise ParseException( instring, loc, "Text not in expected column", self ) 3103 newloc = loc + self.col - thiscol 3104 ret = instring[ loc: newloc ] 3105 return newloc, ret
3106
3107 3108 -class LineStart(_PositionToken):
3109 """ 3110 Matches if current position is at the beginning of a line within the parse string 3111 3112 Example:: 3113 3114 test = '''\ 3115 AAA this line 3116 AAA and this line 3117 AAA but not this one 3118 B AAA and definitely not this one 3119 ''' 3120 3121 for t in (LineStart() + 'AAA' + restOfLine).searchString(test): 3122 print(t) 3123 3124 Prints:: 3125 ['AAA', ' this line'] 3126 ['AAA', ' and this line'] 3127 3128 """
3129 - def __init__( self ):
3130 super(LineStart,self).__init__() 3131 self.errmsg = "Expected start of line"
3132
3133 - def parseImpl( self, instring, loc, doActions=True ):
3134 if col(loc, instring) == 1: 3135 return loc, [] 3136 raise ParseException(instring, loc, self.errmsg, self)
3137
3138 -class LineEnd(_PositionToken):
3139 """ 3140 Matches if current position is at the end of a line within the parse string 3141 """
3142 - def __init__( self ):
3143 super(LineEnd,self).__init__() 3144 self.setWhitespaceChars( ParserElement.DEFAULT_WHITE_CHARS.replace("\n","") ) 3145 self.errmsg = "Expected end of line"
3146
3147 - def parseImpl( self, instring, loc, doActions=True ):
3148 if loc<len(instring): 3149 if instring[loc] == "\n": 3150 return loc+1, "\n" 3151 else: 3152 raise ParseException(instring, loc, self.errmsg, self) 3153 elif loc == len(instring): 3154 return loc+1, [] 3155 else: 3156 raise ParseException(instring, loc, self.errmsg, self)
3157
3158 -class StringStart(_PositionToken):
3159 """ 3160 Matches if current position is at the beginning of the parse string 3161 """
3162 - def __init__( self ):
3163 super(StringStart,self).__init__() 3164 self.errmsg = "Expected start of text"
3165
3166 - def parseImpl( self, instring, loc, doActions=True ):
3167 if loc != 0: 3168 # see if entire string up to here is just whitespace and ignoreables 3169 if loc != self.preParse( instring, 0 ): 3170 raise ParseException(instring, loc, self.errmsg, self) 3171 return loc, []
3172
3173 -class StringEnd(_PositionToken):
3174 """ 3175 Matches if current position is at the end of the parse string 3176 """
3177 - def __init__( self ):
3178 super(StringEnd,self).__init__() 3179 self.errmsg = "Expected end of text"
3180
3181 - def parseImpl( self, instring, loc, doActions=True ):
3182 if loc < len(instring): 3183 raise ParseException(instring, loc, self.errmsg, self) 3184 elif loc == len(instring): 3185 return loc+1, [] 3186 elif loc > len(instring): 3187 return loc, [] 3188 else: 3189 raise ParseException(instring, loc, self.errmsg, self)
3190
3191 -class WordStart(_PositionToken):
3192 """ 3193 Matches if the current position is at the beginning of a Word, and 3194 is not preceded by any character in a given set of C{wordChars} 3195 (default=C{printables}). To emulate the C{\b} behavior of regular expressions, 3196 use C{WordStart(alphanums)}. C{WordStart} will also match at the beginning of 3197 the string being parsed, or at the beginning of a line. 3198 """
3199 - def __init__(self, wordChars = printables):
3200 super(WordStart,self).__init__() 3201 self.wordChars = set(wordChars) 3202 self.errmsg = "Not at the start of a word"
3203
3204 - def parseImpl(self, instring, loc, doActions=True ):
3205 if loc != 0: 3206 if (instring[loc-1] in self.wordChars or 3207 instring[loc] not in self.wordChars): 3208 raise ParseException(instring, loc, self.errmsg, self) 3209 return loc, []
3210
3211 -class WordEnd(_PositionToken):
3212 """ 3213 Matches if the current position is at the end of a Word, and 3214 is not followed by any character in a given set of C{wordChars} 3215 (default=C{printables}). To emulate the C{\b} behavior of regular expressions, 3216 use C{WordEnd(alphanums)}. C{WordEnd} will also match at the end of 3217 the string being parsed, or at the end of a line. 3218 """
3219 - def __init__(self, wordChars = printables):
3220 super(WordEnd,self).__init__() 3221 self.wordChars = set(wordChars) 3222 self.skipWhitespace = False 3223 self.errmsg = "Not at the end of a word"
3224
3225 - def parseImpl(self, instring, loc, doActions=True ):
3226 instrlen = len(instring) 3227 if instrlen>0 and loc<instrlen: 3228 if (instring[loc] in self.wordChars or 3229 instring[loc-1] not in self.wordChars): 3230 raise ParseException(instring, loc, self.errmsg, self) 3231 return loc, []
3232
3233 3234 -class ParseExpression(ParserElement):
3235 """ 3236 Abstract subclass of ParserElement, for combining and post-processing parsed tokens. 3237 """
3238 - def __init__( self, exprs, savelist = False ):
3239 super(ParseExpression,self).__init__(savelist) 3240 if isinstance( exprs, _generatorType ): 3241 exprs = list(exprs) 3242 3243 if isinstance( exprs, basestring ): 3244 self.exprs = [ ParserElement._literalStringClass( exprs ) ] 3245 elif isinstance( exprs, collections.Iterable ): 3246 exprs = list(exprs) 3247 # if sequence of strings provided, wrap with Literal 3248 if all(isinstance(expr, basestring) for expr in exprs): 3249 exprs = map(ParserElement._literalStringClass, exprs) 3250 self.exprs = list(exprs) 3251 else: 3252 try: 3253 self.exprs = list( exprs ) 3254 except TypeError: 3255 self.exprs = [ exprs ] 3256 self.callPreparse = False
3257
3258 - def __getitem__( self, i ):
3259 return self.exprs[i]
3260
3261 - def append( self, other ):
3262 self.exprs.append( other ) 3263 self.strRepr = None 3264 return self
3265
3266 - def leaveWhitespace( self ):
3267 """Extends C{leaveWhitespace} defined in base class, and also invokes C{leaveWhitespace} on 3268 all contained expressions.""" 3269 self.skipWhitespace = False 3270 self.exprs = [ e.copy() for e in self.exprs ] 3271 for e in self.exprs: 3272 e.leaveWhitespace() 3273 return self
3274
3275 - def ignore( self, other ):
3276 if isinstance( other, Suppress ): 3277 if other not in self.ignoreExprs: 3278 super( ParseExpression, self).ignore( other ) 3279 for e in self.exprs: 3280 e.ignore( self.ignoreExprs[-1] ) 3281 else: 3282 super( ParseExpression, self).ignore( other ) 3283 for e in self.exprs: 3284 e.ignore( self.ignoreExprs[-1] ) 3285 return self
3286
3287 - def __str__( self ):
3288 try: 3289 return super(ParseExpression,self).__str__() 3290 except Exception: 3291 pass 3292 3293 if self.strRepr is None: 3294 self.strRepr = "%s:(%s)" % ( self.__class__.__name__, _ustr(self.exprs) ) 3295 return self.strRepr
3296
3297 - def streamline( self ):
3298 super(ParseExpression,self).streamline() 3299 3300 for e in self.exprs: 3301 e.streamline() 3302 3303 # collapse nested And's of the form And( And( And( a,b), c), d) to And( a,b,c,d ) 3304 # but only if there are no parse actions or resultsNames on the nested And's 3305 # (likewise for Or's and MatchFirst's) 3306 if ( len(self.exprs) == 2 ): 3307 other = self.exprs[0] 3308 if ( isinstance( other, self.__class__ ) and 3309 not(other.parseAction) and 3310 other.resultsName is None and 3311 not other.debug ): 3312 self.exprs = other.exprs[:] + [ self.exprs[1] ] 3313 self.strRepr = None 3314 self.mayReturnEmpty |= other.mayReturnEmpty 3315 self.mayIndexError |= other.mayIndexError 3316 3317 other = self.exprs[-1] 3318 if ( isinstance( other, self.__class__ ) and 3319 not(other.parseAction) and 3320 other.resultsName is None and 3321 not other.debug ): 3322 self.exprs = self.exprs[:-1] + other.exprs[:] 3323 self.strRepr = None 3324 self.mayReturnEmpty |= other.mayReturnEmpty 3325 self.mayIndexError |= other.mayIndexError 3326 3327 self.errmsg = "Expected " + _ustr(self) 3328 3329 return self
3330
3331 - def setResultsName( self, name, listAllMatches=False ):
3332 ret = super(ParseExpression,self).setResultsName(name,listAllMatches) 3333 return ret
3334
3335 - def validate( self, validateTrace=[] ):
3336 tmp = validateTrace[:]+[self] 3337 for e in self.exprs: 3338 e.validate(tmp) 3339 self.checkRecursion( [] )
3340
3341 - def copy(self):
3342 ret = super(ParseExpression,self).copy() 3343 ret.exprs = [e.copy() for e in self.exprs] 3344 return ret
3345
3346 -class And(ParseExpression):
3347 """ 3348 Requires all given C{ParseExpression}s to be found in the given order. 3349 Expressions may be separated by whitespace. 3350 May be constructed using the C{'+'} operator. 3351 May also be constructed using the C{'-'} operator, which will suppress backtracking. 3352 3353 Example:: 3354 integer = Word(nums) 3355 name_expr = OneOrMore(Word(alphas)) 3356 3357 expr = And([integer("id"),name_expr("name"),integer("age")]) 3358 # more easily written as: 3359 expr = integer("id") + name_expr("name") + integer("age") 3360 """ 3361
3362 - class _ErrorStop(Empty):
3363 - def __init__(self, *args, **kwargs):
3364 super(And._ErrorStop,self).__init__(*args, **kwargs) 3365 self.name = '-' 3366 self.leaveWhitespace()
3367
3368 - def __init__( self, exprs, savelist = True ):
3369 super(And,self).__init__(exprs, savelist) 3370 self.mayReturnEmpty = all(e.mayReturnEmpty for e in self.exprs) 3371 self.setWhitespaceChars( self.exprs[0].whiteChars ) 3372 self.skipWhitespace = self.exprs[0].skipWhitespace 3373 self.callPreparse = True
3374
3375 - def parseImpl( self, instring, loc, doActions=True ):
3376 # pass False as last arg to _parse for first element, since we already 3377 # pre-parsed the string as part of our And pre-parsing 3378 loc, resultlist = self.exprs[0]._parse( instring, loc, doActions, callPreParse=False ) 3379 errorStop = False 3380 for e in self.exprs[1:]: 3381 if isinstance(e, And._ErrorStop): 3382 errorStop = True 3383 continue 3384 if errorStop: 3385 try: 3386 loc, exprtokens = e._parse( instring, loc, doActions ) 3387 except ParseSyntaxException: 3388 raise 3389 except ParseBaseException as pe: 3390 pe.__traceback__ = None 3391 raise ParseSyntaxException._from_exception(pe) 3392 except IndexError: 3393 raise ParseSyntaxException(instring, len(instring), self.errmsg, self) 3394 else: 3395 loc, exprtokens = e._parse( instring, loc, doActions ) 3396 if exprtokens or exprtokens.haskeys(): 3397 resultlist += exprtokens 3398 return loc, resultlist
3399
3400 - def __iadd__(self, other ):
3401 if isinstance( other, basestring ): 3402 other = ParserElement._literalStringClass( other ) 3403 return self.append( other ) #And( [ self, other ] )
3404
3405 - def checkRecursion( self, parseElementList ):
3406 subRecCheckList = parseElementList[:] + [ self ] 3407 for e in self.exprs: 3408 e.checkRecursion( subRecCheckList ) 3409 if not e.mayReturnEmpty: 3410 break
3411
3412 - def __str__( self ):
3413 if hasattr(self,"name"): 3414 return self.name 3415 3416 if self.strRepr is None: 3417 self.strRepr = "{" + " ".join(_ustr(e) for e in self.exprs) + "}" 3418 3419 return self.strRepr
3420
3421 3422 -class Or(ParseExpression):
3423 """ 3424 Requires that at least one C{ParseExpression} is found. 3425 If two expressions match, the expression that matches the longest string will be used. 3426 May be constructed using the C{'^'} operator. 3427 3428 Example:: 3429 # construct Or using '^' operator 3430 3431 number = Word(nums) ^ Combine(Word(nums) + '.' + Word(nums)) 3432 print(number.searchString("123 3.1416 789")) 3433 prints:: 3434 [['123'], ['3.1416'], ['789']] 3435 """
3436 - def __init__( self, exprs, savelist = False ):
3437 super(Or,self).__init__(exprs, savelist) 3438 if self.exprs: 3439 self.mayReturnEmpty = any(e.mayReturnEmpty for e in self.exprs) 3440 else: 3441 self.mayReturnEmpty = True
3442
3443 - def parseImpl( self, instring, loc, doActions=True ):
3444 maxExcLoc = -1 3445 maxException = None 3446 matches = [] 3447 for e in self.exprs: 3448 try: 3449 loc2 = e.tryParse( instring, loc ) 3450 except ParseException as err: 3451 err.__traceback__ = None 3452 if err.loc > maxExcLoc: 3453 maxException = err 3454 maxExcLoc = err.loc 3455 except IndexError: 3456 if len(instring) > maxExcLoc: 3457 maxException = ParseException(instring,len(instring),e.errmsg,self) 3458 maxExcLoc = len(instring) 3459 else: 3460 # save match among all matches, to retry longest to shortest 3461 matches.append((loc2, e)) 3462 3463 if matches: 3464 matches.sort(key=lambda x: -x[0]) 3465 for _,e in matches: 3466 try: 3467 return e._parse( instring, loc, doActions ) 3468 except ParseException as err: 3469 err.__traceback__ = None 3470 if err.loc > maxExcLoc: 3471 maxException = err 3472 maxExcLoc = err.loc 3473 3474 if maxException is not None: 3475 maxException.msg = self.errmsg 3476 raise maxException 3477 else: 3478 raise ParseException(instring, loc, "no defined alternatives to match", self)
3479 3480
3481 - def __ixor__(self, other ):
3482 if isinstance( other, basestring ): 3483 other = ParserElement._literalStringClass( other ) 3484 return self.append( other ) #Or( [ self, other ] )
3485
3486 - def __str__( self ):
3487 if hasattr(self,"name"): 3488 return self.name 3489 3490 if self.strRepr is None: 3491 self.strRepr = "{" + " ^ ".join(_ustr(e) for e in self.exprs) + "}" 3492 3493 return self.strRepr
3494
3495 - def checkRecursion( self, parseElementList ):
3496 subRecCheckList = parseElementList[:] + [ self ] 3497 for e in self.exprs: 3498 e.checkRecursion( subRecCheckList )
3499
3500 3501 -class MatchFirst(ParseExpression):
3502 """ 3503 Requires that at least one C{ParseExpression} is found. 3504 If two expressions match, the first one listed is the one that will match. 3505 May be constructed using the C{'|'} operator. 3506 3507 Example:: 3508 # construct MatchFirst using '|' operator 3509 3510 # watch the order of expressions to match 3511 number = Word(nums) | Combine(Word(nums) + '.' + Word(nums)) 3512 print(number.searchString("123 3.1416 789")) # Fail! -> [['123'], ['3'], ['1416'], ['789']] 3513 3514 # put more selective expression first 3515 number = Combine(Word(nums) + '.' + Word(nums)) | Word(nums) 3516 print(number.searchString("123 3.1416 789")) # Better -> [['123'], ['3.1416'], ['789']] 3517 """
3518 - def __init__( self, exprs, savelist = False ):
3519 super(MatchFirst,self).__init__(exprs, savelist) 3520 if self.exprs: 3521 self.mayReturnEmpty = any(e.mayReturnEmpty for e in self.exprs) 3522 else: 3523 self.mayReturnEmpty = True
3524
3525 - def parseImpl( self, instring, loc, doActions=True ):
3526 maxExcLoc = -1 3527 maxException = None 3528 for e in self.exprs: 3529 try: 3530 ret = e._parse( instring, loc, doActions ) 3531 return ret 3532 except ParseException as err: 3533 if err.loc > maxExcLoc: 3534 maxException = err 3535 maxExcLoc = err.loc 3536 except IndexError: 3537 if len(instring) > maxExcLoc: 3538 maxException = ParseException(instring,len(instring),e.errmsg,self) 3539 maxExcLoc = len(instring) 3540 3541 # only got here if no expression matched, raise exception for match that made it the furthest 3542 else: 3543 if maxException is not None: 3544 maxException.msg = self.errmsg 3545 raise maxException 3546 else: 3547 raise ParseException(instring, loc, "no defined alternatives to match", self)
3548
3549 - def __ior__(self, other ):
3550 if isinstance( other, basestring ): 3551 other = ParserElement._literalStringClass( other ) 3552 return self.append( other ) #MatchFirst( [ self, other ] )
3553
3554 - def __str__( self ):
3555 if hasattr(self,"name"): 3556 return self.name 3557 3558 if self.strRepr is None: 3559 self.strRepr = "{" + " | ".join(_ustr(e) for e in self.exprs) + "}" 3560 3561 return self.strRepr
3562
3563 - def checkRecursion( self, parseElementList ):
3564 subRecCheckList = parseElementList[:] + [ self ] 3565 for e in self.exprs: 3566 e.checkRecursion( subRecCheckList )
3567
3568 3569 -class Each(ParseExpression):
3570 """ 3571 Requires all given C{ParseExpression}s to be found, but in any order. 3572 Expressions may be separated by whitespace. 3573 May be constructed using the C{'&'} operator. 3574 3575 Example:: 3576 color = oneOf("RED ORANGE YELLOW GREEN BLUE PURPLE BLACK WHITE BROWN") 3577 shape_type = oneOf("SQUARE CIRCLE TRIANGLE STAR HEXAGON OCTAGON") 3578 integer = Word(nums) 3579 shape_attr = "shape:" + shape_type("shape") 3580 posn_attr = "posn:" + Group(integer("x") + ',' + integer("y"))("posn") 3581 color_attr = "color:" + color("color") 3582 size_attr = "size:" + integer("size") 3583 3584 # use Each (using operator '&') to accept attributes in any order 3585 # (shape and posn are required, color and size are optional) 3586 shape_spec = shape_attr & posn_attr & Optional(color_attr) & Optional(size_attr) 3587 3588 shape_spec.runTests(''' 3589 shape: SQUARE color: BLACK posn: 100, 120 3590 shape: CIRCLE size: 50 color: BLUE posn: 50,80 3591 color:GREEN size:20 shape:TRIANGLE posn:20,40 3592 ''' 3593 ) 3594 prints:: 3595 shape: SQUARE color: BLACK posn: 100, 120 3596 ['shape:', 'SQUARE', 'color:', 'BLACK', 'posn:', ['100', ',', '120']] 3597 - color: BLACK 3598 - posn: ['100', ',', '120'] 3599 - x: 100 3600 - y: 120 3601 - shape: SQUARE 3602 3603 3604 shape: CIRCLE size: 50 color: BLUE posn: 50,80 3605 ['shape:', 'CIRCLE', 'size:', '50', 'color:', 'BLUE', 'posn:', ['50', ',', '80']] 3606 - color: BLUE 3607 - posn: ['50', ',', '80'] 3608 - x: 50 3609 - y: 80 3610 - shape: CIRCLE 3611 - size: 50 3612 3613 3614 color: GREEN size: 20 shape: TRIANGLE posn: 20,40 3615 ['color:', 'GREEN', 'size:', '20', 'shape:', 'TRIANGLE', 'posn:', ['20', ',', '40']] 3616 - color: GREEN 3617 - posn: ['20', ',', '40'] 3618 - x: 20 3619 - y: 40 3620 - shape: TRIANGLE 3621 - size: 20 3622 """
3623 - def __init__( self, exprs, savelist = True ):
3624 super(Each,self).__init__(exprs, savelist) 3625 self.mayReturnEmpty = all(e.mayReturnEmpty for e in self.exprs) 3626 self.skipWhitespace = True 3627 self.initExprGroups = True
3628
3629 - def parseImpl( self, instring, loc, doActions=True ):
3630 if self.initExprGroups: 3631 self.opt1map = dict((id(e.expr),e) for e in self.exprs if isinstance(e,Optional)) 3632 opt1 = [ e.expr for e in self.exprs if isinstance(e,Optional) ] 3633 opt2 = [ e for e in self.exprs if e.mayReturnEmpty and not isinstance(e,Optional)] 3634 self.optionals = opt1 + opt2 3635 self.multioptionals = [ e.expr for e in self.exprs if isinstance(e,ZeroOrMore) ] 3636 self.multirequired = [ e.expr for e in self.exprs if isinstance(e,OneOrMore) ] 3637 self.required = [ e for e in self.exprs if not isinstance(e,(Optional,ZeroOrMore,OneOrMore)) ] 3638 self.required += self.multirequired 3639 self.initExprGroups = False 3640 tmpLoc = loc 3641 tmpReqd = self.required[:] 3642 tmpOpt = self.optionals[:] 3643 matchOrder = [] 3644 3645 keepMatching = True 3646 while keepMatching: 3647 tmpExprs = tmpReqd + tmpOpt + self.multioptionals + self.multirequired 3648 failed = [] 3649 for e in tmpExprs: 3650 try: 3651 tmpLoc = e.tryParse( instring, tmpLoc ) 3652 except ParseException: 3653 failed.append(e) 3654 else: 3655 matchOrder.append(self.opt1map.get(id(e),e)) 3656 if e in tmpReqd: 3657 tmpReqd.remove(e) 3658 elif e in tmpOpt: 3659 tmpOpt.remove(e) 3660 if len(failed) == len(tmpExprs): 3661 keepMatching = False 3662 3663 if tmpReqd: 3664 missing = ", ".join(_ustr(e) for e in tmpReqd) 3665 raise ParseException(instring,loc,"Missing one or more required elements (%s)" % missing ) 3666 3667 # add any unmatched Optionals, in case they have default values defined 3668 matchOrder += [e for e in self.exprs if isinstance(e,Optional) and e.expr in tmpOpt] 3669 3670 resultlist = [] 3671 for e in matchOrder: 3672 loc,results = e._parse(instring,loc,doActions) 3673 resultlist.append(results) 3674 3675 finalResults = sum(resultlist, ParseResults([])) 3676 return loc, finalResults
3677
3678 - def __str__( self ):
3679 if hasattr(self,"name"): 3680 return self.name 3681 3682 if self.strRepr is None: 3683 self.strRepr = "{" + " & ".join(_ustr(e) for e in self.exprs) + "}" 3684 3685 return self.strRepr
3686
3687 - def checkRecursion( self, parseElementList ):
3688 subRecCheckList = parseElementList[:] + [ self ] 3689 for e in self.exprs: 3690 e.checkRecursion( subRecCheckList )
3691
3692 3693 -class ParseElementEnhance(ParserElement):
3694 """ 3695 Abstract subclass of C{ParserElement}, for combining and post-processing parsed tokens. 3696 """
3697 - def __init__( self, expr, savelist=False ):
3698 super(ParseElementEnhance,self).__init__(savelist) 3699 if isinstance( expr, basestring ): 3700 if issubclass(ParserElement._literalStringClass, Token): 3701 expr = ParserElement._literalStringClass(expr) 3702 else: 3703 expr = ParserElement._literalStringClass(Literal(expr)) 3704 self.expr = expr 3705 self.strRepr = None 3706 if expr is not None: 3707 self.mayIndexError = expr.mayIndexError 3708 self.mayReturnEmpty = expr.mayReturnEmpty 3709 self.setWhitespaceChars( expr.whiteChars ) 3710 self.skipWhitespace = expr.skipWhitespace 3711 self.saveAsList = expr.saveAsList 3712 self.callPreparse = expr.callPreparse 3713 self.ignoreExprs.extend(expr.ignoreExprs)
3714
3715 - def parseImpl( self, instring, loc, doActions=True ):
3716 if self.expr is not None: 3717 return self.expr._parse( instring, loc, doActions, callPreParse=False ) 3718 else: 3719 raise ParseException("",loc,self.errmsg,self)
3720
3721 - def leaveWhitespace( self ):
3722 self.skipWhitespace = False 3723 self.expr = self.expr.copy() 3724 if self.expr is not None: 3725 self.expr.leaveWhitespace() 3726 return self
3727
3728 - def ignore( self, other ):
3729 if isinstance( other, Suppress ): 3730 if other not in self.ignoreExprs: 3731 super( ParseElementEnhance, self).ignore( other ) 3732 if self.expr is not None: 3733 self.expr.ignore( self.ignoreExprs[-1] ) 3734 else: 3735 super( ParseElementEnhance, self).ignore( other ) 3736 if self.expr is not None: 3737 self.expr.ignore( self.ignoreExprs[-1] ) 3738 return self
3739
3740 - def streamline( self ):
3741 super(ParseElementEnhance,self).streamline() 3742 if self.expr is not None: 3743 self.expr.streamline() 3744 return self
3745
3746 - def checkRecursion( self, parseElementList ):
3747 if self in parseElementList: 3748 raise RecursiveGrammarException( parseElementList+[self] ) 3749 subRecCheckList = parseElementList[:] + [ self ] 3750 if self.expr is not None: 3751 self.expr.checkRecursion( subRecCheckList )
3752
3753 - def validate( self, validateTrace=[] ):
3754 tmp = validateTrace[:]+[self] 3755 if self.expr is not None: 3756 self.expr.validate(tmp) 3757 self.checkRecursion( [] )
3758
3759 - def __str__( self ):
3760 try: 3761 return super(ParseElementEnhance,self).__str__() 3762 except Exception: 3763 pass 3764 3765 if self.strRepr is None and self.expr is not None: 3766 self.strRepr = "%s:(%s)" % ( self.__class__.__name__, _ustr(self.expr) ) 3767 return self.strRepr
3768
3769 3770 -class FollowedBy(ParseElementEnhance):
3771 """ 3772 Lookahead matching of the given parse expression. C{FollowedBy} 3773 does I{not} advance the parsing position within the input string, it only 3774 verifies that the specified parse expression matches at the current 3775 position. C{FollowedBy} always returns a null token list. 3776 3777 Example:: 3778 # use FollowedBy to match a label only if it is followed by a ':' 3779 data_word = Word(alphas) 3780 label = data_word + FollowedBy(':') 3781 attr_expr = Group(label + Suppress(':') + OneOrMore(data_word, stopOn=label).setParseAction(' '.join)) 3782 3783 OneOrMore(attr_expr).parseString("shape: SQUARE color: BLACK posn: upper left").pprint() 3784 prints:: 3785 [['shape', 'SQUARE'], ['color', 'BLACK'], ['posn', 'upper left']] 3786 """
3787 - def __init__( self, expr ):
3788 super(FollowedBy,self).__init__(expr) 3789 self.mayReturnEmpty = True
3790
3791 - def parseImpl( self, instring, loc, doActions=True ):
3792 self.expr.tryParse( instring, loc ) 3793 return loc, []
3794
3795 3796 -class NotAny(ParseElementEnhance):
3797 """ 3798 Lookahead to disallow matching with the given parse expression. C{NotAny} 3799 does I{not} advance the parsing position within the input string, it only 3800 verifies that the specified parse expression does I{not} match at the current 3801 position. Also, C{NotAny} does I{not} skip over leading whitespace. C{NotAny} 3802 always returns a null token list. May be constructed using the '~' operator. 3803 3804 Example:: 3805 3806 """
3807 - def __init__( self, expr ):
3808 super(NotAny,self).__init__(expr) 3809 #~ self.leaveWhitespace() 3810 self.skipWhitespace = False # do NOT use self.leaveWhitespace(), don't want to propagate to exprs 3811 self.mayReturnEmpty = True 3812 self.errmsg = "Found unwanted token, "+_ustr(self.expr)
3813
3814 - def parseImpl( self, instring, loc, doActions=True ):
3815 if self.expr.canParseNext(instring, loc): 3816 raise ParseException(instring, loc, self.errmsg, self) 3817 return loc, []
3818
3819 - def __str__( self ):
3820 if hasattr(self,"name"): 3821 return self.name 3822 3823 if self.strRepr is None: 3824 self.strRepr = "~{" + _ustr(self.expr) + "}" 3825 3826 return self.strRepr
3827
3828 -class _MultipleMatch(ParseElementEnhance):
3829 - def __init__( self, expr, stopOn=None):
3830 super(_MultipleMatch, self).__init__(expr) 3831 self.saveAsList = True 3832 ender = stopOn 3833 if isinstance(ender, basestring): 3834 ender = ParserElement._literalStringClass(ender) 3835 self.not_ender = ~ender if ender is not None else None
3836
3837 - def parseImpl( self, instring, loc, doActions=True ):
3838 self_expr_parse = self.expr._parse 3839 self_skip_ignorables = self._skipIgnorables 3840 check_ender = self.not_ender is not None 3841 if check_ender: 3842 try_not_ender = self.not_ender.tryParse 3843 3844 # must be at least one (but first see if we are the stopOn sentinel; 3845 # if so, fail) 3846 if check_ender: 3847 try_not_ender(instring, loc) 3848 loc, tokens = self_expr_parse( instring, loc, doActions, callPreParse=False ) 3849 try: 3850 hasIgnoreExprs = (not not self.ignoreExprs) 3851 while 1: 3852 if check_ender: 3853 try_not_ender(instring, loc) 3854 if hasIgnoreExprs: 3855 preloc = self_skip_ignorables( instring, loc ) 3856 else: 3857 preloc = loc 3858 loc, tmptokens = self_expr_parse( instring, preloc, doActions ) 3859 if tmptokens or tmptokens.haskeys(): 3860 tokens += tmptokens 3861 except (ParseException,IndexError): 3862 pass 3863 3864 return loc, tokens
3865
3866 -class OneOrMore(_MultipleMatch):
3867 """ 3868 Repetition of one or more of the given expression. 3869 3870 Parameters: 3871 - expr - expression that must match one or more times 3872 - stopOn - (default=C{None}) - expression for a terminating sentinel 3873 (only required if the sentinel would ordinarily match the repetition 3874 expression) 3875 3876 Example:: 3877 data_word = Word(alphas) 3878 label = data_word + FollowedBy(':') 3879 attr_expr = Group(label + Suppress(':') + OneOrMore(data_word).setParseAction(' '.join)) 3880 3881 text = "shape: SQUARE posn: upper left color: BLACK" 3882 OneOrMore(attr_expr).parseString(text).pprint() # Fail! read 'color' as data instead of next label -> [['shape', 'SQUARE color']] 3883 3884 # use stopOn attribute for OneOrMore to avoid reading label string as part of the data 3885 attr_expr = Group(label + Suppress(':') + OneOrMore(data_word, stopOn=label).setParseAction(' '.join)) 3886 OneOrMore(attr_expr).parseString(text).pprint() # Better -> [['shape', 'SQUARE'], ['posn', 'upper left'], ['color', 'BLACK']] 3887 3888 # could also be written as 3889 (attr_expr * (1,)).parseString(text).pprint() 3890 """ 3891
3892 - def __str__( self ):
3893 if hasattr(self,"name"): 3894 return self.name 3895 3896 if self.strRepr is None: 3897 self.strRepr = "{" + _ustr(self.expr) + "}..." 3898 3899 return self.strRepr
3900
3901 -class ZeroOrMore(_MultipleMatch):
3902 """ 3903 Optional repetition of zero or more of the given expression. 3904 3905 Parameters: 3906 - expr - expression that must match zero or more times 3907 - stopOn - (default=C{None}) - expression for a terminating sentinel 3908 (only required if the sentinel would ordinarily match the repetition 3909 expression) 3910 3911 Example: similar to L{OneOrMore} 3912 """
3913 - def __init__( self, expr, stopOn=None):
3914 super(ZeroOrMore,self).__init__(expr, stopOn=stopOn) 3915 self.mayReturnEmpty = True
3916
3917 - def parseImpl( self, instring, loc, doActions=True ):
3918 try: 3919 return super(ZeroOrMore, self).parseImpl(instring, loc, doActions) 3920 except (ParseException,IndexError): 3921 return loc, []
3922
3923 - def __str__( self ):
3924 if hasattr(self,"name"): 3925 return self.name 3926 3927 if self.strRepr is None: 3928 self.strRepr = "[" + _ustr(self.expr) + "]..." 3929 3930 return self.strRepr
3931
3932 -class _NullToken(object):
3933 - def __bool__(self):
3934 return False
3935 __nonzero__ = __bool__
3936 - def __str__(self):
3937 return ""
3938 3939 _optionalNotMatched = _NullToken()
3940 -class Optional(ParseElementEnhance):
3941 """ 3942 Optional matching of the given expression. 3943 3944 Parameters: 3945 - expr - expression that must match zero or more times 3946 - default (optional) - value to be returned if the optional expression is not found. 3947 3948 Example:: 3949 # US postal code can be a 5-digit zip, plus optional 4-digit qualifier 3950 zip = Combine(Word(nums, exact=5) + Optional('-' + Word(nums, exact=4))) 3951 zip.runTests(''' 3952 # traditional ZIP code 3953 12345 3954 3955 # ZIP+4 form 3956 12101-0001 3957 3958 # invalid ZIP 3959 98765- 3960 ''') 3961 prints:: 3962 # traditional ZIP code 3963 12345 3964 ['12345'] 3965 3966 # ZIP+4 form 3967 12101-0001 3968 ['12101-0001'] 3969 3970 # invalid ZIP 3971 98765- 3972 ^ 3973 FAIL: Expected end of text (at char 5), (line:1, col:6) 3974 """
3975 - def __init__( self, expr, default=_optionalNotMatched ):
3976 super(Optional,self).__init__( expr, savelist=False ) 3977 self.saveAsList = self.expr.saveAsList 3978 self.defaultValue = default 3979 self.mayReturnEmpty = True
3980
3981 - def parseImpl( self, instring, loc, doActions=True ):
3982 try: 3983 loc, tokens = self.expr._parse( instring, loc, doActions, callPreParse=False ) 3984 except (ParseException,IndexError): 3985 if self.defaultValue is not _optionalNotMatched: 3986 if self.expr.resultsName: 3987 tokens = ParseResults([ self.defaultValue ]) 3988 tokens[self.expr.resultsName] = self.defaultValue 3989 else: 3990 tokens = [ self.defaultValue ] 3991 else: 3992 tokens = [] 3993 return loc, tokens
3994
3995 - def __str__( self ):
3996 if hasattr(self,"name"): 3997 return self.name 3998 3999 if self.strRepr is None: 4000 self.strRepr = "[" + _ustr(self.expr) + "]" 4001 4002 return self.strRepr
4003
4004 -class SkipTo(ParseElementEnhance):
4005 """ 4006 Token for skipping over all undefined text until the matched expression is found. 4007 4008 Parameters: 4009 - expr - target expression marking the end of the data to be skipped 4010 - include - (default=C{False}) if True, the target expression is also parsed 4011 (the skipped text and target expression are returned as a 2-element list). 4012 - ignore - (default=C{None}) used to define grammars (typically quoted strings and 4013 comments) that might contain false matches to the target expression 4014 - failOn - (default=C{None}) define expressions that are not allowed to be 4015 included in the skipped test; if found before the target expression is found, 4016 the SkipTo is not a match 4017 4018 Example:: 4019 report = ''' 4020 Outstanding Issues Report - 1 Jan 2000 4021 4022 # | Severity | Description | Days Open 4023 -----+----------+-------------------------------------------+----------- 4024 101 | Critical | Intermittent system crash | 6 4025 94 | Cosmetic | Spelling error on Login ('log|n') | 14 4026 79 | Minor | System slow when running too many reports | 47 4027 ''' 4028 integer = Word(nums) 4029 SEP = Suppress('|') 4030 # use SkipTo to simply match everything up until the next SEP 4031 # - ignore quoted strings, so that a '|' character inside a quoted string does not match 4032 # - parse action will call token.strip() for each matched token, i.e., the description body 4033 string_data = SkipTo(SEP, ignore=quotedString) 4034 string_data.setParseAction(tokenMap(str.strip)) 4035 ticket_expr = (integer("issue_num") + SEP 4036 + string_data("sev") + SEP 4037 + string_data("desc") + SEP 4038 + integer("days_open")) 4039 4040 for tkt in ticket_expr.searchString(report): 4041 print tkt.dump() 4042 prints:: 4043 ['101', 'Critical', 'Intermittent system crash', '6'] 4044 - days_open: 6 4045 - desc: Intermittent system crash 4046 - issue_num: 101 4047 - sev: Critical 4048 ['94', 'Cosmetic', "Spelling error on Login ('log|n')", '14'] 4049 - days_open: 14 4050 - desc: Spelling error on Login ('log|n') 4051 - issue_num: 94 4052 - sev: Cosmetic 4053 ['79', 'Minor', 'System slow when running too many reports', '47'] 4054 - days_open: 47 4055 - desc: System slow when running too many reports 4056 - issue_num: 79 4057 - sev: Minor 4058 """
4059 - def __init__( self, other, include=False, ignore=None, failOn=None ):
4060 super( SkipTo, self ).__init__( other ) 4061 self.ignoreExpr = ignore 4062 self.mayReturnEmpty = True 4063 self.mayIndexError = False 4064 self.includeMatch = include 4065 self.asList = False 4066 if isinstance(failOn, basestring): 4067 self.failOn = ParserElement._literalStringClass(failOn) 4068 else: 4069 self.failOn = failOn 4070 self.errmsg = "No match found for "+_ustr(self.expr)
4071
4072 - def parseImpl( self, instring, loc, doActions=True ):
4073 startloc = loc 4074 instrlen = len(instring) 4075 expr = self.expr 4076 expr_parse = self.expr._parse 4077 self_failOn_canParseNext = self.failOn.canParseNext if self.failOn is not None else None 4078 self_ignoreExpr_tryParse = self.ignoreExpr.tryParse if self.ignoreExpr is not None else None 4079 4080 tmploc = loc 4081 while tmploc <= instrlen: 4082 if self_failOn_canParseNext is not None: 4083 # break if failOn expression matches 4084 if self_failOn_canParseNext(instring, tmploc): 4085 break 4086 4087 if self_ignoreExpr_tryParse is not None: 4088 # advance past ignore expressions 4089 while 1: 4090 try: 4091 tmploc = self_ignoreExpr_tryParse(instring, tmploc) 4092 except ParseBaseException: 4093 break 4094 4095 try: 4096 expr_parse(instring, tmploc, doActions=False, callPreParse=False) 4097 except (ParseException, IndexError): 4098 # no match, advance loc in string 4099 tmploc += 1 4100 else: 4101 # matched skipto expr, done 4102 break 4103 4104 else: 4105 # ran off the end of the input string without matching skipto expr, fail 4106 raise ParseException(instring, loc, self.errmsg, self) 4107 4108 # build up return values 4109 loc = tmploc 4110 skiptext = instring[startloc:loc] 4111 skipresult = ParseResults(skiptext) 4112 4113 if self.includeMatch: 4114 loc, mat = expr_parse(instring,loc,doActions,callPreParse=False) 4115 skipresult += mat 4116 4117 return loc, skipresult
4118
4119 -class Forward(ParseElementEnhance):
4120 """ 4121 Forward declaration of an expression to be defined later - 4122 used for recursive grammars, such as algebraic infix notation. 4123 When the expression is known, it is assigned to the C{Forward} variable using the '<<' operator. 4124 4125 Note: take care when assigning to C{Forward} not to overlook precedence of operators. 4126 Specifically, '|' has a lower precedence than '<<', so that:: 4127 fwdExpr << a | b | c 4128 will actually be evaluated as:: 4129 (fwdExpr << a) | b | c 4130 thereby leaving b and c out as parseable alternatives. It is recommended that you 4131 explicitly group the values inserted into the C{Forward}:: 4132 fwdExpr << (a | b | c) 4133 Converting to use the '<<=' operator instead will avoid this problem. 4134 4135 See L{ParseResults.pprint} for an example of a recursive parser created using 4136 C{Forward}. 4137 """
4138 - def __init__( self, other=None ):
4139 super(Forward,self).__init__( other, savelist=False )
4140
4141 - def __lshift__( self, other ):
4142 if isinstance( other, basestring ): 4143 other = ParserElement._literalStringClass(other) 4144 self.expr = other 4145 self.strRepr = None 4146 self.mayIndexError = self.expr.mayIndexError 4147 self.mayReturnEmpty = self.expr.mayReturnEmpty 4148 self.setWhitespaceChars( self.expr.whiteChars ) 4149 self.skipWhitespace = self.expr.skipWhitespace 4150 self.saveAsList = self.expr.saveAsList 4151 self.ignoreExprs.extend(self.expr.ignoreExprs) 4152 return self
4153
4154 - def __ilshift__(self, other):
4155 return self << other
4156
4157 - def leaveWhitespace( self ):
4158 self.skipWhitespace = False 4159 return self
4160
4161 - def streamline( self ):
4162 if not self.streamlined: 4163 self.streamlined = True 4164 if self.expr is not None: 4165 self.expr.streamline() 4166 return self
4167
4168 - def validate( self, validateTrace=[] ):
4169 if self not in validateTrace: 4170 tmp = validateTrace[:]+[self] 4171 if self.expr is not None: 4172 self.expr.validate(tmp) 4173 self.checkRecursion([])
4174
4175 - def __str__( self ):
4176 if hasattr(self,"name"): 4177 return self.name 4178 return self.__class__.__name__ + ": ..." 4179 4180 # stubbed out for now - creates awful memory and perf issues 4181 self._revertClass = self.__class__ 4182 self.__class__ = _ForwardNoRecurse 4183 try: 4184 if self.expr is not None: 4185 retString = _ustr(self.expr) 4186 else: 4187 retString = "None" 4188 finally: 4189 self.__class__ = self._revertClass 4190 return self.__class__.__name__ + ": " + retString
4191
4192 - def copy(self):
4193 if self.expr is not None: 4194 return super(Forward,self).copy() 4195 else: 4196 ret = Forward() 4197 ret <<= self 4198 return ret
4199
4200 -class _ForwardNoRecurse(Forward):
4201 - def __str__( self ):
4202 return "..."
4203
4204 -class TokenConverter(ParseElementEnhance):
4205 """ 4206 Abstract subclass of C{ParseExpression}, for converting parsed results. 4207 """
4208 - def __init__( self, expr, savelist=False ):
4209 super(TokenConverter,self).__init__( expr )#, savelist ) 4210 self.saveAsList = False
4211
4212 -class Combine(TokenConverter):
4213 """ 4214 Converter to concatenate all matching tokens to a single string. 4215 By default, the matching patterns must also be contiguous in the input string; 4216 this can be disabled by specifying C{'adjacent=False'} in the constructor. 4217 4218 Example:: 4219 real = Word(nums) + '.' + Word(nums) 4220 print(real.parseString('3.1416')) # -> ['3', '.', '1416'] 4221 # will also erroneously match the following 4222 print(real.parseString('3. 1416')) # -> ['3', '.', '1416'] 4223 4224 real = Combine(Word(nums) + '.' + Word(nums)) 4225 print(real.parseString('3.1416')) # -> ['3.1416'] 4226 # no match when there are internal spaces 4227 print(real.parseString('3. 1416')) # -> Exception: Expected W:(0123...) 4228 """
4229 - def __init__( self, expr, joinString="", adjacent=True ):
4230 super(Combine,self).__init__( expr ) 4231 # suppress whitespace-stripping in contained parse expressions, but re-enable it on the Combine itself 4232 if adjacent: 4233 self.leaveWhitespace() 4234 self.adjacent = adjacent 4235 self.skipWhitespace = True 4236 self.joinString = joinString 4237 self.callPreparse = True
4238
4239 - def ignore( self, other ):
4240 if self.adjacent: 4241 ParserElement.ignore(self, other) 4242 else: 4243 super( Combine, self).ignore( other ) 4244 return self
4245
4246 - def postParse( self, instring, loc, tokenlist ):
4247 retToks = tokenlist.copy() 4248 del retToks[:] 4249 retToks += ParseResults([ "".join(tokenlist._asStringList(self.joinString)) ], modal=self.modalResults) 4250 4251 if self.resultsName and retToks.haskeys(): 4252 return [ retToks ] 4253 else: 4254 return retToks
4255
4256 -class Group(TokenConverter):
4257 """ 4258 Converter to return the matched tokens as a list - useful for returning tokens of C{L{ZeroOrMore}} and C{L{OneOrMore}} expressions. 4259 4260 Example:: 4261 ident = Word(alphas) 4262 num = Word(nums) 4263 term = ident | num 4264 func = ident + Optional(delimitedList(term)) 4265 print(func.parseString("fn a,b,100")) # -> ['fn', 'a', 'b', '100'] 4266 4267 func = ident + Group(Optional(delimitedList(term))) 4268 print(func.parseString("fn a,b,100")) # -> ['fn', ['a', 'b', '100']] 4269 """
4270 - def __init__( self, expr ):
4271 super(Group,self).__init__( expr ) 4272 self.saveAsList = True
4273
4274 - def postParse( self, instring, loc, tokenlist ):
4275 return [ tokenlist ]
4276
4277 -class Dict(TokenConverter):
4278 """ 4279 Converter to return a repetitive expression as a list, but also as a dictionary. 4280 Each element can also be referenced using the first token in the expression as its key. 4281 Useful for tabular report scraping when the first column can be used as a item key. 4282 4283 Example:: 4284 data_word = Word(alphas) 4285 label = data_word + FollowedBy(':') 4286 attr_expr = Group(label + Suppress(':') + OneOrMore(data_word).setParseAction(' '.join)) 4287 4288 text = "shape: SQUARE posn: upper left color: light blue texture: burlap" 4289 attr_expr = (label + Suppress(':') + OneOrMore(data_word, stopOn=label).setParseAction(' '.join)) 4290 4291 # print attributes as plain groups 4292 print(OneOrMore(attr_expr).parseString(text).dump()) 4293 4294 # instead of OneOrMore(expr), parse using Dict(OneOrMore(Group(expr))) - Dict will auto-assign names 4295 result = Dict(OneOrMore(Group(attr_expr))).parseString(text) 4296 print(result.dump()) 4297 4298 # access named fields as dict entries, or output as dict 4299 print(result['shape']) 4300 print(result.asDict()) 4301 prints:: 4302 ['shape', 'SQUARE', 'posn', 'upper left', 'color', 'light blue', 'texture', 'burlap'] 4303 4304 [['shape', 'SQUARE'], ['posn', 'upper left'], ['color', 'light blue'], ['texture', 'burlap']] 4305 - color: light blue 4306 - posn: upper left 4307 - shape: SQUARE 4308 - texture: burlap 4309 SQUARE 4310 {'color': 'light blue', 'posn': 'upper left', 'texture': 'burlap', 'shape': 'SQUARE'} 4311 See more examples at L{ParseResults} of accessing fields by results name. 4312 """
4313 - def __init__( self, expr ):
4314 super(Dict,self).__init__( expr ) 4315 self.saveAsList = True
4316
4317 - def postParse( self, instring, loc, tokenlist ):
4318 for i,tok in enumerate(tokenlist): 4319 if len(tok) == 0: 4320 continue 4321 ikey = tok[0] 4322 if isinstance(ikey,int): 4323 ikey = _ustr(tok[0]).strip() 4324 if len(tok)==1: 4325 tokenlist[ikey] = _ParseResultsWithOffset("",i) 4326 elif len(tok)==2 and not isinstance(tok[1],ParseResults): 4327 tokenlist[ikey] = _ParseResultsWithOffset(tok[1],i) 4328 else: 4329 dictvalue = tok.copy() #ParseResults(i) 4330 del dictvalue[0] 4331 if len(dictvalue)!= 1 or (isinstance(dictvalue,ParseResults) and dictvalue.haskeys()): 4332 tokenlist[ikey] = _ParseResultsWithOffset(dictvalue,i) 4333 else: 4334 tokenlist[ikey] = _ParseResultsWithOffset(dictvalue[0],i) 4335 4336 if self.resultsName: 4337 return [ tokenlist ] 4338 else: 4339 return tokenlist
4340
4341 4342 -class Suppress(TokenConverter):
4343 """ 4344 Converter for ignoring the results of a parsed expression. 4345 4346 Example:: 4347 source = "a, b, c,d" 4348 wd = Word(alphas) 4349 wd_list1 = wd + ZeroOrMore(',' + wd) 4350 print(wd_list1.parseString(source)) 4351 4352 # often, delimiters that are useful during parsing are just in the 4353 # way afterward - use Suppress to keep them out of the parsed output 4354 wd_list2 = wd + ZeroOrMore(Suppress(',') + wd) 4355 print(wd_list2.parseString(source)) 4356 prints:: 4357 ['a', ',', 'b', ',', 'c', ',', 'd'] 4358 ['a', 'b', 'c', 'd'] 4359 (See also L{delimitedList}.) 4360 """
4361 - def postParse( self, instring, loc, tokenlist ):
4362 return []
4363
4364 - def suppress( self ):
4365 return self
4366
4367 4368 -class OnlyOnce(object):
4369 """ 4370 Wrapper for parse actions, to ensure they are only called once. 4371 """
4372 - def __init__(self, methodCall):
4373 self.callable = _trim_arity(methodCall) 4374 self.called = False
4375 - def __call__(self,s,l,t):
4376 if not self.called: 4377 results = self.callable(s,l,t) 4378 self.called = True 4379 return results 4380 raise ParseException(s,l,"")
4381 - def reset(self):
4382 self.called = False
4383
4384 -def traceParseAction(f):
4385 """ 4386 Decorator for debugging parse actions. 4387 4388 When the parse action is called, this decorator will print C{">> entering I{method-name}(line:I{current_source_line}, I{parse_location}, I{matched_tokens})".} 4389 When the parse action completes, the decorator will print C{"<<"} followed by the returned value, or any exception that the parse action raised. 4390 4391 Example:: 4392 wd = Word(alphas) 4393 4394 @traceParseAction 4395 def remove_duplicate_chars(tokens): 4396 return ''.join(sorted(set(''.join(tokens))) 4397 4398 wds = OneOrMore(wd).setParseAction(remove_duplicate_chars) 4399 print(wds.parseString("slkdjs sld sldd sdlf sdljf")) 4400 prints:: 4401 >>entering remove_duplicate_chars(line: 'slkdjs sld sldd sdlf sdljf', 0, (['slkdjs', 'sld', 'sldd', 'sdlf', 'sdljf'], {})) 4402 <<leaving remove_duplicate_chars (ret: 'dfjkls') 4403 ['dfjkls'] 4404 """ 4405 f = _trim_arity(f) 4406 def z(*paArgs): 4407 thisFunc = f.__name__ 4408 s,l,t = paArgs[-3:] 4409 if len(paArgs)>3: 4410 thisFunc = paArgs[0].__class__.__name__ + '.' + thisFunc 4411 sys.stderr.write( ">>entering %s(line: '%s', %d, %r)\n" % (thisFunc,line(l,s),l,t) ) 4412 try: 4413 ret = f(*paArgs) 4414 except Exception as exc: 4415 sys.stderr.write( "<<leaving %s (exception: %s)\n" % (thisFunc,exc) ) 4416 raise 4417 sys.stderr.write( "<<leaving %s (ret: %r)\n" % (thisFunc,ret) ) 4418 return ret
4419 try: 4420 z.__name__ = f.__name__ 4421 except AttributeError: 4422 pass 4423 return z 4424
4425 # 4426 # global helpers 4427 # 4428 -def delimitedList( expr, delim=",", combine=False ):
4429 """ 4430 Helper to define a delimited list of expressions - the delimiter defaults to ','. 4431 By default, the list elements and delimiters can have intervening whitespace, and 4432 comments, but this can be overridden by passing C{combine=True} in the constructor. 4433 If C{combine} is set to C{True}, the matching tokens are returned as a single token 4434 string, with the delimiters included; otherwise, the matching tokens are returned 4435 as a list of tokens, with the delimiters suppressed. 4436 4437 Example:: 4438 delimitedList(Word(alphas)).parseString("aa,bb,cc") # -> ['aa', 'bb', 'cc'] 4439 delimitedList(Word(hexnums), delim=':', combine=True).parseString("AA:BB:CC:DD:EE") # -> ['AA:BB:CC:DD:EE'] 4440 """ 4441 dlName = _ustr(expr)+" ["+_ustr(delim)+" "+_ustr(expr)+"]..." 4442 if combine: 4443 return Combine( expr + ZeroOrMore( delim + expr ) ).setName(dlName) 4444 else: 4445 return ( expr + ZeroOrMore( Suppress( delim ) + expr ) ).setName(dlName)
4446
4447 -def countedArray( expr, intExpr=None ):
4448 """ 4449 Helper to define a counted list of expressions. 4450 This helper defines a pattern of the form:: 4451 integer expr expr expr... 4452 where the leading integer tells how many expr expressions follow. 4453 The matched tokens returns the array of expr tokens as a list - the leading count token is suppressed. 4454 4455 If C{intExpr} is specified, it should be a pyparsing expression that produces an integer value. 4456 4457 Example:: 4458 countedArray(Word(alphas)).parseString('2 ab cd ef') # -> ['ab', 'cd'] 4459 4460 # in this parser, the leading integer value is given in binary, 4461 # '10' indicating that 2 values are in the array 4462 binaryConstant = Word('01').setParseAction(lambda t: int(t[0], 2)) 4463 countedArray(Word(alphas), intExpr=binaryConstant).parseString('10 ab cd ef') # -> ['ab', 'cd'] 4464 """ 4465 arrayExpr = Forward() 4466 def countFieldParseAction(s,l,t): 4467 n = t[0] 4468 arrayExpr << (n and Group(And([expr]*n)) or Group(empty)) 4469 return []
4470 if intExpr is None: 4471 intExpr = Word(nums).setParseAction(lambda t:int(t[0])) 4472 else: 4473 intExpr = intExpr.copy() 4474 intExpr.setName("arrayLen") 4475 intExpr.addParseAction(countFieldParseAction, callDuringTry=True) 4476 return ( intExpr + arrayExpr ).setName('(len) ' + _ustr(expr) + '...') 4477
4478 -def _flatten(L):
4479 ret = [] 4480 for i in L: 4481 if isinstance(i,list): 4482 ret.extend(_flatten(i)) 4483 else: 4484 ret.append(i) 4485 return ret
4486
4487 -def matchPreviousLiteral(expr):
4488 """ 4489 Helper to define an expression that is indirectly defined from 4490 the tokens matched in a previous expression, that is, it looks 4491 for a 'repeat' of a previous expression. For example:: 4492 first = Word(nums) 4493 second = matchPreviousLiteral(first) 4494 matchExpr = first + ":" + second 4495 will match C{"1:1"}, but not C{"1:2"}. Because this matches a 4496 previous literal, will also match the leading C{"1:1"} in C{"1:10"}. 4497 If this is not desired, use C{matchPreviousExpr}. 4498 Do I{not} use with packrat parsing enabled. 4499 """ 4500 rep = Forward() 4501 def copyTokenToRepeater(s,l,t): 4502 if t: 4503 if len(t) == 1: 4504 rep << t[0] 4505 else: 4506 # flatten t tokens 4507 tflat = _flatten(t.asList()) 4508 rep << And(Literal(tt) for tt in tflat) 4509 else: 4510 rep << Empty()
4511 expr.addParseAction(copyTokenToRepeater, callDuringTry=True) 4512 rep.setName('(prev) ' + _ustr(expr)) 4513 return rep 4514
4515 -def matchPreviousExpr(expr):
4516 """ 4517 Helper to define an expression that is indirectly defined from 4518 the tokens matched in a previous expression, that is, it looks 4519 for a 'repeat' of a previous expression. For example:: 4520 first = Word(nums) 4521 second = matchPreviousExpr(first) 4522 matchExpr = first + ":" + second 4523 will match C{"1:1"}, but not C{"1:2"}. Because this matches by 4524 expressions, will I{not} match the leading C{"1:1"} in C{"1:10"}; 4525 the expressions are evaluated first, and then compared, so 4526 C{"1"} is compared with C{"10"}. 4527 Do I{not} use with packrat parsing enabled. 4528 """ 4529 rep = Forward() 4530 e2 = expr.copy() 4531 rep <<= e2 4532 def copyTokenToRepeater(s,l,t): 4533 matchTokens = _flatten(t.asList()) 4534 def mustMatchTheseTokens(s,l,t): 4535 theseTokens = _flatten(t.asList()) 4536 if theseTokens != matchTokens: 4537 raise ParseException("",0,"")
4538 rep.setParseAction( mustMatchTheseTokens, callDuringTry=True ) 4539 expr.addParseAction(copyTokenToRepeater, callDuringTry=True) 4540 rep.setName('(prev) ' + _ustr(expr)) 4541 return rep 4542
4544 #~ escape these chars: ^-] 4545 for c in r"\^-]": 4546 s = s.replace(c,_bslash+c) 4547 s = s.replace("\n",r"\n") 4548 s = s.replace("\t",r"\t") 4549 return _ustr(s)
4550
4551 -def oneOf( strs, caseless=False, useRegex=True ):
4552 """ 4553 Helper to quickly define a set of alternative Literals, and makes sure to do 4554 longest-first testing when there is a conflict, regardless of the input order, 4555 but returns a C{L{MatchFirst}} for best performance. 4556 4557 Parameters: 4558 - strs - a string of space-delimited literals, or a collection of string literals 4559 - caseless - (default=C{False}) - treat all literals as caseless 4560 - useRegex - (default=C{True}) - as an optimization, will generate a Regex 4561 object; otherwise, will generate a C{MatchFirst} object (if C{caseless=True}, or 4562 if creating a C{Regex} raises an exception) 4563 4564 Example:: 4565 comp_oper = oneOf("< = > <= >= !=") 4566 var = Word(alphas) 4567 number = Word(nums) 4568 term = var | number 4569 comparison_expr = term + comp_oper + term 4570 print(comparison_expr.searchString("B = 12 AA=23 B<=AA AA>12")) 4571 prints:: 4572 [['B', '=', '12'], ['AA', '=', '23'], ['B', '<=', 'AA'], ['AA', '>', '12']] 4573 """ 4574 if caseless: 4575 isequal = ( lambda a,b: a.upper() == b.upper() ) 4576 masks = ( lambda a,b: b.upper().startswith(a.upper()) ) 4577 parseElementClass = CaselessLiteral 4578 else: 4579 isequal = ( lambda a,b: a == b ) 4580 masks = ( lambda a,b: b.startswith(a) ) 4581 parseElementClass = Literal 4582 4583 symbols = [] 4584 if isinstance(strs,basestring): 4585 symbols = strs.split() 4586 elif isinstance(strs, collections.Iterable): 4587 symbols = list(strs) 4588 else: 4589 warnings.warn("Invalid argument to oneOf, expected string or iterable", 4590 SyntaxWarning, stacklevel=2) 4591 if not symbols: 4592 return NoMatch() 4593 4594 i = 0 4595 while i < len(symbols)-1: 4596 cur = symbols[i] 4597 for j,other in enumerate(symbols[i+1:]): 4598 if ( isequal(other, cur) ): 4599 del symbols[i+j+1] 4600 break 4601 elif ( masks(cur, other) ): 4602 del symbols[i+j+1] 4603 symbols.insert(i,other) 4604 cur = other 4605 break 4606 else: 4607 i += 1 4608 4609 if not caseless and useRegex: 4610 #~ print (strs,"->", "|".join( [ _escapeRegexChars(sym) for sym in symbols] )) 4611 try: 4612 if len(symbols)==len("".join(symbols)): 4613 return Regex( "[%s]" % "".join(_escapeRegexRangeChars(sym) for sym in symbols) ).setName(' | '.join(symbols)) 4614 else: 4615 return Regex( "|".join(re.escape(sym) for sym in symbols) ).setName(' | '.join(symbols)) 4616 except Exception: 4617 warnings.warn("Exception creating Regex for oneOf, building MatchFirst", 4618 SyntaxWarning, stacklevel=2) 4619 4620 4621 # last resort, just use MatchFirst 4622 return MatchFirst(parseElementClass(sym) for sym in symbols).setName(' | '.join(symbols))
4623
4624 -def dictOf( key, value ):
4625 """ 4626 Helper to easily and clearly define a dictionary by specifying the respective patterns 4627 for the key and value. Takes care of defining the C{L{Dict}}, C{L{ZeroOrMore}}, and C{L{Group}} tokens 4628 in the proper order. The key pattern can include delimiting markers or punctuation, 4629 as long as they are suppressed, thereby leaving the significant key text. The value 4630 pattern can include named results, so that the C{Dict} results can include named token 4631 fields. 4632 4633 Example:: 4634 text = "shape: SQUARE posn: upper left color: light blue texture: burlap" 4635 attr_expr = (label + Suppress(':') + OneOrMore(data_word, stopOn=label).setParseAction(' '.join)) 4636 print(OneOrMore(attr_expr).parseString(text).dump()) 4637 4638 attr_label = label 4639 attr_value = Suppress(':') + OneOrMore(data_word, stopOn=label).setParseAction(' '.join) 4640 4641 # similar to Dict, but simpler call format 4642 result = dictOf(attr_label, attr_value).parseString(text) 4643 print(result.dump()) 4644 print(result['shape']) 4645 print(result.shape) # object attribute access works too 4646 print(result.asDict()) 4647 prints:: 4648 [['shape', 'SQUARE'], ['posn', 'upper left'], ['color', 'light blue'], ['texture', 'burlap']] 4649 - color: light blue 4650 - posn: upper left 4651 - shape: SQUARE 4652 - texture: burlap 4653 SQUARE 4654 SQUARE 4655 {'color': 'light blue', 'shape': 'SQUARE', 'posn': 'upper left', 'texture': 'burlap'} 4656 """ 4657 return Dict( ZeroOrMore( Group ( key + value ) ) )
4658
4659 -def originalTextFor(expr, asString=True):
4660 """ 4661 Helper to return the original, untokenized text for a given expression. Useful to 4662 restore the parsed fields of an HTML start tag into the raw tag text itself, or to 4663 revert separate tokens with intervening whitespace back to the original matching 4664 input text. By default, returns astring containing the original parsed text. 4665 4666 If the optional C{asString} argument is passed as C{False}, then the return value is a 4667 C{L{ParseResults}} containing any results names that were originally matched, and a 4668 single token containing the original matched text from the input string. So if 4669 the expression passed to C{L{originalTextFor}} contains expressions with defined 4670 results names, you must set C{asString} to C{False} if you want to preserve those 4671 results name values. 4672 4673 Example:: 4674 src = "this is test <b> bold <i>text</i> </b> normal text " 4675 for tag in ("b","i"): 4676 opener,closer = makeHTMLTags(tag) 4677 patt = originalTextFor(opener + SkipTo(closer) + closer) 4678 print(patt.searchString(src)[0]) 4679 prints:: 4680 ['<b> bold <i>text</i> </b>'] 4681 ['<i>text</i>'] 4682 """ 4683 locMarker = Empty().setParseAction(lambda s,loc,t: loc) 4684 endlocMarker = locMarker.copy() 4685 endlocMarker.callPreparse = False 4686 matchExpr = locMarker("_original_start") + expr + endlocMarker("_original_end") 4687 if asString: 4688 extractText = lambda s,l,t: s[t._original_start:t._original_end] 4689 else: 4690 def extractText(s,l,t): 4691 t[:] = [s[t.pop('_original_start'):t.pop('_original_end')]]
4692 matchExpr.setParseAction(extractText) 4693 matchExpr.ignoreExprs = expr.ignoreExprs 4694 return matchExpr 4695
4696 -def ungroup(expr):
4697 """ 4698 Helper to undo pyparsing's default grouping of And expressions, even 4699 if all but one are non-empty. 4700 """ 4701 return TokenConverter(expr).setParseAction(lambda t:t[0]) 4702
4703 -def locatedExpr(expr):
4704 """ 4705 Helper to decorate a returned token with its starting and ending locations in the input string. 4706 This helper adds the following results names: 4707 - locn_start = location where matched expression begins 4708 - locn_end = location where matched expression ends 4709 - value = the actual parsed results 4710 4711 Be careful if the input text contains C{<TAB>} characters, you may want to call 4712 C{L{ParserElement.parseWithTabs}} 4713 4714 Example:: 4715 wd = Word(alphas) 4716 for match in locatedExpr(wd).searchString("ljsdf123lksdjjf123lkkjj1222"): 4717 print(match) 4718 prints:: 4719 [[0, 'ljsdf', 5]] 4720 [[8, 'lksdjjf', 15]] 4721 [[18, 'lkkjj', 23]] 4722 """ 4723 locator = Empty().setParseAction(lambda s,l,t: l) 4724 return Group(locator("locn_start") + expr("value") + locator.copy().leaveWhitespace()("locn_end"))
4725 4726 4727 # convenience constants for positional expressions 4728 empty = Empty().setName("empty") 4729 lineStart = LineStart().setName("lineStart") 4730 lineEnd = LineEnd().setName("lineEnd") 4731 stringStart = StringStart().setName("stringStart") 4732 stringEnd = StringEnd().setName("stringEnd") 4733 4734 _escapedPunc = Word( _bslash, r"\[]-*.$+^?()~ ", exact=2 ).setParseAction(lambda s,l,t:t[0][1]) 4735 _escapedHexChar = Regex(r"\\0?[xX][0-9a-fA-F]+").setParseAction(lambda s,l,t:unichr(int(t[0].lstrip(r'\0x'),16))) 4736 _escapedOctChar = Regex(r"\\0[0-7]+").setParseAction(lambda s,l,t:unichr(int(t[0][1:],8))) 4737 _singleChar = _escapedPunc | _escapedHexChar | _escapedOctChar | Word(printables, excludeChars=r'\]', exact=1) | Regex(r"\w", re.UNICODE) 4738 _charRange = Group(_singleChar + Suppress("-") + _singleChar) 4739 _reBracketExpr = Literal("[") + Optional("^").setResultsName("negate") + Group( OneOrMore( _charRange | _singleChar ) ).setResultsName("body") + "]"
4740 4741 -def srange(s):
4742 r""" 4743 Helper to easily define string ranges for use in Word construction. Borrows 4744 syntax from regexp '[]' string range definitions:: 4745 srange("[0-9]") -> "0123456789" 4746 srange("[a-z]") -> "abcdefghijklmnopqrstuvwxyz" 4747 srange("[a-z$_]") -> "abcdefghijklmnopqrstuvwxyz$_" 4748 The input string must be enclosed in []'s, and the returned string is the expanded 4749 character set joined into a single string. 4750 The values enclosed in the []'s may be: 4751 - a single character 4752 - an escaped character with a leading backslash (such as C{\-} or C{\]}) 4753 - an escaped hex character with a leading C{'\x'} (C{\x21}, which is a C{'!'} character) 4754 (C{\0x##} is also supported for backwards compatibility) 4755 - an escaped octal character with a leading C{'\0'} (C{\041}, which is a C{'!'} character) 4756 - a range of any of the above, separated by a dash (C{'a-z'}, etc.) 4757 - any combination of the above (C{'aeiouy'}, C{'a-zA-Z0-9_$'}, etc.) 4758 """ 4759 _expanded = lambda p: p if not isinstance(p,ParseResults) else ''.join(unichr(c) for c in range(ord(p[0]),ord(p[1])+1)) 4760 try: 4761 return "".join(_expanded(part) for part in _reBracketExpr.parseString(s).body) 4762 except Exception: 4763 return ""
4764
4765 -def matchOnlyAtCol(n):
4766 """ 4767 Helper method for defining parse actions that require matching at a specific 4768 column in the input text. 4769 """ 4770 def verifyCol(strg,locn,toks): 4771 if col(locn,strg) != n: 4772 raise ParseException(strg,locn,"matched token not at column %d" % n)
4773 return verifyCol 4774
4775 -def replaceWith(replStr):
4776 """ 4777 Helper method for common parse actions that simply return a literal value. Especially 4778 useful when used with C{L{transformString<ParserElement.transformString>}()}. 4779 4780 Example:: 4781 num = Word(nums).setParseAction(lambda toks: int(toks[0])) 4782 na = oneOf("N/A NA").setParseAction(replaceWith(math.nan)) 4783 term = na | num 4784 4785 OneOrMore(term).parseString("324 234 N/A 234") # -> [324, 234, nan, 234] 4786 """ 4787 return lambda s,l,t: [replStr]
4788
4789 -def removeQuotes(s,l,t):
4790 """ 4791 Helper parse action for removing quotation marks from parsed quoted strings. 4792 4793 Example:: 4794 # by default, quotation marks are included in parsed results 4795 quotedString.parseString("'Now is the Winter of our Discontent'") # -> ["'Now is the Winter of our Discontent'"] 4796 4797 # use removeQuotes to strip quotation marks from parsed results 4798 quotedString.setParseAction(removeQuotes) 4799 quotedString.parseString("'Now is the Winter of our Discontent'") # -> ["Now is the Winter of our Discontent"] 4800 """ 4801 return t[0][1:-1]
4802
4803 -def tokenMap(func, *args):
4804 """ 4805 Helper to define a parse action by mapping a function to all elements of a ParseResults list.If any additional 4806 args are passed, they are forwarded to the given function as additional arguments after 4807 the token, as in C{hex_integer = Word(hexnums).setParseAction(tokenMap(int, 16))}, which will convert the 4808 parsed data to an integer using base 16. 4809 4810 Example (compare the last to example in L{ParserElement.transformString}:: 4811 hex_ints = OneOrMore(Word(hexnums)).setParseAction(tokenMap(int, 16)) 4812 hex_ints.runTests(''' 4813 00 11 22 aa FF 0a 0d 1a 4814 ''') 4815 4816 upperword = Word(alphas).setParseAction(tokenMap(str.upper)) 4817 OneOrMore(upperword).runTests(''' 4818 my kingdom for a horse 4819 ''') 4820 4821 wd = Word(alphas).setParseAction(tokenMap(str.title)) 4822 OneOrMore(wd).setParseAction(' '.join).runTests(''' 4823 now is the winter of our discontent made glorious summer by this sun of york 4824 ''') 4825 prints:: 4826 00 11 22 aa FF 0a 0d 1a 4827 [0, 17, 34, 170, 255, 10, 13, 26] 4828 4829 my kingdom for a horse 4830 ['MY', 'KINGDOM', 'FOR', 'A', 'HORSE'] 4831 4832 now is the winter of our discontent made glorious summer by this sun of york 4833 ['Now Is The Winter Of Our Discontent Made Glorious Summer By This Sun Of York'] 4834 """ 4835 def pa(s,l,t): 4836 return [func(tokn, *args) for tokn in t]
4837 4838 try: 4839 func_name = getattr(func, '__name__', 4840 getattr(func, '__class__').__name__) 4841 except Exception: 4842 func_name = str(func) 4843 pa.__name__ = func_name 4844 4845 return pa 4846 4847 upcaseTokens = tokenMap(lambda t: _ustr(t).upper()) 4848 """(Deprecated) Helper parse action to convert tokens to upper case. Deprecated in favor of L{pyparsing_common.upcaseTokens}""" 4849 4850 downcaseTokens = tokenMap(lambda t: _ustr(t).lower()) 4851 """(Deprecated) Helper parse action to convert tokens to lower case. Deprecated in favor of L{pyparsing_common.downcaseTokens}"""
4852 4853 -def _makeTags(tagStr, xml):
4854 """Internal helper to construct opening and closing tag expressions, given a tag name""" 4855 if isinstance(tagStr,basestring): 4856 resname = tagStr 4857 tagStr = Keyword(tagStr, caseless=not xml) 4858 else: 4859 resname = tagStr.name 4860 4861 tagAttrName = Word(alphas,alphanums+"_-:") 4862 if (xml): 4863 tagAttrValue = dblQuotedString.copy().setParseAction( removeQuotes ) 4864 openTag = Suppress("<") + tagStr("tag") + \ 4865 Dict(ZeroOrMore(Group( tagAttrName + Suppress("=") + tagAttrValue ))) + \ 4866 Optional("/",default=[False]).setResultsName("empty").setParseAction(lambda s,l,t:t[0]=='/') + Suppress(">") 4867 else: 4868 printablesLessRAbrack = "".join(c for c in printables if c not in ">") 4869 tagAttrValue = quotedString.copy().setParseAction( removeQuotes ) | Word(printablesLessRAbrack) 4870 openTag = Suppress("<") + tagStr("tag") + \ 4871 Dict(ZeroOrMore(Group( tagAttrName.setParseAction(downcaseTokens) + \ 4872 Optional( Suppress("=") + tagAttrValue ) ))) + \ 4873 Optional("/",default=[False]).setResultsName("empty").setParseAction(lambda s,l,t:t[0]=='/') + Suppress(">") 4874 closeTag = Combine(_L("</") + tagStr + ">") 4875 4876 openTag = openTag.setResultsName("start"+"".join(resname.replace(":"," ").title().split())).setName("<%s>" % resname) 4877 closeTag = closeTag.setResultsName("end"+"".join(resname.replace(":"," ").title().split())).setName("</%s>" % resname) 4878 openTag.tag = resname 4879 closeTag.tag = resname 4880 return openTag, closeTag
4881
4882 -def makeHTMLTags(tagStr):
4883 """ 4884 Helper to construct opening and closing tag expressions for HTML, given a tag name. Matches 4885 tags in either upper or lower case, attributes with namespaces and with quoted or unquoted values. 4886 4887 Example:: 4888 text = '<td>More info at the <a href="http://pyparsing.wikispaces.com">pyparsing</a> wiki page</td>' 4889 # makeHTMLTags returns pyparsing expressions for the opening and closing tags as a 2-tuple 4890 a,a_end = makeHTMLTags("A") 4891 link_expr = a + SkipTo(a_end)("link_text") + a_end 4892 4893 for link in link_expr.searchString(text): 4894 # attributes in the <A> tag (like "href" shown here) are also accessible as named results 4895 print(link.link_text, '->', link.href) 4896 prints:: 4897 pyparsing -> http://pyparsing.wikispaces.com 4898 """ 4899 return _makeTags( tagStr, False )
4900
4901 -def makeXMLTags(tagStr):
4902 """ 4903 Helper to construct opening and closing tag expressions for XML, given a tag name. Matches 4904 tags only in the given upper/lower case. 4905 4906 Example: similar to L{makeHTMLTags} 4907 """ 4908 return _makeTags( tagStr, True )
4909
4910 -def withAttribute(*args,**attrDict):
4911 """ 4912 Helper to create a validating parse action to be used with start tags created 4913 with C{L{makeXMLTags}} or C{L{makeHTMLTags}}. Use C{withAttribute} to qualify a starting tag 4914 with a required attribute value, to avoid false matches on common tags such as 4915 C{<TD>} or C{<DIV>}. 4916 4917 Call C{withAttribute} with a series of attribute names and values. Specify the list 4918 of filter attributes names and values as: 4919 - keyword arguments, as in C{(align="right")}, or 4920 - as an explicit dict with C{**} operator, when an attribute name is also a Python 4921 reserved word, as in C{**{"class":"Customer", "align":"right"}} 4922 - a list of name-value tuples, as in ( ("ns1:class", "Customer"), ("ns2:align","right") ) 4923 For attribute names with a namespace prefix, you must use the second form. Attribute 4924 names are matched insensitive to upper/lower case. 4925 4926 If just testing for C{class} (with or without a namespace), use C{L{withClass}}. 4927 4928 To verify that the attribute exists, but without specifying a value, pass 4929 C{withAttribute.ANY_VALUE} as the value. 4930 4931 Example:: 4932 html = ''' 4933 <div> 4934 Some text 4935 <div type="grid">1 4 0 1 0</div> 4936 <div type="graph">1,3 2,3 1,1</div> 4937 <div>this has no type</div> 4938 </div> 4939 4940 ''' 4941 div,div_end = makeHTMLTags("div") 4942 4943 # only match div tag having a type attribute with value "grid" 4944 div_grid = div().setParseAction(withAttribute(type="grid")) 4945 grid_expr = div_grid + SkipTo(div | div_end)("body") 4946 for grid_header in grid_expr.searchString(html): 4947 print(grid_header.body) 4948 4949 # construct a match with any div tag having a type attribute, regardless of the value 4950 div_any_type = div().setParseAction(withAttribute(type=withAttribute.ANY_VALUE)) 4951 div_expr = div_any_type + SkipTo(div | div_end)("body") 4952 for div_header in div_expr.searchString(html): 4953 print(div_header.body) 4954 prints:: 4955 1 4 0 1 0 4956 4957 1 4 0 1 0 4958 1,3 2,3 1,1 4959 """ 4960 if args: 4961 attrs = args[:] 4962 else: 4963 attrs = attrDict.items() 4964 attrs = [(k,v) for k,v in attrs] 4965 def pa(s,l,tokens): 4966 for attrName,attrValue in attrs: 4967 if attrName not in tokens: 4968 raise ParseException(s,l,"no matching attribute " + attrName) 4969 if attrValue != withAttribute.ANY_VALUE and tokens[attrName] != attrValue: 4970 raise ParseException(s,l,"attribute '%s' has value '%s', must be '%s'" % 4971 (attrName, tokens[attrName], attrValue))
4972 return pa 4973 withAttribute.ANY_VALUE = object()
4974 4975 -def withClass(classname, namespace=''):
4976 """ 4977 Simplified version of C{L{withAttribute}} when matching on a div class - made 4978 difficult because C{class} is a reserved word in Python. 4979 4980 Example:: 4981 html = ''' 4982 <div> 4983 Some text 4984 <div class="grid">1 4 0 1 0</div> 4985 <div class="graph">1,3 2,3 1,1</div> 4986 <div>this &lt;div&gt; has no class</div> 4987 </div> 4988 4989 ''' 4990 div,div_end = makeHTMLTags("div") 4991 div_grid = div().setParseAction(withClass("grid")) 4992 4993 grid_expr = div_grid + SkipTo(div | div_end)("body") 4994 for grid_header in grid_expr.searchString(html): 4995 print(grid_header.body) 4996 4997 div_any_type = div().setParseAction(withClass(withAttribute.ANY_VALUE)) 4998 div_expr = div_any_type + SkipTo(div | div_end)("body") 4999 for div_header in div_expr.searchString(html): 5000 print(div_header.body) 5001 prints:: 5002 1 4 0 1 0 5003 5004 1 4 0 1 0 5005 1,3 2,3 1,1 5006 """ 5007 classattr = "%s:class" % namespace if namespace else "class" 5008 return withAttribute(**{classattr : classname})
5009 5010 opAssoc = _Constants() 5011 opAssoc.LEFT = object() 5012 opAssoc.RIGHT = object()
5013 5014 -def infixNotation( baseExpr, opList, lpar=Suppress('('), rpar=Suppress(')') ):
5015 """ 5016 Helper method for constructing grammars of expressions made up of 5017 operators working in a precedence hierarchy. Operators may be unary or 5018 binary, left- or right-associative. Parse actions can also be attached 5019 to operator expressions. The generated parser will also recognize the use 5020 of parentheses to override operator precedences (see example below). 5021 5022 Note: if you define a deep operator list, you may see performance issues 5023 when using infixNotation. See L{ParserElement.enablePackrat} for a 5024 mechanism to potentially improve your parser performance. 5025 5026 Parameters: 5027 - baseExpr - expression representing the most basic element for the nested 5028 - opList - list of tuples, one for each operator precedence level in the 5029 expression grammar; each tuple is of the form 5030 (opExpr, numTerms, rightLeftAssoc, parseAction), where: 5031 - opExpr is the pyparsing expression for the operator; 5032 may also be a string, which will be converted to a Literal; 5033 if numTerms is 3, opExpr is a tuple of two expressions, for the 5034 two operators separating the 3 terms 5035 - numTerms is the number of terms for this operator (must 5036 be 1, 2, or 3) 5037 - rightLeftAssoc is the indicator whether the operator is 5038 right or left associative, using the pyparsing-defined 5039 constants C{opAssoc.RIGHT} and C{opAssoc.LEFT}. 5040 - parseAction is the parse action to be associated with 5041 expressions matching this operator expression (the 5042 parse action tuple member may be omitted); if the parse action 5043 is passed a tuple or list of functions, this is equivalent to 5044 calling C{setParseAction(*fn)} (L{ParserElement.setParseAction}) 5045 - lpar - expression for matching left-parentheses (default=C{Suppress('(')}) 5046 - rpar - expression for matching right-parentheses (default=C{Suppress(')')}) 5047 5048 Example:: 5049 # simple example of four-function arithmetic with ints and variable names 5050 integer = pyparsing_common.signed_integer 5051 varname = pyparsing_common.identifier 5052 5053 arith_expr = infixNotation(integer | varname, 5054 [ 5055 ('-', 1, opAssoc.RIGHT), 5056 (oneOf('* /'), 2, opAssoc.LEFT), 5057 (oneOf('+ -'), 2, opAssoc.LEFT), 5058 ]) 5059 5060 arith_expr.runTests(''' 5061 5+3*6 5062 (5+3)*6 5063 -2--11 5064 ''', fullDump=False) 5065 prints:: 5066 5+3*6 5067 [[5, '+', [3, '*', 6]]] 5068 5069 (5+3)*6 5070 [[[5, '+', 3], '*', 6]] 5071 5072 -2--11 5073 [[['-', 2], '-', ['-', 11]]] 5074 """ 5075 ret = Forward() 5076 lastExpr = baseExpr | ( lpar + ret + rpar ) 5077 for i,operDef in enumerate(opList): 5078 opExpr,arity,rightLeftAssoc,pa = (operDef + (None,))[:4] 5079 termName = "%s term" % opExpr if arity < 3 else "%s%s term" % opExpr 5080 if arity == 3: 5081 if opExpr is None or len(opExpr) != 2: 5082 raise ValueError("if numterms=3, opExpr must be a tuple or list of two expressions") 5083 opExpr1, opExpr2 = opExpr 5084 thisExpr = Forward().setName(termName) 5085 if rightLeftAssoc == opAssoc.LEFT: 5086 if arity == 1: 5087 matchExpr = FollowedBy(lastExpr + opExpr) + Group( lastExpr + OneOrMore( opExpr ) ) 5088 elif arity == 2: 5089 if opExpr is not None: 5090 matchExpr = FollowedBy(lastExpr + opExpr + lastExpr) + Group( lastExpr + OneOrMore( opExpr + lastExpr ) ) 5091 else: 5092 matchExpr = FollowedBy(lastExpr+lastExpr) + Group( lastExpr + OneOrMore(lastExpr) ) 5093 elif arity == 3: 5094 matchExpr = FollowedBy(lastExpr + opExpr1 + lastExpr + opExpr2 + lastExpr) + \ 5095 Group( lastExpr + opExpr1 + lastExpr + opExpr2 + lastExpr ) 5096 else: 5097 raise ValueError("operator must be unary (1), binary (2), or ternary (3)") 5098 elif rightLeftAssoc == opAssoc.RIGHT: 5099 if arity == 1: 5100 # try to avoid LR with this extra test 5101 if not isinstance(opExpr, Optional): 5102 opExpr = Optional(opExpr) 5103 matchExpr = FollowedBy(opExpr.expr + thisExpr) + Group( opExpr + thisExpr ) 5104 elif arity == 2: 5105 if opExpr is not None: 5106 matchExpr = FollowedBy(lastExpr + opExpr + thisExpr) + Group( lastExpr + OneOrMore( opExpr + thisExpr ) ) 5107 else: 5108 matchExpr = FollowedBy(lastExpr + thisExpr) + Group( lastExpr + OneOrMore( thisExpr ) ) 5109 elif arity == 3: 5110 matchExpr = FollowedBy(lastExpr + opExpr1 + thisExpr + opExpr2 + thisExpr) + \ 5111 Group( lastExpr + opExpr1 + thisExpr + opExpr2 + thisExpr ) 5112 else: 5113 raise ValueError("operator must be unary (1), binary (2), or ternary (3)") 5114 else: 5115 raise ValueError("operator must indicate right or left associativity") 5116 if pa: 5117 if isinstance(pa, (tuple, list)): 5118 matchExpr.setParseAction(*pa) 5119 else: 5120 matchExpr.setParseAction(pa) 5121 thisExpr <<= ( matchExpr.setName(termName) | lastExpr ) 5122 lastExpr = thisExpr 5123 ret <<= lastExpr 5124 return ret
5125 5126 operatorPrecedence = infixNotation 5127 """(Deprecated) Former name of C{L{infixNotation}}, will be dropped in a future release.""" 5128 5129 dblQuotedString = Combine(Regex(r'"(?:[^"\n\r\\]|(?:"")|(?:\\(?:[^x]|x[0-9a-fA-F]+)))*')+'"').setName("string enclosed in double quotes") 5130 sglQuotedString = Combine(Regex(r"'(?:[^'\n\r\\]|(?:'')|(?:\\(?:[^x]|x[0-9a-fA-F]+)))*")+"'").setName("string enclosed in single quotes") 5131 quotedString = Combine(Regex(r'"(?:[^"\n\r\\]|(?:"")|(?:\\(?:[^x]|x[0-9a-fA-F]+)))*')+'"'| 5132 Regex(r"'(?:[^'\n\r\\]|(?:'')|(?:\\(?:[^x]|x[0-9a-fA-F]+)))*")+"'").setName("quotedString using single or double quotes") 5133 unicodeString = Combine(_L('u') + quotedString.copy()).setName("unicode string literal")
5134 5135 -def nestedExpr(opener="(", closer=")", content=None, ignoreExpr=quotedString.copy()):
5136 """ 5137 Helper method for defining nested lists enclosed in opening and closing 5138 delimiters ("(" and ")" are the default). 5139 5140 Parameters: 5141 - opener - opening character for a nested list (default=C{"("}); can also be a pyparsing expression 5142 - closer - closing character for a nested list (default=C{")"}); can also be a pyparsing expression 5143 - content - expression for items within the nested lists (default=C{None}) 5144 - ignoreExpr - expression for ignoring opening and closing delimiters (default=C{quotedString}) 5145 5146 If an expression is not provided for the content argument, the nested 5147 expression will capture all whitespace-delimited content between delimiters 5148 as a list of separate values. 5149 5150 Use the C{ignoreExpr} argument to define expressions that may contain 5151 opening or closing characters that should not be treated as opening 5152 or closing characters for nesting, such as quotedString or a comment 5153 expression. Specify multiple expressions using an C{L{Or}} or C{L{MatchFirst}}. 5154 The default is L{quotedString}, but if no expressions are to be ignored, 5155 then pass C{None} for this argument. 5156 5157 Example:: 5158 data_type = oneOf("void int short long char float double") 5159 decl_data_type = Combine(data_type + Optional(Word('*'))) 5160 ident = Word(alphas+'_', alphanums+'_') 5161 number = pyparsing_common.number 5162 arg = Group(decl_data_type + ident) 5163 LPAR,RPAR = map(Suppress, "()") 5164 5165 code_body = nestedExpr('{', '}', ignoreExpr=(quotedString | cStyleComment)) 5166 5167 c_function = (decl_data_type("type") 5168 + ident("name") 5169 + LPAR + Optional(delimitedList(arg), [])("args") + RPAR 5170 + code_body("body")) 5171 c_function.ignore(cStyleComment) 5172 5173 source_code = ''' 5174 int is_odd(int x) { 5175 return (x%2); 5176 } 5177 5178 int dec_to_hex(char hchar) { 5179 if (hchar >= '0' && hchar <= '9') { 5180 return (ord(hchar)-ord('0')); 5181 } else { 5182 return (10+ord(hchar)-ord('A')); 5183 } 5184 } 5185 ''' 5186 for func in c_function.searchString(source_code): 5187 print("%(name)s (%(type)s) args: %(args)s" % func) 5188 5189 prints:: 5190 is_odd (int) args: [['int', 'x']] 5191 dec_to_hex (int) args: [['char', 'hchar']] 5192 """ 5193 if opener == closer: 5194 raise ValueError("opening and closing strings cannot be the same") 5195 if content is None: 5196 if isinstance(opener,basestring) and isinstance(closer,basestring): 5197 if len(opener) == 1 and len(closer)==1: 5198 if ignoreExpr is not None: 5199 content = (Combine(OneOrMore(~ignoreExpr + 5200 CharsNotIn(opener+closer+ParserElement.DEFAULT_WHITE_CHARS,exact=1)) 5201 ).setParseAction(lambda t:t[0].strip())) 5202 else: 5203 content = (empty.copy()+CharsNotIn(opener+closer+ParserElement.DEFAULT_WHITE_CHARS 5204 ).setParseAction(lambda t:t[0].strip())) 5205 else: 5206 if ignoreExpr is not None: 5207 content = (Combine(OneOrMore(~ignoreExpr + 5208 ~Literal(opener) + ~Literal(closer) + 5209 CharsNotIn(ParserElement.DEFAULT_WHITE_CHARS,exact=1)) 5210 ).setParseAction(lambda t:t[0].strip())) 5211 else: 5212 content = (Combine(OneOrMore(~Literal(opener) + ~Literal(closer) + 5213 CharsNotIn(ParserElement.DEFAULT_WHITE_CHARS,exact=1)) 5214 ).setParseAction(lambda t:t[0].strip())) 5215 else: 5216 raise ValueError("opening and closing arguments must be strings if no content expression is given") 5217 ret = Forward() 5218 if ignoreExpr is not None: 5219 ret <<= Group( Suppress(opener) + ZeroOrMore( ignoreExpr | ret | content ) + Suppress(closer) ) 5220 else: 5221 ret <<= Group( Suppress(opener) + ZeroOrMore( ret | content ) + Suppress(closer) ) 5222 ret.setName('nested %s%s expression' % (opener,closer)) 5223 return ret
5224
5225 -def indentedBlock(blockStatementExpr, indentStack, indent=True):
5226 """ 5227 Helper method for defining space-delimited indentation blocks, such as 5228 those used to define block statements in Python source code. 5229 5230 Parameters: 5231 - blockStatementExpr - expression defining syntax of statement that 5232 is repeated within the indented block 5233 - indentStack - list created by caller to manage indentation stack 5234 (multiple statementWithIndentedBlock expressions within a single grammar 5235 should share a common indentStack) 5236 - indent - boolean indicating whether block must be indented beyond the 5237 the current level; set to False for block of left-most statements 5238 (default=C{True}) 5239 5240 A valid block must contain at least one C{blockStatement}. 5241 5242 Example:: 5243 data = ''' 5244 def A(z): 5245 A1 5246 B = 100 5247 G = A2 5248 A2 5249 A3 5250 B 5251 def BB(a,b,c): 5252 BB1 5253 def BBA(): 5254 bba1 5255 bba2 5256 bba3 5257 C 5258 D 5259 def spam(x,y): 5260 def eggs(z): 5261 pass 5262 ''' 5263 5264 5265 indentStack = [1] 5266 stmt = Forward() 5267 5268 identifier = Word(alphas, alphanums) 5269 funcDecl = ("def" + identifier + Group( "(" + Optional( delimitedList(identifier) ) + ")" ) + ":") 5270 func_body = indentedBlock(stmt, indentStack) 5271 funcDef = Group( funcDecl + func_body ) 5272 5273 rvalue = Forward() 5274 funcCall = Group(identifier + "(" + Optional(delimitedList(rvalue)) + ")") 5275 rvalue << (funcCall | identifier | Word(nums)) 5276 assignment = Group(identifier + "=" + rvalue) 5277 stmt << ( funcDef | assignment | identifier ) 5278 5279 module_body = OneOrMore(stmt) 5280 5281 parseTree = module_body.parseString(data) 5282 parseTree.pprint() 5283 prints:: 5284 [['def', 5285 'A', 5286 ['(', 'z', ')'], 5287 ':', 5288 [['A1'], [['B', '=', '100']], [['G', '=', 'A2']], ['A2'], ['A3']]], 5289 'B', 5290 ['def', 5291 'BB', 5292 ['(', 'a', 'b', 'c', ')'], 5293 ':', 5294 [['BB1'], [['def', 'BBA', ['(', ')'], ':', [['bba1'], ['bba2'], ['bba3']]]]]], 5295 'C', 5296 'D', 5297 ['def', 5298 'spam', 5299 ['(', 'x', 'y', ')'], 5300 ':', 5301 [[['def', 'eggs', ['(', 'z', ')'], ':', [['pass']]]]]]] 5302 """ 5303 def checkPeerIndent(s,l,t): 5304 if l >= len(s): return 5305 curCol = col(l,s) 5306 if curCol != indentStack[-1]: 5307 if curCol > indentStack[-1]: 5308 raise ParseFatalException(s,l,"illegal nesting") 5309 raise ParseException(s,l,"not a peer entry")
5310 5311 def checkSubIndent(s,l,t): 5312 curCol = col(l,s) 5313 if curCol > indentStack[-1]: 5314 indentStack.append( curCol ) 5315 else: 5316 raise ParseException(s,l,"not a subentry") 5317 5318 def checkUnindent(s,l,t): 5319 if l >= len(s): return 5320 curCol = col(l,s) 5321 if not(indentStack and curCol < indentStack[-1] and curCol <= indentStack[-2]): 5322 raise ParseException(s,l,"not an unindent") 5323 indentStack.pop() 5324 5325 NL = OneOrMore(LineEnd().setWhitespaceChars("\t ").suppress()) 5326 INDENT = (Empty() + Empty().setParseAction(checkSubIndent)).setName('INDENT') 5327 PEER = Empty().setParseAction(checkPeerIndent).setName('') 5328 UNDENT = Empty().setParseAction(checkUnindent).setName('UNINDENT') 5329 if indent: 5330 smExpr = Group( Optional(NL) + 5331 #~ FollowedBy(blockStatementExpr) + 5332 INDENT + (OneOrMore( PEER + Group(blockStatementExpr) + Optional(NL) )) + UNDENT) 5333 else: 5334 smExpr = Group( Optional(NL) + 5335 (OneOrMore( PEER + Group(blockStatementExpr) + Optional(NL) )) ) 5336 blockStatementExpr.ignore(_bslash + LineEnd()) 5337 return smExpr.setName('indented block') 5338 5339 alphas8bit = srange(r"[\0xc0-\0xd6\0xd8-\0xf6\0xf8-\0xff]") 5340 punc8bit = srange(r"[\0xa1-\0xbf\0xd7\0xf7]") 5341 5342 anyOpenTag,anyCloseTag = makeHTMLTags(Word(alphas,alphanums+"_:").setName('any tag')) 5343 _htmlEntityMap = dict(zip("gt lt amp nbsp quot apos".split(),'><& "\'')) 5344 commonHTMLEntity = Regex('&(?P<entity>' + '|'.join(_htmlEntityMap.keys()) +");").setName("common HTML entity")
5345 -def replaceHTMLEntity(t):
5346 """Helper parser action to replace common HTML entities with their special characters""" 5347 return _htmlEntityMap.get(t.entity)
5348 5349 # it's easy to get these comment structures wrong - they're very common, so may as well make them available 5350 cStyleComment = Combine(Regex(r"/\*(?:[^*]|\*(?!/))*") + '*/').setName("C style comment") 5351 "Comment of the form C{/* ... */}" 5352 5353 htmlComment = Regex(r"<!--[\s\S]*?-->").setName("HTML comment") 5354 "Comment of the form C{<!-- ... -->}" 5355 5356 restOfLine = Regex(r".*").leaveWhitespace().setName("rest of line") 5357 dblSlashComment = Regex(r"//(?:\\\n|[^\n])*").setName("// comment") 5358 "Comment of the form C{// ... (to end of line)}" 5359 5360 cppStyleComment = Combine(Regex(r"/\*(?:[^*]|\*(?!/))*") + '*/'| dblSlashComment).setName("C++ style comment") 5361 "Comment of either form C{L{cStyleComment}} or C{L{dblSlashComment}}" 5362 5363 javaStyleComment = cppStyleComment 5364 "Same as C{L{cppStyleComment}}" 5365 5366 pythonStyleComment = Regex(r"#.*").setName("Python style comment") 5367 "Comment of the form C{# ... (to end of line)}" 5368 5369 _commasepitem = Combine(OneOrMore(Word(printables, excludeChars=',') + 5370 Optional( Word(" \t") + 5371 ~Literal(",") + ~LineEnd() ) ) ).streamline().setName("commaItem") 5372 commaSeparatedList = delimitedList( Optional( quotedString.copy() | _commasepitem, default="") ).setName("commaSeparatedList") 5373 """(Deprecated) Predefined expression of 1 or more printable words or quoted strings, separated by commas. 5374 This expression is deprecated in favor of L{pyparsing_common.comma_separated_list}."""
5375 5376 # some other useful expressions - using lower-case class name since we are really using this as a namespace 5377 -class pyparsing_common:
5378 """ 5379 Here are some common low-level expressions that may be useful in jump-starting parser development: 5380 - numeric forms (L{integers<integer>}, L{reals<real>}, L{scientific notation<sci_real>}) 5381 - common L{programming identifiers<identifier>} 5382 - network addresses (L{MAC<mac_address>}, L{IPv4<ipv4_address>}, L{IPv6<ipv6_address>}) 5383 - ISO8601 L{dates<iso8601_date>} and L{datetime<iso8601_datetime>} 5384 - L{UUID<uuid>} 5385 - L{comma-separated list<comma_separated_list>} 5386 Parse actions: 5387 - C{L{convertToInteger}} 5388 - C{L{convertToFloat}} 5389 - C{L{convertToDate}} 5390 - C{L{convertToDatetime}} 5391 - C{L{stripHTMLTags}} 5392 - C{L{upcaseTokens}} 5393 - C{L{downcaseTokens}} 5394 5395 Example:: 5396 pyparsing_common.number.runTests(''' 5397 # any int or real number, returned as the appropriate type 5398 100 5399 -100 5400 +100 5401 3.14159 5402 6.02e23 5403 1e-12 5404 ''') 5405 5406 pyparsing_common.fnumber.runTests(''' 5407 # any int or real number, returned as float 5408 100 5409 -100 5410 +100 5411 3.14159 5412 6.02e23 5413 1e-12 5414 ''') 5415 5416 pyparsing_common.hex_integer.runTests(''' 5417 # hex numbers 5418 100 5419 FF 5420 ''') 5421 5422 pyparsing_common.fraction.runTests(''' 5423 # fractions 5424 1/2 5425 -3/4 5426 ''') 5427 5428 pyparsing_common.mixed_integer.runTests(''' 5429 # mixed fractions 5430 1 5431 1/2 5432 -3/4 5433 1-3/4 5434 ''') 5435 5436 import uuid 5437 pyparsing_common.uuid.setParseAction(tokenMap(uuid.UUID)) 5438 pyparsing_common.uuid.runTests(''' 5439 # uuid 5440 12345678-1234-5678-1234-567812345678 5441 ''') 5442 prints:: 5443 # any int or real number, returned as the appropriate type 5444 100 5445 [100] 5446 5447 -100 5448 [-100] 5449 5450 +100 5451 [100] 5452 5453 3.14159 5454 [3.14159] 5455 5456 6.02e23 5457 [6.02e+23] 5458 5459 1e-12 5460 [1e-12] 5461 5462 # any int or real number, returned as float 5463 100 5464 [100.0] 5465 5466 -100 5467 [-100.0] 5468 5469 +100 5470 [100.0] 5471 5472 3.14159 5473 [3.14159] 5474 5475 6.02e23 5476 [6.02e+23] 5477 5478 1e-12 5479 [1e-12] 5480 5481 # hex numbers 5482 100 5483 [256] 5484 5485 FF 5486 [255] 5487 5488 # fractions 5489 1/2 5490 [0.5] 5491 5492 -3/4 5493 [-0.75] 5494 5495 # mixed fractions 5496 1 5497 [1] 5498 5499 1/2 5500 [0.5] 5501 5502 -3/4 5503 [-0.75] 5504 5505 1-3/4 5506 [1.75] 5507 5508 # uuid 5509 12345678-1234-5678-1234-567812345678 5510 [UUID('12345678-1234-5678-1234-567812345678')] 5511 """ 5512 5513 convertToInteger = tokenMap(int) 5514 """ 5515 Parse action for converting parsed integers to Python int 5516 """ 5517 5518 convertToFloat = tokenMap(float) 5519 """ 5520 Parse action for converting parsed numbers to Python float 5521 """ 5522 5523 integer = Word(nums).setName("integer").setParseAction(convertToInteger) 5524 """expression that parses an unsigned integer, returns an int""" 5525 5526 hex_integer = Word(hexnums).setName("hex integer").setParseAction(tokenMap(int,16)) 5527 """expression that parses a hexadecimal integer, returns an int""" 5528 5529 signed_integer = Regex(r'[+-]?\d+').setName("signed integer").setParseAction(convertToInteger) 5530 """expression that parses an integer with optional leading sign, returns an int""" 5531 5532 fraction = (signed_integer().setParseAction(convertToFloat) + '/' + signed_integer().setParseAction(convertToFloat)).setName("fraction") 5533 """fractional expression of an integer divided by an integer, returns a float""" 5534 fraction.addParseAction(lambda t: t[0]/t[-1]) 5535 5536 mixed_integer = (fraction | signed_integer + Optional(Optional('-').suppress() + fraction)).setName("fraction or mixed integer-fraction") 5537 """mixed integer of the form 'integer - fraction', with optional leading integer, returns float""" 5538 mixed_integer.addParseAction(sum) 5539 5540 real = Regex(r'[+-]?\d+\.\d*').setName("real number").setParseAction(convertToFloat) 5541 """expression that parses a floating point number and returns a float""" 5542 5543 sci_real = Regex(r'[+-]?\d+([eE][+-]?\d+|\.\d*([eE][+-]?\d+)?)').setName("real number with scientific notation").setParseAction(convertToFloat) 5544 """expression that parses a floating point number with optional scientific notation and returns a float""" 5545 5546 # streamlining this expression makes the docs nicer-looking 5547 number = (sci_real | real | signed_integer).streamline() 5548 """any numeric expression, returns the corresponding Python type""" 5549 5550 fnumber = Regex(r'[+-]?\d+\.?\d*([eE][+-]?\d+)?').setName("fnumber").setParseAction(convertToFloat) 5551 """any int or real number, returned as float""" 5552 5553 identifier = Word(alphas+'_', alphanums+'_').setName("identifier") 5554 """typical code identifier (leading alpha or '_', followed by 0 or more alphas, nums, or '_')""" 5555 5556 ipv4_address = Regex(r'(25[0-5]|2[0-4][0-9]|1?[0-9]{1,2})(\.(25[0-5]|2[0-4][0-9]|1?[0-9]{1,2})){3}').setName("IPv4 address") 5557 "IPv4 address (C{0.0.0.0 - 255.255.255.255})" 5558 5559 _ipv6_part = Regex(r'[0-9a-fA-F]{1,4}').setName("hex_integer") 5560 _full_ipv6_address = (_ipv6_part + (':' + _ipv6_part)*7).setName("full IPv6 address") 5561 _short_ipv6_address = (Optional(_ipv6_part + (':' + _ipv6_part)*(0,6)) + "::" + Optional(_ipv6_part + (':' + _ipv6_part)*(0,6))).setName("short IPv6 address") 5562 _short_ipv6_address.addCondition(lambda t: sum(1 for tt in t if pyparsing_common._ipv6_part.matches(tt)) < 8) 5563 _mixed_ipv6_address = ("::ffff:" + ipv4_address).setName("mixed IPv6 address") 5564 ipv6_address = Combine((_full_ipv6_address | _mixed_ipv6_address | _short_ipv6_address).setName("IPv6 address")).setName("IPv6 address") 5565 "IPv6 address (long, short, or mixed form)" 5566 5567 mac_address = Regex(r'[0-9a-fA-F]{2}([:.-])[0-9a-fA-F]{2}(?:\1[0-9a-fA-F]{2}){4}').setName("MAC address") 5568 "MAC address xx:xx:xx:xx:xx (may also have '-' or '.' delimiters)" 5569 5570 @staticmethod
5571 - def convertToDate(fmt="%Y-%m-%d"):
5572 """ 5573 Helper to create a parse action for converting parsed date string to Python datetime.date 5574 5575 Params - 5576 - fmt - format to be passed to datetime.strptime (default=C{"%Y-%m-%d"}) 5577 5578 Example:: 5579 date_expr = pyparsing_common.iso8601_date.copy() 5580 date_expr.setParseAction(pyparsing_common.convertToDate()) 5581 print(date_expr.parseString("1999-12-31")) 5582 prints:: 5583 [datetime.date(1999, 12, 31)] 5584 """ 5585 def cvt_fn(s,l,t): 5586 try: 5587 return datetime.strptime(t[0], fmt).date() 5588 except ValueError as ve: 5589 raise ParseException(s, l, str(ve))
5590 return cvt_fn
5591 5592 @staticmethod
5593 - def convertToDatetime(fmt="%Y-%m-%dT%H:%M:%S.%f"):
5594 """ 5595 Helper to create a parse action for converting parsed datetime string to Python datetime.datetime 5596 5597 Params - 5598 - fmt - format to be passed to datetime.strptime (default=C{"%Y-%m-%dT%H:%M:%S.%f"}) 5599 5600 Example:: 5601 dt_expr = pyparsing_common.iso8601_datetime.copy() 5602 dt_expr.setParseAction(pyparsing_common.convertToDatetime()) 5603 print(dt_expr.parseString("1999-12-31T23:59:59.999")) 5604 prints:: 5605 [datetime.datetime(1999, 12, 31, 23, 59, 59, 999000)] 5606 """ 5607 def cvt_fn(s,l,t): 5608 try: 5609 return datetime.strptime(t[0], fmt) 5610 except ValueError as ve: 5611 raise ParseException(s, l, str(ve))
5612 return cvt_fn 5613 5614 iso8601_date = Regex(r'(?P<year>\d{4})(?:-(?P<month>\d\d)(?:-(?P<day>\d\d))?)?').setName("ISO8601 date") 5615 "ISO8601 date (C{yyyy-mm-dd})" 5616 5617 iso8601_datetime = Regex(r'(?P<year>\d{4})-(?P<month>\d\d)-(?P<day>\d\d)[T ](?P<hour>\d\d):(?P<minute>\d\d)(:(?P<second>\d\d(\.\d*)?)?)?(?P<tz>Z|[+-]\d\d:?\d\d)?').setName("ISO8601 datetime") 5618 "ISO8601 datetime (C{yyyy-mm-ddThh:mm:ss.s(Z|+-00:00)}) - trailing seconds, milliseconds, and timezone optional; accepts separating C{'T'} or C{' '}" 5619 5620 uuid = Regex(r'[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}').setName("UUID") 5621 "UUID (C{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx})" 5622 5623 _html_stripper = anyOpenTag.suppress() | anyCloseTag.suppress() 5624 @staticmethod
5625 - def stripHTMLTags(s, l, tokens):
5626 """ 5627 Parse action to remove HTML tags from web page HTML source 5628 5629 Example:: 5630 # strip HTML links from normal text 5631 text = '<td>More info at the <a href="http://pyparsing.wikispaces.com">pyparsing</a> wiki page</td>' 5632 td,td_end = makeHTMLTags("TD") 5633 table_text = td + SkipTo(td_end).setParseAction(pyparsing_common.stripHTMLTags)("body") + td_end 5634 5635 print(table_text.parseString(text).body) # -> 'More info at the pyparsing wiki page' 5636 """ 5637 return pyparsing_common._html_stripper.transformString(tokens[0])
5638 5639 _commasepitem = Combine(OneOrMore(~Literal(",") + ~LineEnd() + Word(printables, excludeChars=',') 5640 + Optional( White(" \t") ) ) ).streamline().setName("commaItem") 5641 comma_separated_list = delimitedList( Optional( quotedString.copy() | _commasepitem, default="") ).setName("comma separated list") 5642 """Predefined expression of 1 or more printable words or quoted strings, separated by commas.""" 5643 5644 upcaseTokens = staticmethod(tokenMap(lambda t: _ustr(t).upper())) 5645 """Parse action to convert tokens to upper case.""" 5646 5647 downcaseTokens = staticmethod(tokenMap(lambda t: _ustr(t).lower())) 5648 """Parse action to convert tokens to lower case.""" 5649 5650 5651 if __name__ == "__main__": 5652 5653 selectToken = CaselessLiteral("select") 5654 fromToken = CaselessLiteral("from") 5655 5656 ident = Word(alphas, alphanums + "_$") 5657 5658 columnName = delimitedList(ident, ".", combine=True).setParseAction(upcaseTokens) 5659 columnNameList = Group(delimitedList(columnName)).setName("columns") 5660 columnSpec = ('*' | columnNameList) 5661 5662 tableName = delimitedList(ident, ".", combine=True).setParseAction(upcaseTokens) 5663 tableNameList = Group(delimitedList(tableName)).setName("tables") 5664 5665 simpleSQL = selectToken("command") + columnSpec("columns") + fromToken + tableNameList("tables") 5666 5667 # demo runTests method, including embedded comments in test string 5668 simpleSQL.runTests(""" 5669 # '*' as column list and dotted table name 5670 select * from SYS.XYZZY 5671 5672 # caseless match on "SELECT", and casts back to "select" 5673 SELECT * from XYZZY, ABC 5674 5675 # list of column names, and mixed case SELECT keyword 5676 Select AA,BB,CC from Sys.dual 5677 5678 # multiple tables 5679 Select A, B, C from Sys.dual, Table2 5680 5681 # invalid SELECT keyword - should fail 5682 Xelect A, B, C from Sys.dual 5683 5684 # incomplete command - should fail 5685 Select 5686 5687 # invalid column name - should fail 5688 Select ^^^ frox Sys.dual 5689 5690 """) 5691 5692 pyparsing_common.number.runTests(""" 5693 100 5694 -100 5695 +100 5696 3.14159 5697 6.02e23 5698 1e-12 5699 """) 5700 5701 # any int or real number, returned as float 5702 pyparsing_common.fnumber.runTests(""" 5703 100 5704 -100 5705 +100 5706 3.14159 5707 6.02e23 5708 1e-12 5709 """) 5710 5711 pyparsing_common.hex_integer.runTests(""" 5712 100 5713 FF 5714 """) 5715 5716 import uuid 5717 pyparsing_common.uuid.setParseAction(tokenMap(uuid.UUID)) 5718 pyparsing_common.uuid.runTests(""" 5719 12345678-1234-5678-1234-567812345678 5720 """) 5721

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.ParseElementEnhance-class.html0000644000175000017500000006455213057143513024553 0ustar zigozigo pyparsing.ParseElementEnhance
Module pyparsing :: Class ParseElementEnhance
[frames] | no frames]

Class ParseElementEnhance

source code

   object --+    
            |    
ParserElement --+
                |
               ParseElementEnhance
Known Subclasses:

Abstract subclass of ParserElement, for combining and post-processing parsed tokens.

Instance Methods
 
__init__(self, expr, savelist=False)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
parseImpl(self, instring, loc, doActions=True) source code
 
leaveWhitespace(self)
Disables the skipping of whitespace before matching the characters in the ParserElement's defined pattern.
source code
 
ignore(self, other)
Define expression to be ignored (e.g., comments) while doing pattern matching; may be called repeatedly, to define multiple comment or other ignorable patterns.
source code
 
streamline(self) source code
 
checkRecursion(self, parseElementList) source code
 
validate(self, validateTrace=[])
Check defined expressions for valid structure, check for infinite recursive definitions.
source code
 
__str__(self)
str(x)
source code

Inherited from ParserElement: __add__, __and__, __call__, __eq__, __hash__, __invert__, __mul__, __ne__, __or__, __radd__, __rand__, __repr__, __req__, __rmul__, __rne__, __ror__, __rsub__, __rxor__, __sub__, __xor__, addCondition, addParseAction, canParseNext, copy, matches, parseFile, parseString, parseWithTabs, postParse, preParse, runTests, scanString, searchString, setBreak, setDebug, setDebugActions, setFailAction, setName, setParseAction, setResultsName, setWhitespaceChars, split, suppress, transformString, tryParse

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods

Inherited from ParserElement: enablePackrat, inlineLiteralsUsing, resetCache, setDefaultWhitespaceChars

Class Variables

Inherited from ParserElement: DEFAULT_WHITE_CHARS, packrat_cache, packrat_cache_lock, packrat_cache_stats, verbose_stacktrace

Properties

Inherited from object: __class__

Method Details

__init__(self, expr, savelist=False)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

parseImpl(self, instring, loc, doActions=True)

source code 
Overrides: ParserElement.parseImpl

leaveWhitespace(self)

source code 

Disables the skipping of whitespace before matching the characters in the ParserElement's defined pattern. This is normally only used internally by the pyparsing module, but may be needed in some whitespace-sensitive grammars.

Overrides: ParserElement.leaveWhitespace
(inherited documentation)

ignore(self, other)

source code 

Define expression to be ignored (e.g., comments) while doing pattern matching; may be called repeatedly, to define multiple comment or other ignorable patterns.

Example:

   patt = OneOrMore(Word(alphas))
   patt.parseString('ablaj /* comment */ lskjd') # -> ['ablaj']
   
   patt.ignore(cStyleComment)
   patt.parseString('ablaj /* comment */ lskjd') # -> ['ablaj', 'lskjd']
Overrides: ParserElement.ignore
(inherited documentation)

streamline(self)

source code 
Overrides: ParserElement.streamline

checkRecursion(self, parseElementList)

source code 
Overrides: ParserElement.checkRecursion

validate(self, validateTrace=[])

source code 

Check defined expressions for valid structure, check for infinite recursive definitions.

Overrides: ParserElement.validate
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.CaselessLiteral-class.html0000644000175000017500000004135113057143513023754 0ustar zigozigo pyparsing.CaselessLiteral
Module pyparsing :: Class CaselessLiteral
[frames] | no frames]

Class CaselessLiteral

source code

   object --+            
            |            
ParserElement --+        
                |        
            Token --+    
                    |    
              Literal --+
                        |
                       CaselessLiteral

Token to match a specified string, ignoring case of letters. Note: the matched results will always be in the case of the given match string, NOT the case of the input text.

Example:

   OneOrMore(CaselessLiteral("CMD")).parseString("cmd CMD Cmd10") # -> ['CMD', 'CMD', 'CMD']

(Contrast with example for CaselessKeyword.)

Instance Methods
 
__init__(self, matchString)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
parseImpl(self, instring, loc, doActions=True) source code

Inherited from ParserElement: __add__, __and__, __call__, __eq__, __hash__, __invert__, __mul__, __ne__, __or__, __radd__, __rand__, __repr__, __req__, __rmul__, __rne__, __ror__, __rsub__, __rxor__, __str__, __sub__, __xor__, addCondition, addParseAction, canParseNext, checkRecursion, copy, ignore, leaveWhitespace, matches, parseFile, parseString, parseWithTabs, postParse, preParse, runTests, scanString, searchString, setBreak, setDebug, setDebugActions, setFailAction, setName, setParseAction, setResultsName, setWhitespaceChars, split, streamline, suppress, transformString, tryParse, validate

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods

Inherited from ParserElement: enablePackrat, inlineLiteralsUsing, resetCache, setDefaultWhitespaceChars

Class Variables

Inherited from Literal: __slotnames__

Inherited from ParserElement: DEFAULT_WHITE_CHARS, packrat_cache, packrat_cache_lock, packrat_cache_stats, verbose_stacktrace

Properties

Inherited from object: __class__

Method Details

__init__(self, matchString)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

parseImpl(self, instring, loc, doActions=True)

source code 
Overrides: ParserElement.parseImpl

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.CharsNotIn-class.html0000644000175000017500000004476713057143513022723 0ustar zigozigo pyparsing.CharsNotIn
Module pyparsing :: Class CharsNotIn
[frames] | no frames]

Class CharsNotIn

source code

   object --+        
            |        
ParserElement --+    
                |    
            Token --+
                    |
                   CharsNotIn

Token for matching words composed of characters not in a given set (will include whitespace in matched characters if not listed in the provided exclusion set - see example). Defined with string containing all disallowed characters, and an optional minimum, maximum, and/or exact length. The default value for min is 1 (a minimum value < 1 is not valid); the default values for max and exact are 0, meaning no maximum or exact length restriction.

Example:

   # define a comma-separated-value as anything that is not a ','
   csv_value = CharsNotIn(',')
   print(delimitedList(csv_value).parseString("dkls,lsdkjf,s12 34,@!#,213"))

prints:

   ['dkls', 'lsdkjf', 's12 34', '@!#', '213']
Instance Methods
 
__init__(self, notChars, min=1, max=0, exact=0)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
parseImpl(self, instring, loc, doActions=True) source code
 
__str__(self)
str(x)
source code

Inherited from ParserElement: __add__, __and__, __call__, __eq__, __hash__, __invert__, __mul__, __ne__, __or__, __radd__, __rand__, __repr__, __req__, __rmul__, __rne__, __ror__, __rsub__, __rxor__, __sub__, __xor__, addCondition, addParseAction, canParseNext, checkRecursion, copy, ignore, leaveWhitespace, matches, parseFile, parseString, parseWithTabs, postParse, preParse, runTests, scanString, searchString, setBreak, setDebug, setDebugActions, setFailAction, setName, setParseAction, setResultsName, setWhitespaceChars, split, streamline, suppress, transformString, tryParse, validate

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods

Inherited from ParserElement: enablePackrat, inlineLiteralsUsing, resetCache, setDefaultWhitespaceChars

Class Variables

Inherited from ParserElement: DEFAULT_WHITE_CHARS, packrat_cache, packrat_cache_lock, packrat_cache_stats, verbose_stacktrace

Properties

Inherited from object: __class__

Method Details

__init__(self, notChars, min=1, max=0, exact=0)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

parseImpl(self, instring, loc, doActions=True)

source code 
Overrides: ParserElement.parseImpl

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.SkipTo-class.html0000644000175000017500000004610313057143514022107 0ustar zigozigo pyparsing.SkipTo
Module pyparsing :: Class SkipTo
[frames] | no frames]

Class SkipTo

source code

     object --+        
              |        
  ParserElement --+    
                  |    
ParseElementEnhance --+
                      |
                     SkipTo

Token for skipping over all undefined text until the matched expression is found.

Parameters:

Example:

   report = '''
       Outstanding Issues Report - 1 Jan 2000

          # | Severity | Description                               |  Days Open
       -----+----------+-------------------------------------------+-----------
        101 | Critical | Intermittent system crash                 |          6
         94 | Cosmetic | Spelling error on Login ('log|n')         |         14
         79 | Minor    | System slow when running too many reports |         47
       '''
   integer = Word(nums)
   SEP = Suppress('|')
   # use SkipTo to simply match everything up until the next SEP
   # - ignore quoted strings, so that a '|' character inside a quoted string does not match
   # - parse action will call token.strip() for each matched token, i.e., the description body
   string_data = SkipTo(SEP, ignore=quotedString)
   string_data.setParseAction(tokenMap(str.strip))
   ticket_expr = (integer("issue_num") + SEP 
                 + string_data("sev") + SEP 
                 + string_data("desc") + SEP 
                 + integer("days_open"))
   
   for tkt in ticket_expr.searchString(report):
       print tkt.dump()

prints:

   ['101', 'Critical', 'Intermittent system crash', '6']
   - days_open: 6
   - desc: Intermittent system crash
   - issue_num: 101
   - sev: Critical
   ['94', 'Cosmetic', "Spelling error on Login ('log|n')", '14']
   - days_open: 14
   - desc: Spelling error on Login ('log|n')
   - issue_num: 94
   - sev: Cosmetic
   ['79', 'Minor', 'System slow when running too many reports', '47']
   - days_open: 47
   - desc: System slow when running too many reports
   - issue_num: 79
   - sev: Minor
Instance Methods
 
__init__(self, other, include=False, ignore=None, failOn=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
parseImpl(self, instring, loc, doActions=True) source code

Inherited from ParseElementEnhance: __str__, checkRecursion, ignore, leaveWhitespace, streamline, validate

Inherited from ParserElement: __add__, __and__, __call__, __eq__, __hash__, __invert__, __mul__, __ne__, __or__, __radd__, __rand__, __repr__, __req__, __rmul__, __rne__, __ror__, __rsub__, __rxor__, __sub__, __xor__, addCondition, addParseAction, canParseNext, copy, matches, parseFile, parseString, parseWithTabs, postParse, preParse, runTests, scanString, searchString, setBreak, setDebug, setDebugActions, setFailAction, setName, setParseAction, setResultsName, setWhitespaceChars, split, suppress, transformString, tryParse

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods

Inherited from ParserElement: enablePackrat, inlineLiteralsUsing, resetCache, setDefaultWhitespaceChars

Class Variables

Inherited from ParserElement: DEFAULT_WHITE_CHARS, packrat_cache, packrat_cache_lock, packrat_cache_stats, verbose_stacktrace

Properties

Inherited from object: __class__

Method Details

__init__(self, other, include=False, ignore=None, failOn=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

parseImpl(self, instring, loc, doActions=True)

source code 
Overrides: ParserElement.parseImpl

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.WordEnd-class.html0000644000175000017500000004124013057143514022235 0ustar zigozigo pyparsing.WordEnd
Module pyparsing :: Class WordEnd
[frames] | no frames]

Class WordEnd

source code

   object --+            
            |            
ParserElement --+        
                |        
            Token --+    
                    |    
       _PositionToken --+
                        |
                       WordEnd

Matches if the current position is at the end of a Word, and is not followed by any character in a given set of wordChars (default=printables). To emulate the  behavior of regular expressions, use WordEnd(alphanums). WordEnd will also match at the end of the string being parsed, or at the end of a line.

Instance Methods
 
__init__(self, wordChars='0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXY...)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
parseImpl(self, instring, loc, doActions=True) source code

Inherited from ParserElement: __add__, __and__, __call__, __eq__, __hash__, __invert__, __mul__, __ne__, __or__, __radd__, __rand__, __repr__, __req__, __rmul__, __rne__, __ror__, __rsub__, __rxor__, __str__, __sub__, __xor__, addCondition, addParseAction, canParseNext, checkRecursion, copy, ignore, leaveWhitespace, matches, parseFile, parseString, parseWithTabs, postParse, preParse, runTests, scanString, searchString, setBreak, setDebug, setDebugActions, setFailAction, setName, setParseAction, setResultsName, setWhitespaceChars, split, streamline, suppress, transformString, tryParse, validate

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods

Inherited from ParserElement: enablePackrat, inlineLiteralsUsing, resetCache, setDefaultWhitespaceChars

Class Variables

Inherited from ParserElement: DEFAULT_WHITE_CHARS, packrat_cache, packrat_cache_lock, packrat_cache_stats, verbose_stacktrace

Properties

Inherited from object: __class__

Method Details

__init__(self, wordChars='0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXY...)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

parseImpl(self, instring, loc, doActions=True)

source code 
Overrides: ParserElement.parseImpl

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.Regex-class.html0000644000175000017500000004617313057143513021756 0ustar zigozigo pyparsing.Regex
Module pyparsing :: Class Regex
[frames] | no frames]

Class Regex

source code

   object --+        
            |        
ParserElement --+    
                |    
            Token --+
                    |
                   Regex

Token for matching strings that match a given regular expression. Defined with string specifying the regular expression in a form recognized by the inbuilt Python re module. If the given regex contains named groups (defined using (?P<name>...)), these will be preserved as named parse results.

Example:

   realnum = Regex(r"[+-]?\d+\.\d*")
   date = Regex(r'(?P<year>\d{4})-(?P<month>\d\d?)-(?P<day>\d\d?)')
   # ref: http://stackoverflow.com/questions/267399/how-do-you-match-only-valid-roman-numerals-with-a-regular-expression
   roman = Regex(r"M{0,4}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})")
Nested Classes
  compiledREtype
Compiled regular expression objects
Instance Methods
 
__init__(self, pattern, flags=0)
The parameters pattern and flags are passed to the re.compile() function as-is.
source code
 
parseImpl(self, instring, loc, doActions=True) source code
 
__str__(self)
str(x)
source code

Inherited from ParserElement: __add__, __and__, __call__, __eq__, __hash__, __invert__, __mul__, __ne__, __or__, __radd__, __rand__, __repr__, __req__, __rmul__, __rne__, __ror__, __rsub__, __rxor__, __sub__, __xor__, addCondition, addParseAction, canParseNext, checkRecursion, copy, ignore, leaveWhitespace, matches, parseFile, parseString, parseWithTabs, postParse, preParse, runTests, scanString, searchString, setBreak, setDebug, setDebugActions, setFailAction, setName, setParseAction, setResultsName, setWhitespaceChars, split, streamline, suppress, transformString, tryParse, validate

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods

Inherited from ParserElement: enablePackrat, inlineLiteralsUsing, resetCache, setDefaultWhitespaceChars

Class Variables
  __slotnames__ = []

Inherited from ParserElement: DEFAULT_WHITE_CHARS, packrat_cache, packrat_cache_lock, packrat_cache_stats, verbose_stacktrace

Properties

Inherited from object: __class__

Method Details

__init__(self, pattern, flags=0)
(Constructor)

source code 

The parameters pattern and flags are passed to the re.compile() function as-is. See the Python re module for an explanation of the acceptable patterns and flags.

Overrides: object.__init__

parseImpl(self, instring, loc, doActions=True)

source code 
Overrides: ParserElement.parseImpl

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

pyparsing-2.2.0+dfsg1/htmldoc/identifier-index.html0000644000175000017500000030130313057143513021002 0ustar zigozigo Identifier Index
 
[frames] | no frames]

Identifier Index

[ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _ ]

A

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

Z

_



pyparsing-2.2.0+dfsg1/htmldoc/toc-everything.html0000644000175000017500000002672613057143513020537 0ustar zigozigo Everything

Everything


All Classes

pyparsing.And
pyparsing.CaselessKeyword
pyparsing.CaselessLiteral
pyparsing.CharsNotIn
pyparsing.CloseMatch
pyparsing.Combine
pyparsing.Dict
pyparsing.Each
pyparsing.Empty
pyparsing.FollowedBy
pyparsing.Forward
pyparsing.GoToColumn
pyparsing.Group
pyparsing.Keyword
pyparsing.LineEnd
pyparsing.LineStart
pyparsing.Literal
pyparsing.MatchFirst
pyparsing.NoMatch
pyparsing.NotAny
pyparsing.OneOrMore
pyparsing.OnlyOnce
pyparsing.Optional
pyparsing.Or
pyparsing.ParseBaseException
pyparsing.ParseElementEnhance
pyparsing.ParseException
pyparsing.ParseExpression
pyparsing.ParseFatalException
pyparsing.ParseResults
pyparsing.ParseSyntaxException
pyparsing.ParserElement
pyparsing.QuotedString
pyparsing.RecursiveGrammarException
pyparsing.Regex
pyparsing.Regex.compiledREtype
pyparsing.SkipTo
pyparsing.StringEnd
pyparsing.StringStart
pyparsing.Suppress
pyparsing.Token
pyparsing.TokenConverter
pyparsing.White
pyparsing.Word
pyparsing.WordEnd
pyparsing.WordStart
pyparsing.ZeroOrMore
pyparsing.pyparsing_common

All Functions

pyparsing.col
pyparsing.countedArray
pyparsing.delimitedList
pyparsing.dictOf
pyparsing.downcaseTokens
pyparsing.indentedBlock
pyparsing.infixNotation
pyparsing.line
pyparsing.lineno
pyparsing.locatedExpr
pyparsing.makeHTMLTags
pyparsing.makeXMLTags
pyparsing.matchOnlyAtCol
pyparsing.matchPreviousExpr
pyparsing.matchPreviousLiteral
pyparsing.nestedExpr
pyparsing.nullDebugAction
pyparsing.oneOf
pyparsing.originalTextFor
pyparsing.removeQuotes
pyparsing.replaceHTMLEntity
pyparsing.replaceWith
pyparsing.srange
pyparsing.tokenMap
pyparsing.traceParseAction
pyparsing.ungroup
pyparsing.upcaseTokens
pyparsing.withAttribute
pyparsing.withClass

All Variables

pyparsing.alphanums
pyparsing.alphas
pyparsing.alphas8bit
pyparsing.anyCloseTag
pyparsing.anyOpenTag
pyparsing.cStyleComment
pyparsing.commaSeparatedList
pyparsing.commonHTMLEntity
pyparsing.cppStyleComment
pyparsing.dblQuotedString
pyparsing.dblSlashComment
pyparsing.empty
pyparsing.hexnums
pyparsing.htmlComment
pyparsing.javaStyleComment
pyparsing.lineEnd
pyparsing.lineStart
pyparsing.nums
pyparsing.opAssoc
pyparsing.printables
pyparsing.punc8bit
pyparsing.pythonStyleComment
pyparsing.quotedString
pyparsing.restOfLine
pyparsing.sglQuotedString
pyparsing.stringEnd
pyparsing.stringStart
pyparsing.unicodeString

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.Word-class.html0000644000175000017500000005316413057143514021616 0ustar zigozigo pyparsing.Word
Module pyparsing :: Class Word
[frames] | no frames]

Class Word

source code

   object --+        
            |        
ParserElement --+    
                |    
            Token --+
                    |
                   Word

Token for matching words composed of allowed character sets. Defined with string containing all allowed initial characters, an optional string containing allowed body characters (if omitted, defaults to the initial character set), and an optional minimum, maximum, and/or exact length. The default value for min is 1 (a minimum value < 1 is not valid); the default values for max and exact are 0, meaning no maximum or exact length restriction. An optional excludeChars parameter can list characters that might be found in the input bodyChars string; useful to define a word of all printables except for one or two characters, for instance.

srange is useful for defining custom character set strings for defining Word expressions, using range notation from regular expression character sets.

A common mistake is to use Word to match a specific literal string, as in Word("Address"). Remember that Word uses the string argument to define sets of matchable characters. This expression would match "Add", "AAA", "dAred", or any other word made up of the characters 'A', 'd', 'r', 'e', and 's'. To match an exact literal string, use Literal or Keyword.

pyparsing includes helper strings for building Words:

Example:

   # a word composed of digits
   integer = Word(nums) # equivalent to Word("0123456789") or Word(srange("0-9"))
   
   # a word with a leading capital, and zero or more lowercase
   capital_word = Word(alphas.upper(), alphas.lower())

   # hostnames are alphanumeric, with leading alpha, and '-'
   hostname = Word(alphas, alphanums+'-')
   
   # roman numeral (not a strict parser, accepts invalid mix of characters)
   roman = Word("IVXLCDM")
   
   # any string of non-whitespace characters, except for ','
   csv_value = Word(printables, excludeChars=",")
Instance Methods
 
__init__(self, initChars, bodyChars=None, min=1, max=0, exact=0, asKeyword=False, excludeChars=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
parseImpl(self, instring, loc, doActions=True) source code
 
__str__(self)
str(x)
source code

Inherited from ParserElement: __add__, __and__, __call__, __eq__, __hash__, __invert__, __mul__, __ne__, __or__, __radd__, __rand__, __repr__, __req__, __rmul__, __rne__, __ror__, __rsub__, __rxor__, __sub__, __xor__, addCondition, addParseAction, canParseNext, checkRecursion, copy, ignore, leaveWhitespace, matches, parseFile, parseString, parseWithTabs, postParse, preParse, runTests, scanString, searchString, setBreak, setDebug, setDebugActions, setFailAction, setName, setParseAction, setResultsName, setWhitespaceChars, split, streamline, suppress, transformString, tryParse, validate

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods

Inherited from ParserElement: enablePackrat, inlineLiteralsUsing, resetCache, setDefaultWhitespaceChars

Class Variables
  __slotnames__ = []

Inherited from ParserElement: DEFAULT_WHITE_CHARS, packrat_cache, packrat_cache_lock, packrat_cache_stats, verbose_stacktrace

Properties

Inherited from object: __class__

Method Details

__init__(self, initChars, bodyChars=None, min=1, max=0, exact=0, asKeyword=False, excludeChars=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

parseImpl(self, instring, loc, doActions=True)

source code 
Overrides: ParserElement.parseImpl

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.TokenConverter-class.html0000644000175000017500000003602013057143514023643 0ustar zigozigo pyparsing.TokenConverter
Module pyparsing :: Class TokenConverter
[frames] | no frames]

Class TokenConverter

source code

     object --+        
              |        
  ParserElement --+    
                  |    
ParseElementEnhance --+
                      |
                     TokenConverter
Known Subclasses:

Abstract subclass of ParseExpression, for converting parsed results.

Instance Methods
 
__init__(self, expr, savelist=False)
x.__init__(...) initializes x; see help(type(x)) for signature
source code

Inherited from ParseElementEnhance: __str__, checkRecursion, ignore, leaveWhitespace, parseImpl, streamline, validate

Inherited from ParserElement: __add__, __and__, __call__, __eq__, __hash__, __invert__, __mul__, __ne__, __or__, __radd__, __rand__, __repr__, __req__, __rmul__, __rne__, __ror__, __rsub__, __rxor__, __sub__, __xor__, addCondition, addParseAction, canParseNext, copy, matches, parseFile, parseString, parseWithTabs, postParse, preParse, runTests, scanString, searchString, setBreak, setDebug, setDebugActions, setFailAction, setName, setParseAction, setResultsName, setWhitespaceChars, split, suppress, transformString, tryParse

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods

Inherited from ParserElement: enablePackrat, inlineLiteralsUsing, resetCache, setDefaultWhitespaceChars

Class Variables

Inherited from ParserElement: DEFAULT_WHITE_CHARS, packrat_cache, packrat_cache_lock, packrat_cache_stats, verbose_stacktrace

Properties

Inherited from object: __class__

Method Details

__init__(self, expr, savelist=False)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

pyparsing-2.2.0+dfsg1/htmldoc/class-tree.html0000644000175000017500000004014213057143513017616 0ustar zigozigo Class Hierarchy
 
[frames] | no frames]
[ Module Hierarchy | Class Hierarchy ]

Class Hierarchy

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.ZeroOrMore-class.html0000644000175000017500000004412513057143514022743 0ustar zigozigo pyparsing.ZeroOrMore
Module pyparsing :: Class ZeroOrMore
[frames] | no frames]

Class ZeroOrMore

source code

     object --+            
              |            
  ParserElement --+        
                  |        
ParseElementEnhance --+    
                      |    
         _MultipleMatch --+
                          |
                         ZeroOrMore

Optional repetition of zero or more of the given expression.

Parameters:

Example: similar to OneOrMore

Instance Methods
 
__init__(self, expr, stopOn=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
parseImpl(self, instring, loc, doActions=True) source code
 
__str__(self)
str(x)
source code

Inherited from ParseElementEnhance: checkRecursion, ignore, leaveWhitespace, streamline, validate

Inherited from ParserElement: __add__, __and__, __call__, __eq__, __hash__, __invert__, __mul__, __ne__, __or__, __radd__, __rand__, __repr__, __req__, __rmul__, __rne__, __ror__, __rsub__, __rxor__, __sub__, __xor__, addCondition, addParseAction, canParseNext, copy, matches, parseFile, parseString, parseWithTabs, postParse, preParse, runTests, scanString, searchString, setBreak, setDebug, setDebugActions, setFailAction, setName, setParseAction, setResultsName, setWhitespaceChars, split, suppress, transformString, tryParse

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods

Inherited from ParserElement: enablePackrat, inlineLiteralsUsing, resetCache, setDefaultWhitespaceChars

Class Variables

Inherited from ParserElement: DEFAULT_WHITE_CHARS, packrat_cache, packrat_cache_lock, packrat_cache_stats, verbose_stacktrace

Properties

Inherited from object: __class__

Method Details

__init__(self, expr, stopOn=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

parseImpl(self, instring, loc, doActions=True)

source code 
Overrides: ParserElement.parseImpl

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.QuotedString-class.html0000644000175000017500000005022213057143513023322 0ustar zigozigo pyparsing.QuotedString
Module pyparsing :: Class QuotedString
[frames] | no frames]

Class QuotedString

source code

   object --+        
            |        
ParserElement --+    
                |    
            Token --+
                    |
                   QuotedString

Token for matching strings that are delimited by quoting characters.

Defined with the following parameters:

Example:

   qs = QuotedString('"')
   print(qs.searchString('lsjdf "This is the quote" sldjf'))
   complex_qs = QuotedString('{{', endQuoteChar='}}')
   print(complex_qs.searchString('lsjdf {{This is the "quote"}} sldjf'))
   sql_qs = QuotedString('"', escQuote='""')
   print(sql_qs.searchString('lsjdf "This is the quote with ""embedded"" quotes" sldjf'))

prints:

   [['This is the quote']]
   [['This is the "quote"']]
   [['This is the quote with "embedded" quotes']]
Instance Methods
 
__init__(self, quoteChar, escChar=None, escQuote=None, multiline=False, unquoteResults=True, endQuoteChar=None, convertWhitespaceEscapes=True)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
parseImpl(self, instring, loc, doActions=True) source code
 
__str__(self)
str(x)
source code

Inherited from ParserElement: __add__, __and__, __call__, __eq__, __hash__, __invert__, __mul__, __ne__, __or__, __radd__, __rand__, __repr__, __req__, __rmul__, __rne__, __ror__, __rsub__, __rxor__, __sub__, __xor__, addCondition, addParseAction, canParseNext, checkRecursion, copy, ignore, leaveWhitespace, matches, parseFile, parseString, parseWithTabs, postParse, preParse, runTests, scanString, searchString, setBreak, setDebug, setDebugActions, setFailAction, setName, setParseAction, setResultsName, setWhitespaceChars, split, streamline, suppress, transformString, tryParse, validate

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods

Inherited from ParserElement: enablePackrat, inlineLiteralsUsing, resetCache, setDefaultWhitespaceChars

Class Variables

Inherited from ParserElement: DEFAULT_WHITE_CHARS, packrat_cache, packrat_cache_lock, packrat_cache_stats, verbose_stacktrace

Properties

Inherited from object: __class__

Method Details

__init__(self, quoteChar, escChar=None, escQuote=None, multiline=False, unquoteResults=True, endQuoteChar=None, convertWhitespaceEscapes=True)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

parseImpl(self, instring, loc, doActions=True)

source code 
Overrides: ParserElement.parseImpl

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing-module.html0000644000175000017500000033131313057143513021056 0ustar zigozigo pyparsing
Module pyparsing
[frames] | no frames]

Module pyparsing

source code

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 Word, Literal, and And elements ('+' operator gives And expressions, strings are auto-converted to 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 ParseResults object returned from 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:


Version: 2.2.0

Author: Paul McGuire <ptmcg@users.sourceforge.net>

Classes
  ParseBaseException
base exception class for all parsing runtime exceptions
  ParseException
Exception thrown when parse expressions don't match class; supported attributes by name are:
  ParseFatalException
user-throwable exception thrown when inconsistent parse content is found; stops all parsing immediately
  ParseSyntaxException
just like ParseFatalException, but thrown internally when an ErrorStop ('-' operator) indicates that parsing is to stop immediately because an unbacktrackable syntax error has been found
  RecursiveGrammarException
exception thrown by ParserElement.validate if the grammar could be improperly recursive
  ParseResults
Structured parse results, to provide multiple means of access to the parsed data:
  ParserElement
Abstract base level parser element class.
  Token
Abstract ParserElement subclass, for defining atomic matching patterns.
  Empty
An empty token, will always match.
  NoMatch
A token that will never match.
  Literal
Token to exactly match a specified string.
  Keyword
Token to exactly match a specified string as a keyword, that is, it must be immediately followed by a non-keyword character.
  CaselessLiteral
Token to match a specified string, ignoring case of letters.
  CaselessKeyword
Caseless version of Keyword.
  CloseMatch
A variation on Literal which matches "close" matches, that is, strings with at most 'n' mismatching characters.
  Word
Token for matching words composed of allowed character sets.
  Regex
Token for matching strings that match a given regular expression.
  QuotedString
Token for matching strings that are delimited by quoting characters.
  CharsNotIn
Token for matching words composed of characters not in a given set (will include whitespace in matched characters if not listed in the provided exclusion set - see example).
  White
Special matching class for matching whitespace.
  GoToColumn
Token to advance to a specific column of input text; useful for tabular report scraping.
  LineStart
Matches if current position is at the beginning of a line within the parse string
  LineEnd
Matches if current position is at the end of a line within the parse string
  StringStart
Matches if current position is at the beginning of the parse string
  StringEnd
Matches if current position is at the end of the parse string
  WordStart
Matches if the current position is at the beginning of a Word, and is not preceded by any character in a given set of wordChars (default=printables).
  WordEnd
Matches if the current position is at the end of a Word, and is not followed by any character in a given set of wordChars (default=printables).
  ParseExpression
Abstract subclass of ParserElement, for combining and post-processing parsed tokens.
  And
Requires all given ParseExpressions to be found in the given order.
  Or
Requires that at least one ParseExpression is found.
  MatchFirst
Requires that at least one ParseExpression is found.
  Each
Requires all given ParseExpressions to be found, but in any order.
  ParseElementEnhance
Abstract subclass of ParserElement, for combining and post-processing parsed tokens.
  FollowedBy
Lookahead matching of the given parse expression.
  NotAny
Lookahead to disallow matching with the given parse expression.
  OneOrMore
Repetition of one or more of the given expression.
  ZeroOrMore
Optional repetition of zero or more of the given expression.
  Optional
Optional matching of the given expression.
  SkipTo
Token for skipping over all undefined text until the matched expression is found.
  Forward
Forward declaration of an expression to be defined later - used for recursive grammars, such as algebraic infix notation.
  TokenConverter
Abstract subclass of ParseExpression, for converting parsed results.
  Combine
Converter to concatenate all matching tokens to a single string.
  Group
Converter to return the matched tokens as a list - useful for returning tokens of ZeroOrMore and OneOrMore expressions.
  Dict
Converter to return a repetitive expression as a list, but also as a dictionary.
  Suppress
Converter for ignoring the results of a parsed expression.
  OnlyOnce
Wrapper for parse actions, to ensure they are only called once.
  pyparsing_common
Here are some common low-level expressions that may be useful in jump-starting parser development:
Functions
 
col(loc, strg)
Returns current column within a string, counting newlines as line separators.
source code
 
lineno(loc, strg)
Returns current line number within a string, counting newlines as line separators.
source code
 
line(loc, strg)
Returns the line of text containing loc within a string, counting newlines as line separators.
source code
 
nullDebugAction(*args)
'Do-nothing' debug action, to suppress debugging output during parsing.
source code
 
traceParseAction(f)
Decorator for debugging parse actions.
source code
 
delimitedList(expr, delim=',', combine=False)
Helper to define a delimited list of expressions - the delimiter defaults to ','.
source code
 
countedArray(expr, intExpr=None)
Helper to define a counted list of expressions.
source code
 
matchPreviousLiteral(expr)
Helper to define an expression that is indirectly defined from the tokens matched in a previous expression, that is, it looks for a 'repeat' of a previous expression.
source code
 
matchPreviousExpr(expr)
Helper to define an expression that is indirectly defined from the tokens matched in a previous expression, that is, it looks for a 'repeat' of a previous expression.
source code
 
oneOf(strs, caseless=False, useRegex=True)
Helper to quickly define a set of alternative Literals, and makes sure to do longest-first testing when there is a conflict, regardless of the input order, but returns a MatchFirst for best performance.
source code
 
dictOf(key, value)
Helper to easily and clearly define a dictionary by specifying the respective patterns for the key and value.
source code
 
originalTextFor(expr, asString=True)
Helper to return the original, untokenized text for a given expression.
source code
 
ungroup(expr)
Helper to undo pyparsing's default grouping of And expressions, even if all but one are non-empty.
source code
 
locatedExpr(expr)
Helper to decorate a returned token with its starting and ending locations in the input string.
source code
 
srange(s)
Helper to easily define string ranges for use in Word construction.
source code
 
matchOnlyAtCol(n)
Helper method for defining parse actions that require matching at a specific column in the input text.
source code
 
replaceWith(replStr)
Helper method for common parse actions that simply return a literal value.
source code
 
removeQuotes(s, l, t)
Helper parse action for removing quotation marks from parsed quoted strings.
source code
 
tokenMap(func, *args)
Helper to define a parse action by mapping a function to all elements of a ParseResults list.If any additional args are passed, they are forwarded to the given function as additional arguments after the token, as in hex_integer = Word(hexnums).setParseAction(tokenMap(int, 16)), which will convert the parsed data to an integer using base 16.
source code
 
upcaseTokens(s, l, t)
(Deprecated) Helper parse action to convert tokens to upper case.
source code
 
downcaseTokens(s, l, t)
(Deprecated) Helper parse action to convert tokens to lower case.
source code
 
makeHTMLTags(tagStr)
Helper to construct opening and closing tag expressions for HTML, given a tag name.
source code
 
makeXMLTags(tagStr)
Helper to construct opening and closing tag expressions for XML, given a tag name.
source code
 
withAttribute(*args, **attrDict)
Helper to create a validating parse action to be used with start tags created with makeXMLTags or makeHTMLTags.
source code
 
withClass(classname, namespace='')
Simplified version of withAttribute when matching on a div class - made difficult because class is a reserved word in Python.
source code
 
infixNotation(baseExpr, opList, lpar=Suppress:("("), rpar=Suppress:(")"))
Helper method for constructing grammars of expressions made up of operators working in a precedence hierarchy.
source code
 
operatorPrecedence(baseExpr, opList, lpar=Suppress:("("), rpar=Suppress:(")"))
(Deprecated) Former name of infixNotation, will be dropped in a future release.
source code
 
nestedExpr(opener='(', closer=')', content=None, ignoreExpr=quotedString using single or double quotes)
Helper method for defining nested lists enclosed in opening and closing delimiters ("(" and ")" are the default).
source code
 
indentedBlock(blockStatementExpr, indentStack, indent=True)
Helper method for defining space-delimited indentation blocks, such as those used to define block statements in Python source code.
source code
 
replaceHTMLEntity(t)
Helper parser action to replace common HTML entities with their special characters
source code
Variables
  alphas = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
  nums = '0123456789'
  hexnums = '0123456789ABCDEFabcdef'
  alphanums = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvw...
  printables = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKL...
  empty = empty
  lineStart = lineStart
  lineEnd = lineEnd
  stringStart = stringStart
  stringEnd = stringEnd
  opAssoc = _Constants()
  dblQuotedString = string enclosed in double quotes
  sglQuotedString = string enclosed in single quotes
  quotedString = quotedString using single or double quotes
  unicodeString = unicode string literal
  alphas8bit = u'ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîï...
  punc8bit = u'¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿×÷'
  commonHTMLEntity = common HTML entity
  cStyleComment = C style comment
Comment of the form /* ... */
  htmlComment = HTML comment
Comment of the form <!-- ... -->
  restOfLine = rest of line
  dblSlashComment = // comment
Comment of the form // ... (to end of line)
  cppStyleComment = C++ style comment
Comment of either form cStyleComment or dblSlashComment
  javaStyleComment = C++ style comment
Same as cppStyleComment
  pythonStyleComment = Python style comment
Comment of the form # ... (to end of line)
  commaSeparatedList = commaSeparatedList
(Deprecated) Predefined expression of 1 or more printable words or quoted strings, separated by commas.
  anyCloseTag = </any tag>
  anyOpenTag = <any tag>
Function Details

col(loc, strg)

source code 

Returns current column within a string, counting newlines as line separators. The first column is number 1.

Note: the default parsing behavior is to expand tabs in the input string before starting the parsing process. See ParserElement.parseString for more information on parsing strings containing <TAB>s, and suggested methods to maintain a consistent view of the parsed string, the parse location, and line and column positions within the parsed string.

lineno(loc, strg)

source code 

Returns current line number within a string, counting newlines as line separators. The first line is number 1.

Note: the default parsing behavior is to expand tabs in the input string before starting the parsing process. See ParserElement.parseString for more information on parsing strings containing <TAB>s, and suggested methods to maintain a consistent view of the parsed string, the parse location, and line and column positions within the parsed string.

traceParseAction(f)

source code 

Decorator for debugging parse actions.

When the parse action is called, this decorator will print ">> entering method-name(line:current_source_line, parse_location, matched_tokens)". When the parse action completes, the decorator will print "<<" followed by the returned value, or any exception that the parse action raised.

Example:

   wd = Word(alphas)

   @traceParseAction
   def remove_duplicate_chars(tokens):
       return ''.join(sorted(set(''.join(tokens)))

   wds = OneOrMore(wd).setParseAction(remove_duplicate_chars)
   print(wds.parseString("slkdjs sld sldd sdlf sdljf"))

prints:

   >>entering remove_duplicate_chars(line: 'slkdjs sld sldd sdlf sdljf', 0, (['slkdjs', 'sld', 'sldd', 'sdlf', 'sdljf'], {}))
   <<leaving remove_duplicate_chars (ret: 'dfjkls')
   ['dfjkls']

delimitedList(expr, delim=',', combine=False)

source code 

Helper to define a delimited list of expressions - the delimiter defaults to ','. By default, the list elements and delimiters can have intervening whitespace, and comments, but this can be overridden by passing combine=True in the constructor. If combine is set to True, the matching tokens are returned as a single token string, with the delimiters included; otherwise, the matching tokens are returned as a list of tokens, with the delimiters suppressed.

Example:

   delimitedList(Word(alphas)).parseString("aa,bb,cc") # -> ['aa', 'bb', 'cc']
   delimitedList(Word(hexnums), delim=':', combine=True).parseString("AA:BB:CC:DD:EE") # -> ['AA:BB:CC:DD:EE']

countedArray(expr, intExpr=None)

source code 

Helper to define a counted list of expressions. This helper defines a pattern of the form:

   integer expr expr expr...

where the leading integer tells how many expr expressions follow. The matched tokens returns the array of expr tokens as a list - the leading count token is suppressed.

If intExpr is specified, it should be a pyparsing expression that produces an integer value.

Example:

   countedArray(Word(alphas)).parseString('2 ab cd ef')  # -> ['ab', 'cd']

   # in this parser, the leading integer value is given in binary,
   # '10' indicating that 2 values are in the array
   binaryConstant = Word('01').setParseAction(lambda t: int(t[0], 2))
   countedArray(Word(alphas), intExpr=binaryConstant).parseString('10 ab cd ef')  # -> ['ab', 'cd']

matchPreviousLiteral(expr)

source code 

Helper to define an expression that is indirectly defined from the tokens matched in a previous expression, that is, it looks for a 'repeat' of a previous expression. For example:

   first = Word(nums)
   second = matchPreviousLiteral(first)
   matchExpr = first + ":" + second

will match "1:1", but not "1:2". Because this matches a previous literal, will also match the leading "1:1" in "1:10". If this is not desired, use matchPreviousExpr. Do not use with packrat parsing enabled.

matchPreviousExpr(expr)

source code 

Helper to define an expression that is indirectly defined from the tokens matched in a previous expression, that is, it looks for a 'repeat' of a previous expression. For example:

   first = Word(nums)
   second = matchPreviousExpr(first)
   matchExpr = first + ":" + second

will match "1:1", but not "1:2". Because this matches by expressions, will not match the leading "1:1" in "1:10"; the expressions are evaluated first, and then compared, so "1" is compared with "10". Do not use with packrat parsing enabled.

oneOf(strs, caseless=False, useRegex=True)

source code 

Helper to quickly define a set of alternative Literals, and makes sure to do longest-first testing when there is a conflict, regardless of the input order, but returns a MatchFirst for best performance.

Parameters:

  • strs - a string of space-delimited literals, or a collection of string literals
  • caseless - (default=False) - treat all literals as caseless
  • useRegex - (default=True) - as an optimization, will generate a Regex object; otherwise, will generate a MatchFirst object (if caseless=True, or if creating a Regex raises an exception)

Example:

   comp_oper = oneOf("< = > <= >= !=")
   var = Word(alphas)
   number = Word(nums)
   term = var | number
   comparison_expr = term + comp_oper + term
   print(comparison_expr.searchString("B = 12  AA=23 B<=AA AA>12"))

prints:

   [['B', '=', '12'], ['AA', '=', '23'], ['B', '<=', 'AA'], ['AA', '>', '12']]

dictOf(key, value)

source code 

Helper to easily and clearly define a dictionary by specifying the respective patterns for the key and value. Takes care of defining the Dict, ZeroOrMore, and Group tokens in the proper order. The key pattern can include delimiting markers or punctuation, as long as they are suppressed, thereby leaving the significant key text. The value pattern can include named results, so that the Dict results can include named token fields.

Example:

   text = "shape: SQUARE posn: upper left color: light blue texture: burlap"
   attr_expr = (label + Suppress(':') + OneOrMore(data_word, stopOn=label).setParseAction(' '.join))
   print(OneOrMore(attr_expr).parseString(text).dump())
   
   attr_label = label
   attr_value = Suppress(':') + OneOrMore(data_word, stopOn=label).setParseAction(' '.join)

   # similar to Dict, but simpler call format
   result = dictOf(attr_label, attr_value).parseString(text)
   print(result.dump())
   print(result['shape'])
   print(result.shape)  # object attribute access works too
   print(result.asDict())

prints:

   [['shape', 'SQUARE'], ['posn', 'upper left'], ['color', 'light blue'], ['texture', 'burlap']]
   - color: light blue
   - posn: upper left
   - shape: SQUARE
   - texture: burlap
   SQUARE
   SQUARE
   {'color': 'light blue', 'shape': 'SQUARE', 'posn': 'upper left', 'texture': 'burlap'}

originalTextFor(expr, asString=True)

source code 

Helper to return the original, untokenized text for a given expression. Useful to restore the parsed fields of an HTML start tag into the raw tag text itself, or to revert separate tokens with intervening whitespace back to the original matching input text. By default, returns astring containing the original parsed text.

If the optional asString argument is passed as False, then the return value is a ParseResults containing any results names that were originally matched, and a single token containing the original matched text from the input string. So if the expression passed to originalTextFor contains expressions with defined results names, you must set asString to False if you want to preserve those results name values.

Example:

   src = "this is test <b> bold <i>text</i> </b> normal text "
   for tag in ("b","i"):
       opener,closer = makeHTMLTags(tag)
       patt = originalTextFor(opener + SkipTo(closer) + closer)
       print(patt.searchString(src)[0])

prints:

   ['<b> bold <i>text</i> </b>']
   ['<i>text</i>']

locatedExpr(expr)

source code 

Helper to decorate a returned token with its starting and ending locations in the input string. This helper adds the following results names:

  • locn_start = location where matched expression begins
  • locn_end = location where matched expression ends
  • value = the actual parsed results

Be careful if the input text contains <TAB> characters, you may want to call ParserElement.parseWithTabs

Example:

   wd = Word(alphas)
   for match in locatedExpr(wd).searchString("ljsdf123lksdjjf123lkkjj1222"):
       print(match)

prints:

   [[0, 'ljsdf', 5]]
   [[8, 'lksdjjf', 15]]
   [[18, 'lkkjj', 23]]

srange(s)

source code 

Helper to easily define string ranges for use in Word construction. Borrows syntax from regexp '[]' string range definitions:

   srange("[0-9]")   -> "0123456789"
   srange("[a-z]")   -> "abcdefghijklmnopqrstuvwxyz"
   srange("[a-z$_]") -> "abcdefghijklmnopqrstuvwxyz$_"

The input string must be enclosed in []'s, and the returned string is the expanded character set joined into a single string. The values enclosed in the []'s may be:

  • a single character
  • an escaped character with a leading backslash (such as \- or \])
  • an escaped hex character with a leading '\x' (\x21, which is a '!' character) (\0x## is also supported for backwards compatibility)
  • an escaped octal character with a leading '\0' (\041, which is a '!' character)
  • a range of any of the above, separated by a dash ('a-z', etc.)
  • any combination of the above ('aeiouy', 'a-zA-Z0-9_$', etc.)

replaceWith(replStr)

source code 

Helper method for common parse actions that simply return a literal value. Especially useful when used with transformString().

Example:

   num = Word(nums).setParseAction(lambda toks: int(toks[0]))
   na = oneOf("N/A NA").setParseAction(replaceWith(math.nan))
   term = na | num
   
   OneOrMore(term).parseString("324 234 N/A 234") # -> [324, 234, nan, 234]

removeQuotes(s, l, t)

source code 

Helper parse action for removing quotation marks from parsed quoted strings.

Example:

   # by default, quotation marks are included in parsed results
   quotedString.parseString("'Now is the Winter of our Discontent'") # -> ["'Now is the Winter of our Discontent'"]

   # use removeQuotes to strip quotation marks from parsed results
   quotedString.setParseAction(removeQuotes)
   quotedString.parseString("'Now is the Winter of our Discontent'") # -> ["Now is the Winter of our Discontent"]

tokenMap(func, *args)

source code 

Helper to define a parse action by mapping a function to all elements of a ParseResults list.If any additional args are passed, they are forwarded to the given function as additional arguments after the token, as in hex_integer = Word(hexnums).setParseAction(tokenMap(int, 16)), which will convert the parsed data to an integer using base 16.

Example (compare the last to example in ParserElement.transformString:

   hex_ints = OneOrMore(Word(hexnums)).setParseAction(tokenMap(int, 16))
   hex_ints.runTests('''
       00 11 22 aa FF 0a 0d 1a
       ''')
   
   upperword = Word(alphas).setParseAction(tokenMap(str.upper))
   OneOrMore(upperword).runTests('''
       my kingdom for a horse
       ''')

   wd = Word(alphas).setParseAction(tokenMap(str.title))
   OneOrMore(wd).setParseAction(' '.join).runTests('''
       now is the winter of our discontent made glorious summer by this sun of york
       ''')

prints:

   00 11 22 aa FF 0a 0d 1a
   [0, 17, 34, 170, 255, 10, 13, 26]

   my kingdom for a horse
   ['MY', 'KINGDOM', 'FOR', 'A', 'HORSE']

   now is the winter of our discontent made glorious summer by this sun of york
   ['Now Is The Winter Of Our Discontent Made Glorious Summer By This Sun Of York']

upcaseTokens(s, l, t)

source code 

(Deprecated) Helper parse action to convert tokens to upper case. Deprecated in favor of pyparsing_common.upcaseTokens

downcaseTokens(s, l, t)

source code 

(Deprecated) Helper parse action to convert tokens to lower case. Deprecated in favor of pyparsing_common.downcaseTokens

makeHTMLTags(tagStr)

source code 

Helper to construct opening and closing tag expressions for HTML, given a tag name. Matches tags in either upper or lower case, attributes with namespaces and with quoted or unquoted values.

Example:

   text = '<td>More info at the <a href="http://pyparsing.wikispaces.com">pyparsing</a> wiki page</td>'
   # makeHTMLTags returns pyparsing expressions for the opening and closing tags as a 2-tuple
   a,a_end = makeHTMLTags("A")
   link_expr = a + SkipTo(a_end)("link_text") + a_end
   
   for link in link_expr.searchString(text):
       # attributes in the <A> tag (like "href" shown here) are also accessible as named results
       print(link.link_text, '->', link.href)

prints:

   pyparsing -> http://pyparsing.wikispaces.com

makeXMLTags(tagStr)

source code 

Helper to construct opening and closing tag expressions for XML, given a tag name. Matches tags only in the given upper/lower case.

Example: similar to makeHTMLTags

withAttribute(*args, **attrDict)

source code 

Helper to create a validating parse action to be used with start tags created with makeXMLTags or makeHTMLTags. Use withAttribute to qualify a starting tag with a required attribute value, to avoid false matches on common tags such as <TD> or <DIV>.

Call withAttribute with a series of attribute names and values. Specify the list of filter attributes names and values as:

  • keyword arguments, as in (align="right"), or
  • as an explicit dict with ** operator, when an attribute name is also a Python reserved word, as in **{"class":"Customer", "align":"right"}
  • a list of name-value tuples, as in ( ("ns1:class", "Customer"), ("ns2:align","right") )

For attribute names with a namespace prefix, you must use the second form. Attribute names are matched insensitive to upper/lower case.

If just testing for class (with or without a namespace), use withClass.

To verify that the attribute exists, but without specifying a value, pass withAttribute.ANY_VALUE as the value.

Example:

   html = '''
       <div>
       Some text
       <div type="grid">1 4 0 1 0</div>
       <div type="graph">1,3 2,3 1,1</div>
       <div>this has no type</div>
       </div>
           
   '''
   div,div_end = makeHTMLTags("div")

   # only match div tag having a type attribute with value "grid"
   div_grid = div().setParseAction(withAttribute(type="grid"))
   grid_expr = div_grid + SkipTo(div | div_end)("body")
   for grid_header in grid_expr.searchString(html):
       print(grid_header.body)
   
   # construct a match with any div tag having a type attribute, regardless of the value
   div_any_type = div().setParseAction(withAttribute(type=withAttribute.ANY_VALUE))
   div_expr = div_any_type + SkipTo(div | div_end)("body")
   for div_header in div_expr.searchString(html):
       print(div_header.body)

prints:

   1 4 0 1 0

   1 4 0 1 0
   1,3 2,3 1,1

withClass(classname, namespace='')

source code 

Simplified version of withAttribute when matching on a div class - made difficult because class is a reserved word in Python.

Example:

   html = '''
       <div>
       Some text
       <div class="grid">1 4 0 1 0</div>
       <div class="graph">1,3 2,3 1,1</div>
       <div>this &lt;div&gt; has no class</div>
       </div>
           
   '''
   div,div_end = makeHTMLTags("div")
   div_grid = div().setParseAction(withClass("grid"))
   
   grid_expr = div_grid + SkipTo(div | div_end)("body")
   for grid_header in grid_expr.searchString(html):
       print(grid_header.body)
   
   div_any_type = div().setParseAction(withClass(withAttribute.ANY_VALUE))
   div_expr = div_any_type + SkipTo(div | div_end)("body")
   for div_header in div_expr.searchString(html):
       print(div_header.body)

prints:

   1 4 0 1 0

   1 4 0 1 0
   1,3 2,3 1,1

infixNotation(baseExpr, opList, lpar=Suppress:("("), rpar=Suppress:(")"))

source code 

Helper method for constructing grammars of expressions made up of operators working in a precedence hierarchy. Operators may be unary or binary, left- or right-associative. Parse actions can also be attached to operator expressions. The generated parser will also recognize the use of parentheses to override operator precedences (see example below).

Note: if you define a deep operator list, you may see performance issues when using infixNotation. See ParserElement.enablePackrat for a mechanism to potentially improve your parser performance.

Parameters:

  • baseExpr - expression representing the most basic element for the nested
  • opList - list of tuples, one for each operator precedence level in the expression grammar; each tuple is of the form (opExpr, numTerms, rightLeftAssoc, parseAction), where:
    • opExpr is the pyparsing expression for the operator; may also be a string, which will be converted to a Literal; if numTerms is 3, opExpr is a tuple of two expressions, for the two operators separating the 3 terms
    • numTerms is the number of terms for this operator (must be 1, 2, or 3)
    • rightLeftAssoc is the indicator whether the operator is right or left associative, using the pyparsing-defined constants opAssoc.RIGHT and opAssoc.LEFT.
    • parseAction is the parse action to be associated with expressions matching this operator expression (the parse action tuple member may be omitted); if the parse action is passed a tuple or list of functions, this is equivalent to calling setParseAction(*fn) (ParserElement.setParseAction)
  • lpar - expression for matching left-parentheses (default=Suppress('('))
  • rpar - expression for matching right-parentheses (default=Suppress(')'))

Example:

   # simple example of four-function arithmetic with ints and variable names
   integer = pyparsing_common.signed_integer
   varname = pyparsing_common.identifier 
   
   arith_expr = infixNotation(integer | varname,
       [
       ('-', 1, opAssoc.RIGHT),
       (oneOf('* /'), 2, opAssoc.LEFT),
       (oneOf('+ -'), 2, opAssoc.LEFT),
       ])
   
   arith_expr.runTests('''
       5+3*6
       (5+3)*6
       -2--11
       ''', fullDump=False)

prints:

   5+3*6
   [[5, '+', [3, '*', 6]]]

   (5+3)*6
   [[[5, '+', 3], '*', 6]]

   -2--11
   [[['-', 2], '-', ['-', 11]]]

operatorPrecedence(baseExpr, opList, lpar=Suppress:("("), rpar=Suppress:(")"))

source code 

(Deprecated) Former name of infixNotation, will be dropped in a future release.

nestedExpr(opener='(', closer=')', content=None, ignoreExpr=quotedString using single or double quotes)

source code 

Helper method for defining nested lists enclosed in opening and closing delimiters ("(" and ")" are the default).

Parameters:

  • opener - opening character for a nested list (default="("); can also be a pyparsing expression
  • closer - closing character for a nested list (default=")"); can also be a pyparsing expression
  • content - expression for items within the nested lists (default=None)
  • ignoreExpr - expression for ignoring opening and closing delimiters (default=quotedString)

If an expression is not provided for the content argument, the nested expression will capture all whitespace-delimited content between delimiters as a list of separate values.

Use the ignoreExpr argument to define expressions that may contain opening or closing characters that should not be treated as opening or closing characters for nesting, such as quotedString or a comment expression. Specify multiple expressions using an Or or MatchFirst. The default is quotedString, but if no expressions are to be ignored, then pass None for this argument.

Example:

   data_type = oneOf("void int short long char float double")
   decl_data_type = Combine(data_type + Optional(Word('*')))
   ident = Word(alphas+'_', alphanums+'_')
   number = pyparsing_common.number
   arg = Group(decl_data_type + ident)
   LPAR,RPAR = map(Suppress, "()")

   code_body = nestedExpr('{', '}', ignoreExpr=(quotedString | cStyleComment))

   c_function = (decl_data_type("type") 
                 + ident("name")
                 + LPAR + Optional(delimitedList(arg), [])("args") + RPAR 
                 + code_body("body"))
   c_function.ignore(cStyleComment)
   
   source_code = '''
       int is_odd(int x) { 
           return (x%2); 
       }
           
       int dec_to_hex(char hchar) { 
           if (hchar >= '0' && hchar <= '9') { 
               return (ord(hchar)-ord('0')); 
           } else { 
               return (10+ord(hchar)-ord('A'));
           } 
       }
   '''
   for func in c_function.searchString(source_code):
       print("%(name)s (%(type)s) args: %(args)s" % func)

prints:

   is_odd (int) args: [['int', 'x']]
   dec_to_hex (int) args: [['char', 'hchar']]

indentedBlock(blockStatementExpr, indentStack, indent=True)

source code 

Helper method for defining space-delimited indentation blocks, such as those used to define block statements in Python source code.

Parameters:

  • blockStatementExpr - expression defining syntax of statement that is repeated within the indented block
  • indentStack - list created by caller to manage indentation stack (multiple statementWithIndentedBlock expressions within a single grammar should share a common indentStack)
  • indent - boolean indicating whether block must be indented beyond the the current level; set to False for block of left-most statements (default=True)

A valid block must contain at least one blockStatement.

Example:

   data = '''
   def A(z):
     A1
     B = 100
     G = A2
     A2
     A3
   B
   def BB(a,b,c):
     BB1
     def BBA():
       bba1
       bba2
       bba3
   C
   D
   def spam(x,y):
        def eggs(z):
            pass
   '''


   indentStack = [1]
   stmt = Forward()

   identifier = Word(alphas, alphanums)
   funcDecl = ("def" + identifier + Group( "(" + Optional( delimitedList(identifier) ) + ")" ) + ":")
   func_body = indentedBlock(stmt, indentStack)
   funcDef = Group( funcDecl + func_body )

   rvalue = Forward()
   funcCall = Group(identifier + "(" + Optional(delimitedList(rvalue)) + ")")
   rvalue << (funcCall | identifier | Word(nums))
   assignment = Group(identifier + "=" + rvalue)
   stmt << ( funcDef | assignment | identifier )

   module_body = OneOrMore(stmt)

   parseTree = module_body.parseString(data)
   parseTree.pprint()

prints:

   [['def',
     'A',
     ['(', 'z', ')'],
     ':',
     [['A1'], [['B', '=', '100']], [['G', '=', 'A2']], ['A2'], ['A3']]],
    'B',
    ['def',
     'BB',
     ['(', 'a', 'b', 'c', ')'],
     ':',
     [['BB1'], [['def', 'BBA', ['(', ')'], ':', [['bba1'], ['bba2'], ['bba3']]]]]],
    'C',
    'D',
    ['def',
     'spam',
     ['(', 'x', 'y', ')'],
     ':',
     [[['def', 'eggs', ['(', 'z', ')'], ':', [['pass']]]]]]] 

Variables Details

alphanums

Value:
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'

printables

Value:
'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&\\
'()*+,-./:;<=>?@[\\]^_`{|}~'

alphas8bit

Value:
u'ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ'

commaSeparatedList

(Deprecated) Predefined expression of 1 or more printable words or quoted strings, separated by commas. This expression is deprecated in favor of pyparsing_common.comma_separated_list.

Value:
commaSeparatedList

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.WordStart-class.html0000644000175000017500000004131613057143514022630 0ustar zigozigo pyparsing.WordStart
Module pyparsing :: Class WordStart
[frames] | no frames]

Class WordStart

source code

   object --+            
            |            
ParserElement --+        
                |        
            Token --+    
                    |    
       _PositionToken --+
                        |
                       WordStart

Matches if the current position is at the beginning of a Word, and is not preceded by any character in a given set of wordChars (default=printables). To emulate the  behavior of regular expressions, use WordStart(alphanums). WordStart will also match at the beginning of the string being parsed, or at the beginning of a line.

Instance Methods
 
__init__(self, wordChars='0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXY...)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
parseImpl(self, instring, loc, doActions=True) source code

Inherited from ParserElement: __add__, __and__, __call__, __eq__, __hash__, __invert__, __mul__, __ne__, __or__, __radd__, __rand__, __repr__, __req__, __rmul__, __rne__, __ror__, __rsub__, __rxor__, __str__, __sub__, __xor__, addCondition, addParseAction, canParseNext, checkRecursion, copy, ignore, leaveWhitespace, matches, parseFile, parseString, parseWithTabs, postParse, preParse, runTests, scanString, searchString, setBreak, setDebug, setDebugActions, setFailAction, setName, setParseAction, setResultsName, setWhitespaceChars, split, streamline, suppress, transformString, tryParse, validate

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods

Inherited from ParserElement: enablePackrat, inlineLiteralsUsing, resetCache, setDefaultWhitespaceChars

Class Variables

Inherited from ParserElement: DEFAULT_WHITE_CHARS, packrat_cache, packrat_cache_lock, packrat_cache_stats, verbose_stacktrace

Properties

Inherited from object: __class__

Method Details

__init__(self, wordChars='0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXY...)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

parseImpl(self, instring, loc, doActions=True)

source code 
Overrides: ParserElement.parseImpl

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.Regex.compiledREtype-class.html0000644000175000017500000004010013057143514024663 0ustar zigozigo pyparsing.Regex.compiledREtype
Module pyparsing :: Class Regex :: Class compiledREtype
[frames] | no frames]

Class compiledREtype

object --+
         |
        pyparsing.Regex.compiledREtype

Compiled regular expression objects

Instance Methods
 
__copy__(...)
 
__deepcopy__(...)
 
findall(...)
findall(string[, pos[, endpos]]) --> list.
 
finditer(...)
finditer(string[, pos[, endpos]]) --> iterator.
 
match(...)
match(string[, pos[, endpos]]) --> match object or None.
 
scanner(...)
 
search(...)
search(string[, pos[, endpos]]) --> match object or None.
 
split(...)
split(string[, maxsplit = 0]) --> list.
 
sub(...)
sub(repl, string[, count = 0]) --> newstring Return the string obtained by replacing the leftmost non-overlapping occurrences of pattern in string by the replacement repl.
 
subn(repl, string, count=... = 0) --> (newstring, number of subs)
Return the tuple (new_string, number_of_subs_made) found by replacing the leftmost non-overlapping occurrences of pattern with the replacement repl.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties
  flags
  groupindex
  groups
  pattern

Inherited from object: __class__

Method Details

findall(...)

 

findall(string[, pos[, endpos]]) --> list. Return a list of all non-overlapping matches of pattern in string.

finditer(...)

 

finditer(string[, pos[, endpos]]) --> iterator. Return an iterator over all non-overlapping matches for the RE pattern in string. For each match, the iterator returns a match object.

match(...)

 

match(string[, pos[, endpos]]) --> match object or None. Matches zero or more characters at the beginning of the string

search(...)

 

search(string[, pos[, endpos]]) --> match object or None. Scan through string looking for a match, and return a corresponding match object instance. Return None if no position in the string matches.

split(...)

 

split(string[, maxsplit = 0]) --> list. Split string by the occurrences of pattern.


pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.Group-class.html0000644000175000017500000004201413057143513021766 0ustar zigozigo pyparsing.Group
Module pyparsing :: Class Group
[frames] | no frames]

Class Group

source code

     object --+            
              |            
  ParserElement --+        
                  |        
ParseElementEnhance --+    
                      |    
         TokenConverter --+
                          |
                         Group

Converter to return the matched tokens as a list - useful for returning tokens of ZeroOrMore and OneOrMore expressions.

Example:

   ident = Word(alphas)
   num = Word(nums)
   term = ident | num
   func = ident + Optional(delimitedList(term))
   print(func.parseString("fn a,b,100"))  # -> ['fn', 'a', 'b', '100']

   func = ident + Group(Optional(delimitedList(term)))
   print(func.parseString("fn a,b,100"))  # -> ['fn', ['a', 'b', '100']]
Instance Methods
 
__init__(self, expr)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
postParse(self, instring, loc, tokenlist) source code

Inherited from ParseElementEnhance: __str__, checkRecursion, ignore, leaveWhitespace, parseImpl, streamline, validate

Inherited from ParserElement: __add__, __and__, __call__, __eq__, __hash__, __invert__, __mul__, __ne__, __or__, __radd__, __rand__, __repr__, __req__, __rmul__, __rne__, __ror__, __rsub__, __rxor__, __sub__, __xor__, addCondition, addParseAction, canParseNext, copy, matches, parseFile, parseString, parseWithTabs, preParse, runTests, scanString, searchString, setBreak, setDebug, setDebugActions, setFailAction, setName, setParseAction, setResultsName, setWhitespaceChars, split, suppress, transformString, tryParse

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods

Inherited from ParserElement: enablePackrat, inlineLiteralsUsing, resetCache, setDefaultWhitespaceChars

Class Variables
  __slotnames__ = []

Inherited from ParserElement: DEFAULT_WHITE_CHARS, packrat_cache, packrat_cache_lock, packrat_cache_stats, verbose_stacktrace

Properties

Inherited from object: __class__

Method Details

__init__(self, expr)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

postParse(self, instring, loc, tokenlist)

source code 
Overrides: ParserElement.postParse

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.CaselessKeyword-class.html0000644000175000017500000004222413057143513024004 0ustar zigozigo pyparsing.CaselessKeyword
Module pyparsing :: Class CaselessKeyword
[frames] | no frames]

Class CaselessKeyword

source code

   object --+            
            |            
ParserElement --+        
                |        
            Token --+    
                    |    
              Keyword --+
                        |
                       CaselessKeyword

Caseless version of Keyword.

Example:

   OneOrMore(CaselessKeyword("CMD")).parseString("cmd CMD Cmd10") # -> ['CMD', 'CMD']

(Contrast with example for CaselessLiteral.)

Instance Methods
 
__init__(self, matchString, identChars=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
parseImpl(self, instring, loc, doActions=True) source code

Inherited from Keyword: copy

Inherited from ParserElement: __add__, __and__, __call__, __eq__, __hash__, __invert__, __mul__, __ne__, __or__, __radd__, __rand__, __repr__, __req__, __rmul__, __rne__, __ror__, __rsub__, __rxor__, __str__, __sub__, __xor__, addCondition, addParseAction, canParseNext, checkRecursion, ignore, leaveWhitespace, matches, parseFile, parseString, parseWithTabs, postParse, preParse, runTests, scanString, searchString, setBreak, setDebug, setDebugActions, setFailAction, setName, setParseAction, setResultsName, setWhitespaceChars, split, streamline, suppress, transformString, tryParse, validate

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods

Inherited from Keyword: setDefaultKeywordChars

Inherited from ParserElement: enablePackrat, inlineLiteralsUsing, resetCache, setDefaultWhitespaceChars

Class Variables

Inherited from Keyword: DEFAULT_KEYWORD_CHARS

Inherited from ParserElement: DEFAULT_WHITE_CHARS, packrat_cache, packrat_cache_lock, packrat_cache_stats, verbose_stacktrace

Properties

Inherited from object: __class__

Method Details

__init__(self, matchString, identChars=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

parseImpl(self, instring, loc, doActions=True)

source code 
Overrides: ParserElement.parseImpl

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.ParseExpression-class.html0000644000175000017500000007216313057143513024034 0ustar zigozigo pyparsing.ParseExpression
Module pyparsing :: Class ParseExpression
[frames] | no frames]

Class ParseExpression

source code

   object --+    
            |    
ParserElement --+
                |
               ParseExpression
Known Subclasses:

Abstract subclass of ParserElement, for combining and post-processing parsed tokens.

Instance Methods
 
__init__(self, exprs, savelist=False)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__getitem__(self, i) source code
 
append(self, other) source code
 
leaveWhitespace(self)
Extends leaveWhitespace defined in base class, and also invokes leaveWhitespace on all contained expressions.
source code
 
ignore(self, other)
Define expression to be ignored (e.g., comments) while doing pattern matching; may be called repeatedly, to define multiple comment or other ignorable patterns.
source code
 
__str__(self)
str(x)
source code
 
streamline(self) source code
 
setResultsName(self, name, listAllMatches=False)
Define name for referencing matching tokens as a nested attribute of the returned parse results.
source code
 
validate(self, validateTrace=[])
Check defined expressions for valid structure, check for infinite recursive definitions.
source code
 
copy(self)
Make a copy of this ParserElement.
source code

Inherited from ParserElement: __add__, __and__, __call__, __eq__, __hash__, __invert__, __mul__, __ne__, __or__, __radd__, __rand__, __repr__, __req__, __rmul__, __rne__, __ror__, __rsub__, __rxor__, __sub__, __xor__, addCondition, addParseAction, canParseNext, checkRecursion, matches, parseFile, parseImpl, parseString, parseWithTabs, postParse, preParse, runTests, scanString, searchString, setBreak, setDebug, setDebugActions, setFailAction, setName, setParseAction, setWhitespaceChars, split, suppress, transformString, tryParse

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods

Inherited from ParserElement: enablePackrat, inlineLiteralsUsing, resetCache, setDefaultWhitespaceChars

Class Variables

Inherited from ParserElement: DEFAULT_WHITE_CHARS, packrat_cache, packrat_cache_lock, packrat_cache_stats, verbose_stacktrace

Properties

Inherited from object: __class__

Method Details

__init__(self, exprs, savelist=False)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

leaveWhitespace(self)

source code 

Extends leaveWhitespace defined in base class, and also invokes leaveWhitespace on all contained expressions.

Overrides: ParserElement.leaveWhitespace

ignore(self, other)

source code 

Define expression to be ignored (e.g., comments) while doing pattern matching; may be called repeatedly, to define multiple comment or other ignorable patterns.

Example:

   patt = OneOrMore(Word(alphas))
   patt.parseString('ablaj /* comment */ lskjd') # -> ['ablaj']
   
   patt.ignore(cStyleComment)
   patt.parseString('ablaj /* comment */ lskjd') # -> ['ablaj', 'lskjd']
Overrides: ParserElement.ignore
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

streamline(self)

source code 
Overrides: ParserElement.streamline

setResultsName(self, name, listAllMatches=False)

source code 

Define name for referencing matching tokens as a nested attribute of the returned parse results. NOTE: this returns a *copy* of the original ParserElement object; this is so that the client can define a basic element, such as an integer, and reference it in multiple places with different names.

You can also set results names using the abbreviated syntax, expr("name") in place of expr.setResultsName("name") - see __call__.

Example:

   date_str = (integer.setResultsName("year") + '/' 
               + integer.setResultsName("month") + '/' 
               + integer.setResultsName("day"))

   # equivalent form:
   date_str = integer("year") + '/' + integer("month") + '/' + integer("day")
Overrides: ParserElement.setResultsName
(inherited documentation)

validate(self, validateTrace=[])

source code 

Check defined expressions for valid structure, check for infinite recursive definitions.

Overrides: ParserElement.validate
(inherited documentation)

copy(self)

source code 

Make a copy of this ParserElement. Useful for defining different parse actions for the same parsing pattern, using copies of the original parse element.

Example:

   integer = Word(nums).setParseAction(lambda toks: int(toks[0]))
   integerK = integer.copy().addParseAction(lambda toks: toks[0]*1024) + Suppress("K")
   integerM = integer.copy().addParseAction(lambda toks: toks[0]*1024*1024) + Suppress("M")
   
   print(OneOrMore(integerK | integerM | integer).parseString("5K 100 640K 256M"))

prints:

   [5120, 100, 655360, 268435456]

Equivalent form of expr.copy() is just expr():

   integerM = integer().addParseAction(lambda toks: toks[0]*1024*1024) + Suppress("M")
Overrides: ParserElement.copy
(inherited documentation)

pyparsing-2.2.0+dfsg1/htmldoc/help.html0000644000175000017500000002527513057143513016516 0ustar zigozigo Help
 
[frames] | no frames]

API Documentation

This document contains the API (Application Programming Interface) documentation for pyparsing. Documentation for the Python objects defined by the project is divided into separate pages for each package, module, and class. The API documentation also includes two pages containing information about the project as a whole: a trees page, and an index page.

Object Documentation

Each Package Documentation page contains:

Each Module Documentation page contains:

Each Class Documentation page contains:

Project Documentation

The Trees page contains the module and class hierarchies:

The Index page contains indices of terms and identifiers:

The Table of Contents

The table of contents occupies the two frames on the left side of the window. The upper-left frame displays the project contents, and the lower-left frame displays the module contents:

Project
Contents
...
API
Documentation
Frame


Module
Contents
 
...
 

The project contents frame contains a list of all packages and modules that are defined by the project. Clicking on an entry will display its contents in the module contents frame. Clicking on a special entry, labeled "Everything," will display the contents of the entire project.

The module contents frame contains a list of every submodule, class, type, exception, function, and variable defined by a module or package. Clicking on an entry will display its documentation in the API documentation frame. Clicking on the name of the module, at the top of the frame, will display the documentation for the module itself.

The "frames" and "no frames" buttons below the top navigation bar can be used to control whether the table of contents is displayed or not.

The Navigation Bar

A navigation bar is located at the top and bottom of every page. It indicates what type of page you are currently viewing, and allows you to go to related pages. The following table describes the labels on the navigation bar. Note that not some labels (such as [Parent]) are not displayed on all pages.

Label Highlighted when... Links to...
[Parent] (never highlighted) the parent of the current package
[Package] viewing a package the package containing the current object
[Module] viewing a module the module containing the current object
[Class] viewing a class the class containing the current object
[Trees] viewing the trees page the trees page
[Index] viewing the index page the index page
[Help] viewing the help page the help page

The "show private" and "hide private" buttons below the top navigation bar can be used to control whether documentation for private objects is displayed. Private objects are usually defined as objects whose (short) names begin with a single underscore, but do not end with an underscore. For example, "_x", "__pprint", and "epydoc.epytext._tokenize" are private objects; but "re.sub", "__init__", and "type_" are not. However, if a module defines the "__all__" variable, then its contents are used to decide which objects are private.

A timestamp below the bottom navigation bar indicates when each page was last updated.

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.Or-class.html0000644000175000017500000005015513057143513021257 0ustar zigozigo pyparsing.Or
Module pyparsing :: Class Or
[frames] | no frames]

Class Or

source code

   object --+        
            |        
ParserElement --+    
                |    
  ParseExpression --+
                    |
                   Or

Requires that at least one ParseExpression is found. If two expressions match, the expression that matches the longest string will be used. May be constructed using the '^' operator.

Example:

   # construct Or using '^' operator
   
   number = Word(nums) ^ Combine(Word(nums) + '.' + Word(nums))
   print(number.searchString("123 3.1416 789"))

prints:

   [['123'], ['3.1416'], ['789']]
Instance Methods
 
__init__(self, exprs, savelist=False)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
parseImpl(self, instring, loc, doActions=True) source code
 
__ixor__(self, other) source code
 
__str__(self)
str(x)
source code
 
checkRecursion(self, parseElementList) source code

Inherited from ParseExpression: __getitem__, append, copy, ignore, leaveWhitespace, setResultsName, streamline, validate

Inherited from ParserElement: __add__, __and__, __call__, __eq__, __hash__, __invert__, __mul__, __ne__, __or__, __radd__, __rand__, __repr__, __req__, __rmul__, __rne__, __ror__, __rsub__, __rxor__, __sub__, __xor__, addCondition, addParseAction, canParseNext, matches, parseFile, parseString, parseWithTabs, postParse, preParse, runTests, scanString, searchString, setBreak, setDebug, setDebugActions, setFailAction, setName, setParseAction, setWhitespaceChars, split, suppress, transformString, tryParse

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods

Inherited from ParserElement: enablePackrat, inlineLiteralsUsing, resetCache, setDefaultWhitespaceChars

Class Variables

Inherited from ParserElement: DEFAULT_WHITE_CHARS, packrat_cache, packrat_cache_lock, packrat_cache_stats, verbose_stacktrace

Properties

Inherited from object: __class__

Method Details

__init__(self, exprs, savelist=False)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

parseImpl(self, instring, loc, doActions=True)

source code 
Overrides: ParserElement.parseImpl

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

checkRecursion(self, parseElementList)

source code 
Overrides: ParserElement.checkRecursion

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.Token-class.html0000644000175000017500000003545113057143514021762 0ustar zigozigo pyparsing.Token
Module pyparsing :: Class Token
[frames] | no frames]

Class Token

source code

   object --+    
            |    
ParserElement --+
                |
               Token
Known Subclasses:

Abstract ParserElement subclass, for defining atomic matching patterns.

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code

Inherited from ParserElement: __add__, __and__, __call__, __eq__, __hash__, __invert__, __mul__, __ne__, __or__, __radd__, __rand__, __repr__, __req__, __rmul__, __rne__, __ror__, __rsub__, __rxor__, __str__, __sub__, __xor__, addCondition, addParseAction, canParseNext, checkRecursion, copy, ignore, leaveWhitespace, matches, parseFile, parseImpl, parseString, parseWithTabs, postParse, preParse, runTests, scanString, searchString, setBreak, setDebug, setDebugActions, setFailAction, setName, setParseAction, setResultsName, setWhitespaceChars, split, streamline, suppress, transformString, tryParse, validate

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods

Inherited from ParserElement: enablePackrat, inlineLiteralsUsing, resetCache, setDefaultWhitespaceChars

Class Variables

Inherited from ParserElement: DEFAULT_WHITE_CHARS, packrat_cache, packrat_cache_lock, packrat_cache_stats, verbose_stacktrace

Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.Keyword-class.html0000644000175000017500000005403213057143513022321 0ustar zigozigo pyparsing.Keyword
Module pyparsing :: Class Keyword
[frames] | no frames]

Class Keyword

source code

   object --+        
            |        
ParserElement --+    
                |    
            Token --+
                    |
                   Keyword
Known Subclasses:

Token to exactly match a specified string as a keyword, that is, it must be immediately followed by a non-keyword character. Compare with Literal:

Accepts two optional constructor arguments in addition to the keyword string:

Example:

   Keyword("start").parseString("start")  # -> ['start']
   Keyword("start").parseString("starting")  # -> Exception

For case-insensitive matching, use CaselessKeyword.

Instance Methods
 
__init__(self, matchString, identChars=None, caseless=False)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
parseImpl(self, instring, loc, doActions=True) source code
 
copy(self)
Make a copy of this ParserElement.
source code

Inherited from ParserElement: __add__, __and__, __call__, __eq__, __hash__, __invert__, __mul__, __ne__, __or__, __radd__, __rand__, __repr__, __req__, __rmul__, __rne__, __ror__, __rsub__, __rxor__, __str__, __sub__, __xor__, addCondition, addParseAction, canParseNext, checkRecursion, ignore, leaveWhitespace, matches, parseFile, parseString, parseWithTabs, postParse, preParse, runTests, scanString, searchString, setBreak, setDebug, setDebugActions, setFailAction, setName, setParseAction, setResultsName, setWhitespaceChars, split, streamline, suppress, transformString, tryParse, validate

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods
 
setDefaultKeywordChars(chars)
Overrides the default Keyword chars
source code

Inherited from ParserElement: enablePackrat, inlineLiteralsUsing, resetCache, setDefaultWhitespaceChars

Class Variables
  DEFAULT_KEYWORD_CHARS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijk...

Inherited from ParserElement: DEFAULT_WHITE_CHARS, packrat_cache, packrat_cache_lock, packrat_cache_stats, verbose_stacktrace

Properties

Inherited from object: __class__

Method Details

__init__(self, matchString, identChars=None, caseless=False)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

parseImpl(self, instring, loc, doActions=True)

source code 
Overrides: ParserElement.parseImpl

copy(self)

source code 

Make a copy of this ParserElement. Useful for defining different parse actions for the same parsing pattern, using copies of the original parse element.

Example:

   integer = Word(nums).setParseAction(lambda toks: int(toks[0]))
   integerK = integer.copy().addParseAction(lambda toks: toks[0]*1024) + Suppress("K")
   integerM = integer.copy().addParseAction(lambda toks: toks[0]*1024*1024) + Suppress("M")
   
   print(OneOrMore(integerK | integerM | integer).parseString("5K 100 640K 256M"))

prints:

   [5120, 100, 655360, 268435456]

Equivalent form of expr.copy() is just expr():

   integerM = integer().addParseAction(lambda toks: toks[0]*1024*1024) + Suppress("M")
Overrides: ParserElement.copy
(inherited documentation)

Class Variable Details

DEFAULT_KEYWORD_CHARS

Value:
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_$'

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.StringEnd-class.html0000644000175000017500000003753713057143514022606 0ustar zigozigo pyparsing.StringEnd
Module pyparsing :: Class StringEnd
[frames] | no frames]

Class StringEnd

source code

   object --+            
            |            
ParserElement --+        
                |        
            Token --+    
                    |    
       _PositionToken --+
                        |
                       StringEnd

Matches if current position is at the end of the parse string

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
parseImpl(self, instring, loc, doActions=True) source code

Inherited from ParserElement: __add__, __and__, __call__, __eq__, __hash__, __invert__, __mul__, __ne__, __or__, __radd__, __rand__, __repr__, __req__, __rmul__, __rne__, __ror__, __rsub__, __rxor__, __str__, __sub__, __xor__, addCondition, addParseAction, canParseNext, checkRecursion, copy, ignore, leaveWhitespace, matches, parseFile, parseString, parseWithTabs, postParse, preParse, runTests, scanString, searchString, setBreak, setDebug, setDebugActions, setFailAction, setName, setParseAction, setResultsName, setWhitespaceChars, split, streamline, suppress, transformString, tryParse, validate

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods

Inherited from ParserElement: enablePackrat, inlineLiteralsUsing, resetCache, setDefaultWhitespaceChars

Class Variables

Inherited from ParserElement: DEFAULT_WHITE_CHARS, packrat_cache, packrat_cache_lock, packrat_cache_stats, verbose_stacktrace

Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

parseImpl(self, instring, loc, doActions=True)

source code 
Overrides: ParserElement.parseImpl

pyparsing-2.2.0+dfsg1/htmldoc/module-tree.html0000644000175000017500000000750713057143513020006 0ustar zigozigo Module Hierarchy
 
[frames] | no frames]
[ Module Hierarchy | Class Hierarchy ]

Module Hierarchy

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.Literal-class.html0000644000175000017500000004171713057143513022277 0ustar zigozigo pyparsing.Literal
Module pyparsing :: Class Literal
[frames] | no frames]

Class Literal

source code

   object --+        
            |        
ParserElement --+    
                |    
            Token --+
                    |
                   Literal
Known Subclasses:

Token to exactly match a specified string.

Example:

   Literal('blah').parseString('blah')  # -> ['blah']
   Literal('blah').parseString('blahfooblah')  # -> ['blah']
   Literal('blah').parseString('bla')  # -> Exception: Expected "blah"

For case-insensitive matching, use CaselessLiteral.

For keyword matching (force word break before and after the matched string), use Keyword or CaselessKeyword.

Instance Methods
 
__init__(self, matchString)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
parseImpl(self, instring, loc, doActions=True) source code

Inherited from ParserElement: __add__, __and__, __call__, __eq__, __hash__, __invert__, __mul__, __ne__, __or__, __radd__, __rand__, __repr__, __req__, __rmul__, __rne__, __ror__, __rsub__, __rxor__, __str__, __sub__, __xor__, addCondition, addParseAction, canParseNext, checkRecursion, copy, ignore, leaveWhitespace, matches, parseFile, parseString, parseWithTabs, postParse, preParse, runTests, scanString, searchString, setBreak, setDebug, setDebugActions, setFailAction, setName, setParseAction, setResultsName, setWhitespaceChars, split, streamline, suppress, transformString, tryParse, validate

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods

Inherited from ParserElement: enablePackrat, inlineLiteralsUsing, resetCache, setDefaultWhitespaceChars

Class Variables
  __slotnames__ = []

Inherited from ParserElement: DEFAULT_WHITE_CHARS, packrat_cache, packrat_cache_lock, packrat_cache_stats, verbose_stacktrace

Properties

Inherited from object: __class__

Method Details

__init__(self, matchString)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

parseImpl(self, instring, loc, doActions=True)

source code 
Overrides: ParserElement.parseImpl

pyparsing-2.2.0+dfsg1/htmldoc/api-objects.txt0000644000175000017500000071762313057143515017650 0ustar zigozigopyparsing pyparsing-module.html pyparsing.removeQuotes pyparsing-module.html#removeQuotes pyparsing.alphanums pyparsing-module.html#alphanums pyparsing._bslash pyparsing-module.html#_bslash pyparsing._escapedPunc pyparsing-module.html#_escapedPunc pyparsing._escapedOctChar pyparsing-module.html#_escapedOctChar pyparsing.PY_3 pyparsing-module.html#PY_3 pyparsing._trim_arity pyparsing-module.html#_trim_arity pyparsing.infixNotation pyparsing-module.html#infixNotation pyparsing._defaultStartDebugAction pyparsing-module.html#_defaultStartDebugAction pyparsing._charRange pyparsing-module.html#_charRange pyparsing.withClass pyparsing-module.html#withClass pyparsing.delimitedList pyparsing-module.html#delimitedList pyparsing.lineEnd pyparsing-module.html#lineEnd pyparsing.dictOf pyparsing-module.html#dictOf pyparsing.makeHTMLTags pyparsing-module.html#makeHTMLTags pyparsing.commaSeparatedList pyparsing-module.html#commaSeparatedList pyparsing.stringStart pyparsing-module.html#stringStart pyparsing._makeTags pyparsing-module.html#_makeTags pyparsing._reBracketExpr pyparsing-module.html#_reBracketExpr pyparsing.oneOf pyparsing-module.html#oneOf pyparsing._flatten pyparsing-module.html#_flatten pyparsing.pythonStyleComment pyparsing-module.html#pythonStyleComment pyparsing.__versionTime__ pyparsing-module.html#__versionTime__ pyparsing._ustr pyparsing-module.html#_ustr pyparsing.matchPreviousExpr pyparsing-module.html#matchPreviousExpr pyparsing.matchOnlyAtCol pyparsing-module.html#matchOnlyAtCol pyparsing.cStyleComment pyparsing-module.html#cStyleComment pyparsing.downcaseTokens pyparsing-module.html#downcaseTokens pyparsing._commasepitem pyparsing-module.html#_commasepitem pyparsing._defaultSuccessDebugAction pyparsing-module.html#_defaultSuccessDebugAction pyparsing.lineno pyparsing-module.html#lineno pyparsing.replaceWith pyparsing-module.html#replaceWith pyparsing.alphas8bit pyparsing-module.html#alphas8bit pyparsing._escapeRegexRangeChars pyparsing-module.html#_escapeRegexRangeChars pyparsing._singleChar pyparsing-module.html#_singleChar pyparsing.unicodeString pyparsing-module.html#unicodeString pyparsing.alphas pyparsing-module.html#alphas pyparsing.javaStyleComment pyparsing-module.html#javaStyleComment pyparsing.stringEnd pyparsing-module.html#stringEnd pyparsing.anyCloseTag pyparsing-module.html#anyCloseTag pyparsing.cppStyleComment pyparsing-module.html#cppStyleComment pyparsing.col pyparsing-module.html#col pyparsing.originalTextFor pyparsing-module.html#originalTextFor pyparsing._optionalNotMatched pyparsing-module.html#_optionalNotMatched pyparsing.makeXMLTags pyparsing-module.html#makeXMLTags pyparsing.singleArgBuiltins pyparsing-module.html#singleArgBuiltins pyparsing.traceParseAction pyparsing-module.html#traceParseAction pyparsing.quotedString pyparsing-module.html#quotedString pyparsing.tokenMap pyparsing-module.html#tokenMap pyparsing.withAttribute pyparsing-module.html#withAttribute pyparsing.lineStart pyparsing-module.html#lineStart pyparsing.matchPreviousLiteral pyparsing-module.html#matchPreviousLiteral pyparsing.empty pyparsing-module.html#empty pyparsing._htmlEntityMap pyparsing-module.html#_htmlEntityMap pyparsing.ungroup pyparsing-module.html#ungroup pyparsing.anyOpenTag pyparsing-module.html#anyOpenTag pyparsing.line pyparsing-module.html#line pyparsing.system_version pyparsing-module.html#system_version pyparsing.operatorPrecedence pyparsing-module.html#operatorPrecedence pyparsing.__doc__ pyparsing-module.html#__doc__ pyparsing.upcaseTokens pyparsing-module.html#upcaseTokens pyparsing.opAssoc pyparsing-module.html#opAssoc pyparsing.punc8bit pyparsing-module.html#punc8bit pyparsing.locatedExpr pyparsing-module.html#locatedExpr pyparsing.sglQuotedString pyparsing-module.html#sglQuotedString pyparsing.srange pyparsing-module.html#srange pyparsing.dblSlashComment pyparsing-module.html#dblSlashComment pyparsing._defaultExceptionDebugAction pyparsing-module.html#_defaultExceptionDebugAction pyparsing.nullDebugAction pyparsing-module.html#nullDebugAction pyparsing.unichr pyparsing-module.html#unichr pyparsing.dblQuotedString pyparsing-module.html#dblQuotedString pyparsing.commonHTMLEntity pyparsing-module.html#commonHTMLEntity pyparsing.__package__ pyparsing-module.html#__package__ pyparsing.fname pyparsing-module.html#fname pyparsing.nestedExpr pyparsing-module.html#nestedExpr pyparsing.htmlComment pyparsing-module.html#htmlComment pyparsing.nums pyparsing-module.html#nums pyparsing.countedArray pyparsing-module.html#countedArray pyparsing.restOfLine pyparsing-module.html#restOfLine pyparsing._xml_escape pyparsing-module.html#_xml_escape pyparsing._MAX_INT pyparsing-module.html#_MAX_INT pyparsing._escapedHexChar pyparsing-module.html#_escapedHexChar pyparsing.hexnums pyparsing-module.html#hexnums pyparsing.indentedBlock pyparsing-module.html#indentedBlock pyparsing.replaceHTMLEntity pyparsing-module.html#replaceHTMLEntity pyparsing.printables pyparsing-module.html#printables pyparsing.And pyparsing.And-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.And.__str__ pyparsing.And-class.html#__str__ pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParseExpression.append pyparsing.ParseExpression-class.html#append pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.And.__slotnames__ pyparsing.And-class.html#__slotnames__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.And.parseImpl pyparsing.And-class.html#parseImpl pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.And.__init__ pyparsing.And-class.html#__init__ pyparsing.ParserElement.postParse pyparsing.ParserElement-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParseExpression.leaveWhitespace pyparsing.ParseExpression-class.html#leaveWhitespace pyparsing.ParseExpression.__getitem__ pyparsing.ParseExpression-class.html#__getitem__ pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.ParserElement.suppress pyparsing.ParserElement-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParseExpression.setResultsName pyparsing.ParseExpression-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.ParseExpression.streamline pyparsing.ParseExpression-class.html#streamline pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.ParseExpression.validate pyparsing.ParseExpression-class.html#validate pyparsing.ParseExpression.copy pyparsing.ParseExpression-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.preParse pyparsing.ParserElement-class.html#preParse pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.And.__iadd__ pyparsing.And-class.html#__iadd__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.ParseExpression.ignore pyparsing.ParseExpression-class.html#ignore pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.And.checkRecursion pyparsing.And-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.CaselessKeyword pyparsing.CaselessKeyword-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.CaselessKeyword.__init__ pyparsing.CaselessKeyword-class.html#__init__ pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.Keyword.setDefaultKeywordChars pyparsing.Keyword-class.html#setDefaultKeywordChars pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.CaselessKeyword.parseImpl pyparsing.CaselessKeyword-class.html#parseImpl pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.ParserElement.postParse pyparsing.ParserElement-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.ParserElement.__str__ pyparsing.ParserElement-class.html#__str__ pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.Keyword.DEFAULT_KEYWORD_CHARS pyparsing.Keyword-class.html#DEFAULT_KEYWORD_CHARS pyparsing.ParserElement.leaveWhitespace pyparsing.ParserElement-class.html#leaveWhitespace pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.ParserElement.suppress pyparsing.ParserElement-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParserElement.setResultsName pyparsing.ParserElement-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.ParserElement.ignore pyparsing.ParserElement-class.html#ignore pyparsing.ParserElement.validate pyparsing.ParserElement-class.html#validate pyparsing.Keyword.copy pyparsing.Keyword-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.ParserElement.preParse pyparsing.ParserElement-class.html#preParse pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.streamline pyparsing.ParserElement-class.html#streamline pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.ParserElement.checkRecursion pyparsing.ParserElement-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.CaselessLiteral pyparsing.CaselessLiteral-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.CaselessLiteral.__init__ pyparsing.CaselessLiteral-class.html#__init__ pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.Literal.__slotnames__ pyparsing.Literal-class.html#__slotnames__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.CaselessLiteral.parseImpl pyparsing.CaselessLiteral-class.html#parseImpl pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.ParserElement.postParse pyparsing.ParserElement-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.ParserElement.__str__ pyparsing.ParserElement-class.html#__str__ pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.ParserElement.leaveWhitespace pyparsing.ParserElement-class.html#leaveWhitespace pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.ParserElement.suppress pyparsing.ParserElement-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParserElement.setResultsName pyparsing.ParserElement-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.ParserElement.ignore pyparsing.ParserElement-class.html#ignore pyparsing.ParserElement.validate pyparsing.ParserElement-class.html#validate pyparsing.ParserElement.copy pyparsing.ParserElement-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.ParserElement.preParse pyparsing.ParserElement-class.html#preParse pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.streamline pyparsing.ParserElement-class.html#streamline pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.ParserElement.checkRecursion pyparsing.ParserElement-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.CharsNotIn pyparsing.CharsNotIn-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.CharsNotIn.__str__ pyparsing.CharsNotIn-class.html#__str__ pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.CharsNotIn.__init__ pyparsing.CharsNotIn-class.html#__init__ pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.CharsNotIn.parseImpl pyparsing.CharsNotIn-class.html#parseImpl pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.ParserElement.postParse pyparsing.ParserElement-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.ParserElement.leaveWhitespace pyparsing.ParserElement-class.html#leaveWhitespace pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.ParserElement.suppress pyparsing.ParserElement-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParserElement.setResultsName pyparsing.ParserElement-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.ParserElement.ignore pyparsing.ParserElement-class.html#ignore pyparsing.ParserElement.validate pyparsing.ParserElement-class.html#validate pyparsing.ParserElement.copy pyparsing.ParserElement-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.ParserElement.preParse pyparsing.ParserElement-class.html#preParse pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.streamline pyparsing.ParserElement-class.html#streamline pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.ParserElement.checkRecursion pyparsing.ParserElement-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.CloseMatch pyparsing.CloseMatch-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.CloseMatch.__init__ pyparsing.CloseMatch-class.html#__init__ pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.CloseMatch.parseImpl pyparsing.CloseMatch-class.html#parseImpl pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.ParserElement.postParse pyparsing.ParserElement-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.ParserElement.__str__ pyparsing.ParserElement-class.html#__str__ pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.ParserElement.leaveWhitespace pyparsing.ParserElement-class.html#leaveWhitespace pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.ParserElement.suppress pyparsing.ParserElement-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParserElement.setResultsName pyparsing.ParserElement-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.ParserElement.ignore pyparsing.ParserElement-class.html#ignore pyparsing.ParserElement.validate pyparsing.ParserElement-class.html#validate pyparsing.ParserElement.copy pyparsing.ParserElement-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.ParserElement.preParse pyparsing.ParserElement-class.html#preParse pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.streamline pyparsing.ParserElement-class.html#streamline pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.ParserElement.checkRecursion pyparsing.ParserElement-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.Combine pyparsing.Combine-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.ParseElementEnhance.__str__ pyparsing.ParseElementEnhance-class.html#__str__ pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.Combine.__init__ pyparsing.Combine-class.html#__init__ pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.Combine.__slotnames__ pyparsing.Combine-class.html#__slotnames__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.ParseElementEnhance.parseImpl pyparsing.ParseElementEnhance-class.html#parseImpl pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.Combine.postParse pyparsing.Combine-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.ParseElementEnhance.leaveWhitespace pyparsing.ParseElementEnhance-class.html#leaveWhitespace pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.ParserElement.suppress pyparsing.ParserElement-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParserElement.setResultsName pyparsing.ParserElement-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.ParseElementEnhance.streamline pyparsing.ParseElementEnhance-class.html#streamline pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.ParseElementEnhance.validate pyparsing.ParseElementEnhance-class.html#validate pyparsing.ParserElement.copy pyparsing.ParserElement-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.preParse pyparsing.ParserElement-class.html#preParse pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.Combine.ignore pyparsing.Combine-class.html#ignore pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.ParseElementEnhance.checkRecursion pyparsing.ParseElementEnhance-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.Dict pyparsing.Dict-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.ParseElementEnhance.__str__ pyparsing.ParseElementEnhance-class.html#__str__ pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.Dict.__init__ pyparsing.Dict-class.html#__init__ pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.Dict.__slotnames__ pyparsing.Dict-class.html#__slotnames__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.ParseElementEnhance.parseImpl pyparsing.ParseElementEnhance-class.html#parseImpl pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.Dict.postParse pyparsing.Dict-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.ParseElementEnhance.leaveWhitespace pyparsing.ParseElementEnhance-class.html#leaveWhitespace pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.ParserElement.suppress pyparsing.ParserElement-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParserElement.setResultsName pyparsing.ParserElement-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.ParseElementEnhance.streamline pyparsing.ParseElementEnhance-class.html#streamline pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.ParseElementEnhance.validate pyparsing.ParseElementEnhance-class.html#validate pyparsing.ParserElement.copy pyparsing.ParserElement-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.preParse pyparsing.ParserElement-class.html#preParse pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.ParseElementEnhance.ignore pyparsing.ParseElementEnhance-class.html#ignore pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.ParseElementEnhance.checkRecursion pyparsing.ParseElementEnhance-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.Each pyparsing.Each-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.Each.__str__ pyparsing.Each-class.html#__str__ pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParseExpression.append pyparsing.ParseExpression-class.html#append pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.Each.parseImpl pyparsing.Each-class.html#parseImpl pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.Each.__init__ pyparsing.Each-class.html#__init__ pyparsing.ParserElement.postParse pyparsing.ParserElement-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParseExpression.leaveWhitespace pyparsing.ParseExpression-class.html#leaveWhitespace pyparsing.ParseExpression.__getitem__ pyparsing.ParseExpression-class.html#__getitem__ pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.ParserElement.suppress pyparsing.ParserElement-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParseExpression.setResultsName pyparsing.ParseExpression-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.ParseExpression.streamline pyparsing.ParseExpression-class.html#streamline pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.ParseExpression.validate pyparsing.ParseExpression-class.html#validate pyparsing.ParseExpression.copy pyparsing.ParseExpression-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.preParse pyparsing.ParserElement-class.html#preParse pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.ParseExpression.ignore pyparsing.ParseExpression-class.html#ignore pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.Each.checkRecursion pyparsing.Each-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.Empty pyparsing.Empty-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.Empty.__init__ pyparsing.Empty-class.html#__init__ pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.ParserElement.parseImpl pyparsing.ParserElement-class.html#parseImpl pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.ParserElement.postParse pyparsing.ParserElement-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.ParserElement.__str__ pyparsing.ParserElement-class.html#__str__ pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.ParserElement.leaveWhitespace pyparsing.ParserElement-class.html#leaveWhitespace pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.ParserElement.suppress pyparsing.ParserElement-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParserElement.setResultsName pyparsing.ParserElement-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.ParserElement.ignore pyparsing.ParserElement-class.html#ignore pyparsing.ParserElement.validate pyparsing.ParserElement-class.html#validate pyparsing.ParserElement.copy pyparsing.ParserElement-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.ParserElement.preParse pyparsing.ParserElement-class.html#preParse pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.streamline pyparsing.ParserElement-class.html#streamline pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.ParserElement.checkRecursion pyparsing.ParserElement-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.FollowedBy pyparsing.FollowedBy-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.ParseElementEnhance.__str__ pyparsing.ParseElementEnhance-class.html#__str__ pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.FollowedBy.__init__ pyparsing.FollowedBy-class.html#__init__ pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.FollowedBy.parseImpl pyparsing.FollowedBy-class.html#parseImpl pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.ParserElement.postParse pyparsing.ParserElement-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.ParseElementEnhance.leaveWhitespace pyparsing.ParseElementEnhance-class.html#leaveWhitespace pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.ParserElement.suppress pyparsing.ParserElement-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParserElement.setResultsName pyparsing.ParserElement-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.ParseElementEnhance.streamline pyparsing.ParseElementEnhance-class.html#streamline pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.ParseElementEnhance.validate pyparsing.ParseElementEnhance-class.html#validate pyparsing.ParserElement.copy pyparsing.ParserElement-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.preParse pyparsing.ParserElement-class.html#preParse pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.ParseElementEnhance.ignore pyparsing.ParseElementEnhance-class.html#ignore pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.ParseElementEnhance.checkRecursion pyparsing.ParseElementEnhance-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.Forward pyparsing.Forward-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.Forward.__str__ pyparsing.Forward-class.html#__str__ pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.Forward.__init__ pyparsing.Forward-class.html#__init__ pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.ParseElementEnhance.parseImpl pyparsing.ParseElementEnhance-class.html#parseImpl pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.ParserElement.postParse pyparsing.ParserElement-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.Forward.leaveWhitespace pyparsing.Forward-class.html#leaveWhitespace pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.ParserElement.suppress pyparsing.ParserElement-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParserElement.setResultsName pyparsing.ParserElement-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.Forward.streamline pyparsing.Forward-class.html#streamline pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.Forward.__lshift__ pyparsing.Forward-class.html#__lshift__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.Forward.validate pyparsing.Forward-class.html#validate pyparsing.Forward.copy pyparsing.Forward-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.Forward.__ilshift__ pyparsing.Forward-class.html#__ilshift__ pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.preParse pyparsing.ParserElement-class.html#preParse pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.ParseElementEnhance.ignore pyparsing.ParseElementEnhance-class.html#ignore pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.ParseElementEnhance.checkRecursion pyparsing.ParseElementEnhance-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.GoToColumn pyparsing.GoToColumn-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.GoToColumn.__init__ pyparsing.GoToColumn-class.html#__init__ pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.GoToColumn.parseImpl pyparsing.GoToColumn-class.html#parseImpl pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.ParserElement.postParse pyparsing.ParserElement-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.ParserElement.__str__ pyparsing.ParserElement-class.html#__str__ pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.ParserElement.leaveWhitespace pyparsing.ParserElement-class.html#leaveWhitespace pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.ParserElement.suppress pyparsing.ParserElement-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParserElement.setResultsName pyparsing.ParserElement-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.ParserElement.ignore pyparsing.ParserElement-class.html#ignore pyparsing.ParserElement.validate pyparsing.ParserElement-class.html#validate pyparsing.ParserElement.copy pyparsing.ParserElement-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.GoToColumn.preParse pyparsing.GoToColumn-class.html#preParse pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.streamline pyparsing.ParserElement-class.html#streamline pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.ParserElement.checkRecursion pyparsing.ParserElement-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.Group pyparsing.Group-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.ParseElementEnhance.__str__ pyparsing.ParseElementEnhance-class.html#__str__ pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.Group.__init__ pyparsing.Group-class.html#__init__ pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.Group.__slotnames__ pyparsing.Group-class.html#__slotnames__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.ParseElementEnhance.parseImpl pyparsing.ParseElementEnhance-class.html#parseImpl pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.Group.postParse pyparsing.Group-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.ParseElementEnhance.leaveWhitespace pyparsing.ParseElementEnhance-class.html#leaveWhitespace pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.ParserElement.suppress pyparsing.ParserElement-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParserElement.setResultsName pyparsing.ParserElement-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.ParseElementEnhance.streamline pyparsing.ParseElementEnhance-class.html#streamline pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.ParseElementEnhance.validate pyparsing.ParseElementEnhance-class.html#validate pyparsing.ParserElement.copy pyparsing.ParserElement-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.preParse pyparsing.ParserElement-class.html#preParse pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.ParseElementEnhance.ignore pyparsing.ParseElementEnhance-class.html#ignore pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.ParseElementEnhance.checkRecursion pyparsing.ParseElementEnhance-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.Keyword pyparsing.Keyword-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.Keyword.__init__ pyparsing.Keyword-class.html#__init__ pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.Keyword.setDefaultKeywordChars pyparsing.Keyword-class.html#setDefaultKeywordChars pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.Keyword.parseImpl pyparsing.Keyword-class.html#parseImpl pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.ParserElement.postParse pyparsing.ParserElement-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.ParserElement.__str__ pyparsing.ParserElement-class.html#__str__ pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.Keyword.DEFAULT_KEYWORD_CHARS pyparsing.Keyword-class.html#DEFAULT_KEYWORD_CHARS pyparsing.ParserElement.leaveWhitespace pyparsing.ParserElement-class.html#leaveWhitespace pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.ParserElement.suppress pyparsing.ParserElement-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParserElement.setResultsName pyparsing.ParserElement-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.ParserElement.ignore pyparsing.ParserElement-class.html#ignore pyparsing.ParserElement.validate pyparsing.ParserElement-class.html#validate pyparsing.Keyword.copy pyparsing.Keyword-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.ParserElement.preParse pyparsing.ParserElement-class.html#preParse pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.streamline pyparsing.ParserElement-class.html#streamline pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.ParserElement.checkRecursion pyparsing.ParserElement-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.LineEnd pyparsing.LineEnd-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.LineEnd.__init__ pyparsing.LineEnd-class.html#__init__ pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.LineEnd.__slotnames__ pyparsing.LineEnd-class.html#__slotnames__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.LineEnd.parseImpl pyparsing.LineEnd-class.html#parseImpl pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.ParserElement.postParse pyparsing.ParserElement-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.ParserElement.__str__ pyparsing.ParserElement-class.html#__str__ pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.ParserElement.leaveWhitespace pyparsing.ParserElement-class.html#leaveWhitespace pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.ParserElement.suppress pyparsing.ParserElement-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParserElement.setResultsName pyparsing.ParserElement-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.ParserElement.ignore pyparsing.ParserElement-class.html#ignore pyparsing.ParserElement.validate pyparsing.ParserElement-class.html#validate pyparsing.ParserElement.copy pyparsing.ParserElement-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.ParserElement.preParse pyparsing.ParserElement-class.html#preParse pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.streamline pyparsing.ParserElement-class.html#streamline pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.ParserElement.checkRecursion pyparsing.ParserElement-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.LineStart pyparsing.LineStart-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.LineStart.__init__ pyparsing.LineStart-class.html#__init__ pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.LineStart.parseImpl pyparsing.LineStart-class.html#parseImpl pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.ParserElement.postParse pyparsing.ParserElement-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.ParserElement.__str__ pyparsing.ParserElement-class.html#__str__ pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.ParserElement.leaveWhitespace pyparsing.ParserElement-class.html#leaveWhitespace pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.ParserElement.suppress pyparsing.ParserElement-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParserElement.setResultsName pyparsing.ParserElement-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.ParserElement.ignore pyparsing.ParserElement-class.html#ignore pyparsing.ParserElement.validate pyparsing.ParserElement-class.html#validate pyparsing.ParserElement.copy pyparsing.ParserElement-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.ParserElement.preParse pyparsing.ParserElement-class.html#preParse pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.streamline pyparsing.ParserElement-class.html#streamline pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.ParserElement.checkRecursion pyparsing.ParserElement-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.Literal pyparsing.Literal-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.Literal.__init__ pyparsing.Literal-class.html#__init__ pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.Literal.__slotnames__ pyparsing.Literal-class.html#__slotnames__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.Literal.parseImpl pyparsing.Literal-class.html#parseImpl pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.ParserElement.postParse pyparsing.ParserElement-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.ParserElement.__str__ pyparsing.ParserElement-class.html#__str__ pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.ParserElement.leaveWhitespace pyparsing.ParserElement-class.html#leaveWhitespace pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.ParserElement.suppress pyparsing.ParserElement-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParserElement.setResultsName pyparsing.ParserElement-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.ParserElement.ignore pyparsing.ParserElement-class.html#ignore pyparsing.ParserElement.validate pyparsing.ParserElement-class.html#validate pyparsing.ParserElement.copy pyparsing.ParserElement-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.ParserElement.preParse pyparsing.ParserElement-class.html#preParse pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.streamline pyparsing.ParserElement-class.html#streamline pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.ParserElement.checkRecursion pyparsing.ParserElement-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.MatchFirst pyparsing.MatchFirst-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.MatchFirst.__str__ pyparsing.MatchFirst-class.html#__str__ pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParseExpression.append pyparsing.ParseExpression-class.html#append pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.MatchFirst.__slotnames__ pyparsing.MatchFirst-class.html#__slotnames__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.MatchFirst.parseImpl pyparsing.MatchFirst-class.html#parseImpl pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.MatchFirst.__init__ pyparsing.MatchFirst-class.html#__init__ pyparsing.ParserElement.postParse pyparsing.ParserElement-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParseExpression.leaveWhitespace pyparsing.ParseExpression-class.html#leaveWhitespace pyparsing.ParseExpression.__getitem__ pyparsing.ParseExpression-class.html#__getitem__ pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.ParserElement.suppress pyparsing.ParserElement-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParseExpression.setResultsName pyparsing.ParseExpression-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.ParseExpression.streamline pyparsing.ParseExpression-class.html#streamline pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.ParseExpression.validate pyparsing.ParseExpression-class.html#validate pyparsing.ParseExpression.copy pyparsing.ParseExpression-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.preParse pyparsing.ParserElement-class.html#preParse pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.ParseExpression.ignore pyparsing.ParseExpression-class.html#ignore pyparsing.MatchFirst.__ior__ pyparsing.MatchFirst-class.html#__ior__ pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.MatchFirst.checkRecursion pyparsing.MatchFirst-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.NoMatch pyparsing.NoMatch-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.NoMatch.__init__ pyparsing.NoMatch-class.html#__init__ pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.NoMatch.parseImpl pyparsing.NoMatch-class.html#parseImpl pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.ParserElement.postParse pyparsing.ParserElement-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.ParserElement.__str__ pyparsing.ParserElement-class.html#__str__ pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.ParserElement.leaveWhitespace pyparsing.ParserElement-class.html#leaveWhitespace pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.ParserElement.suppress pyparsing.ParserElement-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParserElement.setResultsName pyparsing.ParserElement-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.ParserElement.ignore pyparsing.ParserElement-class.html#ignore pyparsing.ParserElement.validate pyparsing.ParserElement-class.html#validate pyparsing.ParserElement.copy pyparsing.ParserElement-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.ParserElement.preParse pyparsing.ParserElement-class.html#preParse pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.streamline pyparsing.ParserElement-class.html#streamline pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.ParserElement.checkRecursion pyparsing.ParserElement-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.NotAny pyparsing.NotAny-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.NotAny.__str__ pyparsing.NotAny-class.html#__str__ pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.NotAny.__init__ pyparsing.NotAny-class.html#__init__ pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.NotAny.__slotnames__ pyparsing.NotAny-class.html#__slotnames__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.NotAny.parseImpl pyparsing.NotAny-class.html#parseImpl pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.ParserElement.postParse pyparsing.ParserElement-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.ParseElementEnhance.leaveWhitespace pyparsing.ParseElementEnhance-class.html#leaveWhitespace pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.ParserElement.suppress pyparsing.ParserElement-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParserElement.setResultsName pyparsing.ParserElement-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.ParseElementEnhance.streamline pyparsing.ParseElementEnhance-class.html#streamline pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.ParseElementEnhance.validate pyparsing.ParseElementEnhance-class.html#validate pyparsing.ParserElement.copy pyparsing.ParserElement-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.preParse pyparsing.ParserElement-class.html#preParse pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.ParseElementEnhance.ignore pyparsing.ParseElementEnhance-class.html#ignore pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.ParseElementEnhance.checkRecursion pyparsing.ParseElementEnhance-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.OneOrMore pyparsing.OneOrMore-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.OneOrMore.__str__ pyparsing.OneOrMore-class.html#__str__ pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.OneOrMore.__slotnames__ pyparsing.OneOrMore-class.html#__slotnames__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.ParserElement.postParse pyparsing.ParserElement-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.ParseElementEnhance.leaveWhitespace pyparsing.ParseElementEnhance-class.html#leaveWhitespace pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.ParserElement.suppress pyparsing.ParserElement-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParserElement.setResultsName pyparsing.ParserElement-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.ParseElementEnhance.streamline pyparsing.ParseElementEnhance-class.html#streamline pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.ParseElementEnhance.validate pyparsing.ParseElementEnhance-class.html#validate pyparsing.ParserElement.copy pyparsing.ParserElement-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.preParse pyparsing.ParserElement-class.html#preParse pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.ParseElementEnhance.ignore pyparsing.ParseElementEnhance-class.html#ignore pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.ParseElementEnhance.checkRecursion pyparsing.ParseElementEnhance-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.OnlyOnce pyparsing.OnlyOnce-class.html pyparsing.OnlyOnce.reset pyparsing.OnlyOnce-class.html#reset pyparsing.OnlyOnce.__call__ pyparsing.OnlyOnce-class.html#__call__ pyparsing.OnlyOnce.__init__ pyparsing.OnlyOnce-class.html#__init__ pyparsing.Optional pyparsing.Optional-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.Optional.__str__ pyparsing.Optional-class.html#__str__ pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.Optional.__init__ pyparsing.Optional-class.html#__init__ pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.Optional.__slotnames__ pyparsing.Optional-class.html#__slotnames__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.Optional.parseImpl pyparsing.Optional-class.html#parseImpl pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.ParserElement.postParse pyparsing.ParserElement-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.ParseElementEnhance.leaveWhitespace pyparsing.ParseElementEnhance-class.html#leaveWhitespace pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.ParserElement.suppress pyparsing.ParserElement-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParserElement.setResultsName pyparsing.ParserElement-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.ParseElementEnhance.streamline pyparsing.ParseElementEnhance-class.html#streamline pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.ParseElementEnhance.validate pyparsing.ParseElementEnhance-class.html#validate pyparsing.ParserElement.copy pyparsing.ParserElement-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.preParse pyparsing.ParserElement-class.html#preParse pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.ParseElementEnhance.ignore pyparsing.ParseElementEnhance-class.html#ignore pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.ParseElementEnhance.checkRecursion pyparsing.ParseElementEnhance-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.Or pyparsing.Or-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.Or.__str__ pyparsing.Or-class.html#__str__ pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParseExpression.append pyparsing.ParseExpression-class.html#append pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.Or.parseImpl pyparsing.Or-class.html#parseImpl pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.Or.__init__ pyparsing.Or-class.html#__init__ pyparsing.ParserElement.postParse pyparsing.ParserElement-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.Or.__ixor__ pyparsing.Or-class.html#__ixor__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParseExpression.leaveWhitespace pyparsing.ParseExpression-class.html#leaveWhitespace pyparsing.ParseExpression.__getitem__ pyparsing.ParseExpression-class.html#__getitem__ pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.ParserElement.suppress pyparsing.ParserElement-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParseExpression.setResultsName pyparsing.ParseExpression-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.ParseExpression.streamline pyparsing.ParseExpression-class.html#streamline pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.ParseExpression.validate pyparsing.ParseExpression-class.html#validate pyparsing.ParseExpression.copy pyparsing.ParseExpression-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.preParse pyparsing.ParserElement-class.html#preParse pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.ParseExpression.ignore pyparsing.ParseExpression-class.html#ignore pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.Or.checkRecursion pyparsing.Or-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.ParseBaseException pyparsing.ParseBaseException-class.html pyparsing.ParseBaseException.__str__ pyparsing.ParseBaseException-class.html#__str__ pyparsing.ParseBaseException.__init__ pyparsing.ParseBaseException-class.html#__init__ pyparsing.ParseBaseException.__getattr__ pyparsing.ParseBaseException-class.html#__getattr__ pyparsing.ParseBaseException.__dir__ pyparsing.ParseBaseException-class.html#__dir__ pyparsing.ParseBaseException.markInputline pyparsing.ParseBaseException-class.html#markInputline pyparsing.ParseBaseException.__repr__ pyparsing.ParseBaseException-class.html#__repr__ pyparsing.ParseBaseException._from_exception pyparsing.ParseBaseException-class.html#_from_exception pyparsing.ParseElementEnhance pyparsing.ParseElementEnhance-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.ParseElementEnhance.__str__ pyparsing.ParseElementEnhance-class.html#__str__ pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.ParseElementEnhance.__init__ pyparsing.ParseElementEnhance-class.html#__init__ pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.ParseElementEnhance.parseImpl pyparsing.ParseElementEnhance-class.html#parseImpl pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.ParserElement.postParse pyparsing.ParserElement-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.ParseElementEnhance.leaveWhitespace pyparsing.ParseElementEnhance-class.html#leaveWhitespace pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.ParserElement.suppress pyparsing.ParserElement-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParserElement.setResultsName pyparsing.ParserElement-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.ParseElementEnhance.streamline pyparsing.ParseElementEnhance-class.html#streamline pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.ParseElementEnhance.validate pyparsing.ParseElementEnhance-class.html#validate pyparsing.ParserElement.copy pyparsing.ParserElement-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.preParse pyparsing.ParserElement-class.html#preParse pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.ParseElementEnhance.ignore pyparsing.ParseElementEnhance-class.html#ignore pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.ParseElementEnhance.checkRecursion pyparsing.ParseElementEnhance-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.ParseException pyparsing.ParseException-class.html pyparsing.ParseBaseException.__str__ pyparsing.ParseBaseException-class.html#__str__ pyparsing.ParseBaseException.__init__ pyparsing.ParseBaseException-class.html#__init__ pyparsing.ParseBaseException.__getattr__ pyparsing.ParseBaseException-class.html#__getattr__ pyparsing.ParseBaseException.__dir__ pyparsing.ParseBaseException-class.html#__dir__ pyparsing.ParseBaseException.markInputline pyparsing.ParseBaseException-class.html#markInputline pyparsing.ParseBaseException.__repr__ pyparsing.ParseBaseException-class.html#__repr__ pyparsing.ParseBaseException._from_exception pyparsing.ParseBaseException-class.html#_from_exception pyparsing.ParseExpression pyparsing.ParseExpression-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.ParseExpression.__str__ pyparsing.ParseExpression-class.html#__str__ pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.ParseExpression.__init__ pyparsing.ParseExpression-class.html#__init__ pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.ParserElement.parseImpl pyparsing.ParserElement-class.html#parseImpl pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.ParseExpression.append pyparsing.ParseExpression-class.html#append pyparsing.ParserElement.postParse pyparsing.ParserElement-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParseExpression.leaveWhitespace pyparsing.ParseExpression-class.html#leaveWhitespace pyparsing.ParseExpression.__getitem__ pyparsing.ParseExpression-class.html#__getitem__ pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.ParserElement.suppress pyparsing.ParserElement-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParseExpression.setResultsName pyparsing.ParseExpression-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.ParseExpression.streamline pyparsing.ParseExpression-class.html#streamline pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.ParseExpression.validate pyparsing.ParseExpression-class.html#validate pyparsing.ParseExpression.copy pyparsing.ParseExpression-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.preParse pyparsing.ParserElement-class.html#preParse pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.ParseExpression.ignore pyparsing.ParseExpression-class.html#ignore pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.ParserElement.checkRecursion pyparsing.ParserElement-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.ParseFatalException pyparsing.ParseFatalException-class.html pyparsing.ParseBaseException.__str__ pyparsing.ParseBaseException-class.html#__str__ pyparsing.ParseBaseException.__init__ pyparsing.ParseBaseException-class.html#__init__ pyparsing.ParseBaseException.__getattr__ pyparsing.ParseBaseException-class.html#__getattr__ pyparsing.ParseBaseException.__dir__ pyparsing.ParseBaseException-class.html#__dir__ pyparsing.ParseBaseException.markInputline pyparsing.ParseBaseException-class.html#markInputline pyparsing.ParseBaseException.__repr__ pyparsing.ParseBaseException-class.html#__repr__ pyparsing.ParseBaseException._from_exception pyparsing.ParseBaseException-class.html#_from_exception pyparsing.ParseResults pyparsing.ParseResults-class.html pyparsing.ParseResults.haskeys pyparsing.ParseResults-class.html#haskeys pyparsing.ParseResults.asXML pyparsing.ParseResults-class.html#asXML pyparsing.ParseResults.dump pyparsing.ParseResults-class.html#dump pyparsing.ParseResults.__str__ pyparsing.ParseResults-class.html#__str__ pyparsing.ParseResults.pop pyparsing.ParseResults-class.html#pop pyparsing.ParseResults.__radd__ pyparsing.ParseResults-class.html#__radd__ pyparsing.ParseResults.__getnewargs__ pyparsing.ParseResults-class.html#__getnewargs__ pyparsing.ParseResults.__init__ pyparsing.ParseResults-class.html#__init__ pyparsing.ParseResults.__lookup pyparsing.ParseResults-class.html#__lookup pyparsing.ParseResults.__new__ pyparsing.ParseResults-class.html#__new__ pyparsing.ParseResults.__contains__ pyparsing.ParseResults-class.html#__contains__ pyparsing.ParseResults.getName pyparsing.ParseResults-class.html#getName pyparsing.ParseResults.pprint pyparsing.ParseResults-class.html#pprint pyparsing.ParseResults._asStringList pyparsing.ParseResults-class.html#_asStringList pyparsing.ParseResults.__getattr__ pyparsing.ParseResults-class.html#__getattr__ pyparsing.ParseResults.append pyparsing.ParseResults-class.html#append pyparsing.ParseResults.itervalues pyparsing.ParseResults-class.html#itervalues pyparsing.ParseResults.__getstate__ pyparsing.ParseResults-class.html#__getstate__ pyparsing.ParseResults._iterkeys pyparsing.ParseResults-class.html#_iterkeys pyparsing.ParseResults.__len__ pyparsing.ParseResults-class.html#__len__ pyparsing.ParseResults._iteritems pyparsing.ParseResults-class.html#_iteritems pyparsing.ParseResults.__getitem__ pyparsing.ParseResults-class.html#__getitem__ pyparsing.ParseResults.get pyparsing.ParseResults-class.html#get pyparsing.ParseResults.keys pyparsing.ParseResults-class.html#keys pyparsing.ParseResults.__iter__ pyparsing.ParseResults-class.html#__iter__ pyparsing.ParseResults.__add__ pyparsing.ParseResults-class.html#__add__ pyparsing.ParseResults.iteritems pyparsing.ParseResults-class.html#iteritems pyparsing.ParseResults.__bool__ pyparsing.ParseResults-class.html#__bool__ pyparsing.ParseResults.copy pyparsing.ParseResults-class.html#copy pyparsing.ParseResults.iterkeys pyparsing.ParseResults-class.html#iterkeys pyparsing.ParseResults.asList pyparsing.ParseResults-class.html#asList pyparsing.ParseResults.extend pyparsing.ParseResults-class.html#extend pyparsing.ParseResults.__delitem__ pyparsing.ParseResults-class.html#__delitem__ pyparsing.ParseResults.__reversed__ pyparsing.ParseResults-class.html#__reversed__ pyparsing.ParseResults.__nonzero__ pyparsing.ParseResults-class.html#__nonzero__ pyparsing.ParseResults._itervalues pyparsing.ParseResults-class.html#_itervalues pyparsing.ParseResults.__setstate__ pyparsing.ParseResults-class.html#__setstate__ pyparsing.ParseResults.insert pyparsing.ParseResults-class.html#insert pyparsing.ParseResults.__setitem__ pyparsing.ParseResults-class.html#__setitem__ pyparsing.ParseResults.__iadd__ pyparsing.ParseResults-class.html#__iadd__ pyparsing.ParseResults.values pyparsing.ParseResults-class.html#values pyparsing.ParseResults.__repr__ pyparsing.ParseResults-class.html#__repr__ pyparsing.ParseResults.asDict pyparsing.ParseResults-class.html#asDict pyparsing.ParseResults.items pyparsing.ParseResults-class.html#items pyparsing.ParseResults.__dir__ pyparsing.ParseResults-class.html#__dir__ pyparsing.ParseResults.clear pyparsing.ParseResults-class.html#clear pyparsing.ParseSyntaxException pyparsing.ParseSyntaxException-class.html pyparsing.ParseBaseException.__str__ pyparsing.ParseBaseException-class.html#__str__ pyparsing.ParseBaseException.__init__ pyparsing.ParseBaseException-class.html#__init__ pyparsing.ParseBaseException.__getattr__ pyparsing.ParseBaseException-class.html#__getattr__ pyparsing.ParseBaseException.__dir__ pyparsing.ParseBaseException-class.html#__dir__ pyparsing.ParseBaseException.markInputline pyparsing.ParseBaseException-class.html#markInputline pyparsing.ParseBaseException.__repr__ pyparsing.ParseBaseException-class.html#__repr__ pyparsing.ParseBaseException._from_exception pyparsing.ParseBaseException-class.html#_from_exception pyparsing.ParserElement pyparsing.ParserElement-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.ParserElement.__init__ pyparsing.ParserElement-class.html#__init__ pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.ParserElement.parseImpl pyparsing.ParserElement-class.html#parseImpl pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.ParserElement.postParse pyparsing.ParserElement-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.ParserElement.__str__ pyparsing.ParserElement-class.html#__str__ pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParserElement.leaveWhitespace pyparsing.ParserElement-class.html#leaveWhitespace pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.ParserElement.suppress pyparsing.ParserElement-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.ParserElement.setResultsName pyparsing.ParserElement-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.ParserElement.validate pyparsing.ParserElement-class.html#validate pyparsing.ParserElement.copy pyparsing.ParserElement-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.preParse pyparsing.ParserElement-class.html#preParse pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.ParserElement.ignore pyparsing.ParserElement-class.html#ignore pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.streamline pyparsing.ParserElement-class.html#streamline pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.checkRecursion pyparsing.ParserElement-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.QuotedString pyparsing.QuotedString-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.QuotedString.__str__ pyparsing.QuotedString-class.html#__str__ pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.QuotedString.__init__ pyparsing.QuotedString-class.html#__init__ pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.QuotedString.parseImpl pyparsing.QuotedString-class.html#parseImpl pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.ParserElement.postParse pyparsing.ParserElement-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.ParserElement.leaveWhitespace pyparsing.ParserElement-class.html#leaveWhitespace pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.ParserElement.suppress pyparsing.ParserElement-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParserElement.setResultsName pyparsing.ParserElement-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.ParserElement.ignore pyparsing.ParserElement-class.html#ignore pyparsing.ParserElement.validate pyparsing.ParserElement-class.html#validate pyparsing.ParserElement.copy pyparsing.ParserElement-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.ParserElement.preParse pyparsing.ParserElement-class.html#preParse pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.streamline pyparsing.ParserElement-class.html#streamline pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.ParserElement.checkRecursion pyparsing.ParserElement-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.RecursiveGrammarException pyparsing.RecursiveGrammarException-class.html pyparsing.RecursiveGrammarException.__str__ pyparsing.RecursiveGrammarException-class.html#__str__ pyparsing.RecursiveGrammarException.__init__ pyparsing.RecursiveGrammarException-class.html#__init__ pyparsing.Regex pyparsing.Regex-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.Regex.__str__ pyparsing.Regex-class.html#__str__ pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.Regex.__init__ pyparsing.Regex-class.html#__init__ pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.Regex.__slotnames__ pyparsing.Regex-class.html#__slotnames__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.Regex.compiledREtype pyparsing.Regex.compiledREtype-class.html pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.Regex.parseImpl pyparsing.Regex-class.html#parseImpl pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.ParserElement.postParse pyparsing.ParserElement-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.ParserElement.leaveWhitespace pyparsing.ParserElement-class.html#leaveWhitespace pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.ParserElement.suppress pyparsing.ParserElement-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParserElement.setResultsName pyparsing.ParserElement-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.ParserElement.ignore pyparsing.ParserElement-class.html#ignore pyparsing.ParserElement.validate pyparsing.ParserElement-class.html#validate pyparsing.ParserElement.copy pyparsing.ParserElement-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.ParserElement.preParse pyparsing.ParserElement-class.html#preParse pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.streamline pyparsing.ParserElement-class.html#streamline pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.ParserElement.checkRecursion pyparsing.ParserElement-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.Regex.compiledREtype pyparsing.Regex.compiledREtype-class.html pyparsing.Regex.compiledREtype.finditer pyparsing.Regex.compiledREtype-class.html#finditer pyparsing.Regex.compiledREtype.scanner pyparsing.Regex.compiledREtype-class.html#scanner pyparsing.Regex.compiledREtype.subn pyparsing.Regex.compiledREtype-class.html#subn pyparsing.Regex.compiledREtype.groupindex pyparsing.Regex.compiledREtype-class.html#groupindex pyparsing.Regex.compiledREtype.findall pyparsing.Regex.compiledREtype-class.html#findall pyparsing.Regex.compiledREtype.sub pyparsing.Regex.compiledREtype-class.html#sub pyparsing.Regex.compiledREtype.pattern pyparsing.Regex.compiledREtype-class.html#pattern pyparsing.Regex.compiledREtype.split pyparsing.Regex.compiledREtype-class.html#split pyparsing.Regex.compiledREtype.match pyparsing.Regex.compiledREtype-class.html#match pyparsing.Regex.compiledREtype.__deepcopy__ pyparsing.Regex.compiledREtype-class.html#__deepcopy__ pyparsing.Regex.compiledREtype.groups pyparsing.Regex.compiledREtype-class.html#groups pyparsing.Regex.compiledREtype.search pyparsing.Regex.compiledREtype-class.html#search pyparsing.Regex.compiledREtype.flags pyparsing.Regex.compiledREtype-class.html#flags pyparsing.Regex.compiledREtype.__copy__ pyparsing.Regex.compiledREtype-class.html#__copy__ pyparsing.SkipTo pyparsing.SkipTo-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.ParseElementEnhance.__str__ pyparsing.ParseElementEnhance-class.html#__str__ pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.SkipTo.__init__ pyparsing.SkipTo-class.html#__init__ pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.SkipTo.parseImpl pyparsing.SkipTo-class.html#parseImpl pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.ParserElement.postParse pyparsing.ParserElement-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.ParseElementEnhance.leaveWhitespace pyparsing.ParseElementEnhance-class.html#leaveWhitespace pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.ParserElement.suppress pyparsing.ParserElement-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParserElement.setResultsName pyparsing.ParserElement-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.ParseElementEnhance.streamline pyparsing.ParseElementEnhance-class.html#streamline pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.ParseElementEnhance.validate pyparsing.ParseElementEnhance-class.html#validate pyparsing.ParserElement.copy pyparsing.ParserElement-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.preParse pyparsing.ParserElement-class.html#preParse pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.ParseElementEnhance.ignore pyparsing.ParseElementEnhance-class.html#ignore pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.ParseElementEnhance.checkRecursion pyparsing.ParseElementEnhance-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.StringEnd pyparsing.StringEnd-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.StringEnd.__init__ pyparsing.StringEnd-class.html#__init__ pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.StringEnd.parseImpl pyparsing.StringEnd-class.html#parseImpl pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.ParserElement.postParse pyparsing.ParserElement-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.ParserElement.__str__ pyparsing.ParserElement-class.html#__str__ pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.ParserElement.leaveWhitespace pyparsing.ParserElement-class.html#leaveWhitespace pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.ParserElement.suppress pyparsing.ParserElement-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParserElement.setResultsName pyparsing.ParserElement-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.ParserElement.ignore pyparsing.ParserElement-class.html#ignore pyparsing.ParserElement.validate pyparsing.ParserElement-class.html#validate pyparsing.ParserElement.copy pyparsing.ParserElement-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.ParserElement.preParse pyparsing.ParserElement-class.html#preParse pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.streamline pyparsing.ParserElement-class.html#streamline pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.ParserElement.checkRecursion pyparsing.ParserElement-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.StringStart pyparsing.StringStart-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.StringStart.__init__ pyparsing.StringStart-class.html#__init__ pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.StringStart.parseImpl pyparsing.StringStart-class.html#parseImpl pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.ParserElement.postParse pyparsing.ParserElement-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.ParserElement.__str__ pyparsing.ParserElement-class.html#__str__ pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.ParserElement.leaveWhitespace pyparsing.ParserElement-class.html#leaveWhitespace pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.ParserElement.suppress pyparsing.ParserElement-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParserElement.setResultsName pyparsing.ParserElement-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.ParserElement.ignore pyparsing.ParserElement-class.html#ignore pyparsing.ParserElement.validate pyparsing.ParserElement-class.html#validate pyparsing.ParserElement.copy pyparsing.ParserElement-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.ParserElement.preParse pyparsing.ParserElement-class.html#preParse pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.streamline pyparsing.ParserElement-class.html#streamline pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.ParserElement.checkRecursion pyparsing.ParserElement-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.Suppress pyparsing.Suppress-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.ParseElementEnhance.__str__ pyparsing.ParseElementEnhance-class.html#__str__ pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.TokenConverter.__init__ pyparsing.TokenConverter-class.html#__init__ pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.Suppress.__slotnames__ pyparsing.Suppress-class.html#__slotnames__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.ParseElementEnhance.parseImpl pyparsing.ParseElementEnhance-class.html#parseImpl pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.Suppress.postParse pyparsing.Suppress-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.ParseElementEnhance.leaveWhitespace pyparsing.ParseElementEnhance-class.html#leaveWhitespace pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.Suppress.suppress pyparsing.Suppress-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParserElement.setResultsName pyparsing.ParserElement-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.ParseElementEnhance.streamline pyparsing.ParseElementEnhance-class.html#streamline pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.ParseElementEnhance.validate pyparsing.ParseElementEnhance-class.html#validate pyparsing.ParserElement.copy pyparsing.ParserElement-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.preParse pyparsing.ParserElement-class.html#preParse pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.ParseElementEnhance.ignore pyparsing.ParseElementEnhance-class.html#ignore pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.ParseElementEnhance.checkRecursion pyparsing.ParseElementEnhance-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.Token pyparsing.Token-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.Token.__init__ pyparsing.Token-class.html#__init__ pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.ParserElement.parseImpl pyparsing.ParserElement-class.html#parseImpl pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.ParserElement.postParse pyparsing.ParserElement-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.ParserElement.__str__ pyparsing.ParserElement-class.html#__str__ pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.ParserElement.leaveWhitespace pyparsing.ParserElement-class.html#leaveWhitespace pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.ParserElement.suppress pyparsing.ParserElement-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParserElement.setResultsName pyparsing.ParserElement-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.ParserElement.ignore pyparsing.ParserElement-class.html#ignore pyparsing.ParserElement.validate pyparsing.ParserElement-class.html#validate pyparsing.ParserElement.copy pyparsing.ParserElement-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.ParserElement.preParse pyparsing.ParserElement-class.html#preParse pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.streamline pyparsing.ParserElement-class.html#streamline pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.ParserElement.checkRecursion pyparsing.ParserElement-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.TokenConverter pyparsing.TokenConverter-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.ParseElementEnhance.__str__ pyparsing.ParseElementEnhance-class.html#__str__ pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.TokenConverter.__init__ pyparsing.TokenConverter-class.html#__init__ pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.ParseElementEnhance.parseImpl pyparsing.ParseElementEnhance-class.html#parseImpl pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.ParserElement.postParse pyparsing.ParserElement-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.ParseElementEnhance.leaveWhitespace pyparsing.ParseElementEnhance-class.html#leaveWhitespace pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.ParserElement.suppress pyparsing.ParserElement-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParserElement.setResultsName pyparsing.ParserElement-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.ParseElementEnhance.streamline pyparsing.ParseElementEnhance-class.html#streamline pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.ParseElementEnhance.validate pyparsing.ParseElementEnhance-class.html#validate pyparsing.ParserElement.copy pyparsing.ParserElement-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.preParse pyparsing.ParserElement-class.html#preParse pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.ParseElementEnhance.ignore pyparsing.ParseElementEnhance-class.html#ignore pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.ParseElementEnhance.checkRecursion pyparsing.ParseElementEnhance-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.White pyparsing.White-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.White.__init__ pyparsing.White-class.html#__init__ pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.White.__slotnames__ pyparsing.White-class.html#__slotnames__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.White.parseImpl pyparsing.White-class.html#parseImpl pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.ParserElement.postParse pyparsing.ParserElement-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.ParserElement.__str__ pyparsing.ParserElement-class.html#__str__ pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.ParserElement.leaveWhitespace pyparsing.ParserElement-class.html#leaveWhitespace pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.ParserElement.suppress pyparsing.ParserElement-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParserElement.setResultsName pyparsing.ParserElement-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.ParserElement.ignore pyparsing.ParserElement-class.html#ignore pyparsing.ParserElement.validate pyparsing.ParserElement-class.html#validate pyparsing.ParserElement.copy pyparsing.ParserElement-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.White.whiteStrs pyparsing.White-class.html#whiteStrs pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.ParserElement.preParse pyparsing.ParserElement-class.html#preParse pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.streamline pyparsing.ParserElement-class.html#streamline pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.ParserElement.checkRecursion pyparsing.ParserElement-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.Word pyparsing.Word-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.Word.__str__ pyparsing.Word-class.html#__str__ pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.Word.__init__ pyparsing.Word-class.html#__init__ pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.Word.__slotnames__ pyparsing.Word-class.html#__slotnames__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.Word.parseImpl pyparsing.Word-class.html#parseImpl pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.ParserElement.postParse pyparsing.ParserElement-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.ParserElement.leaveWhitespace pyparsing.ParserElement-class.html#leaveWhitespace pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.ParserElement.suppress pyparsing.ParserElement-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParserElement.setResultsName pyparsing.ParserElement-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.ParserElement.ignore pyparsing.ParserElement-class.html#ignore pyparsing.ParserElement.validate pyparsing.ParserElement-class.html#validate pyparsing.ParserElement.copy pyparsing.ParserElement-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.ParserElement.preParse pyparsing.ParserElement-class.html#preParse pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.streamline pyparsing.ParserElement-class.html#streamline pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.ParserElement.checkRecursion pyparsing.ParserElement-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.WordEnd pyparsing.WordEnd-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.WordEnd.__init__ pyparsing.WordEnd-class.html#__init__ pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.WordEnd.parseImpl pyparsing.WordEnd-class.html#parseImpl pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.ParserElement.postParse pyparsing.ParserElement-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.ParserElement.__str__ pyparsing.ParserElement-class.html#__str__ pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.ParserElement.leaveWhitespace pyparsing.ParserElement-class.html#leaveWhitespace pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.ParserElement.suppress pyparsing.ParserElement-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParserElement.setResultsName pyparsing.ParserElement-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.ParserElement.ignore pyparsing.ParserElement-class.html#ignore pyparsing.ParserElement.validate pyparsing.ParserElement-class.html#validate pyparsing.ParserElement.copy pyparsing.ParserElement-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.ParserElement.preParse pyparsing.ParserElement-class.html#preParse pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.streamline pyparsing.ParserElement-class.html#streamline pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.ParserElement.checkRecursion pyparsing.ParserElement-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.WordStart pyparsing.WordStart-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.WordStart.__init__ pyparsing.WordStart-class.html#__init__ pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.WordStart.parseImpl pyparsing.WordStart-class.html#parseImpl pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.ParserElement.postParse pyparsing.ParserElement-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.ParserElement.__str__ pyparsing.ParserElement-class.html#__str__ pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.ParserElement.leaveWhitespace pyparsing.ParserElement-class.html#leaveWhitespace pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.ParserElement.suppress pyparsing.ParserElement-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParserElement.setResultsName pyparsing.ParserElement-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.ParserElement.ignore pyparsing.ParserElement-class.html#ignore pyparsing.ParserElement.validate pyparsing.ParserElement-class.html#validate pyparsing.ParserElement.copy pyparsing.ParserElement-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.ParserElement.preParse pyparsing.ParserElement-class.html#preParse pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.streamline pyparsing.ParserElement-class.html#streamline pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.ParserElement.checkRecursion pyparsing.ParserElement-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.ZeroOrMore pyparsing.ZeroOrMore-class.html pyparsing.ParserElement._parseCache pyparsing.ParserElement-class.html#_parseCache pyparsing.ParserElement.__ror__ pyparsing.ParserElement-class.html#__ror__ pyparsing.ZeroOrMore.__str__ pyparsing.ZeroOrMore-class.html#__str__ pyparsing.ParserElement.resetCache pyparsing.ParserElement-class.html#resetCache pyparsing.ParserElement.__radd__ pyparsing.ParserElement-class.html#__radd__ pyparsing.ParserElement._parseNoCache pyparsing.ParserElement-class.html#_parseNoCache pyparsing.ParserElement.__rmul__ pyparsing.ParserElement-class.html#__rmul__ pyparsing.ParserElement.__rsub__ pyparsing.ParserElement-class.html#__rsub__ pyparsing.ParserElement.inlineLiteralsUsing pyparsing.ParserElement-class.html#inlineLiteralsUsing pyparsing.ParserElement.__and__ pyparsing.ParserElement-class.html#__and__ pyparsing.ZeroOrMore.__init__ pyparsing.ZeroOrMore-class.html#__init__ pyparsing.ParserElement.setFailAction pyparsing.ParserElement-class.html#setFailAction pyparsing.ParserElement.transformString pyparsing.ParserElement-class.html#transformString pyparsing.ParserElement.__rand__ pyparsing.ParserElement-class.html#__rand__ pyparsing.ParserElement.parseString pyparsing.ParserElement-class.html#parseString pyparsing.ParserElement.packrat_cache pyparsing.ParserElement-class.html#packrat_cache pyparsing.ParserElement.__req__ pyparsing.ParserElement-class.html#__req__ pyparsing.ParserElement.__xor__ pyparsing.ParserElement-class.html#__xor__ pyparsing.ParserElement.setDefaultWhitespaceChars pyparsing.ParserElement-class.html#setDefaultWhitespaceChars pyparsing.ParserElement._packratEnabled pyparsing.ParserElement-class.html#_packratEnabled pyparsing.ZeroOrMore.parseImpl pyparsing.ZeroOrMore-class.html#parseImpl pyparsing.ParserElement.__invert__ pyparsing.ParserElement-class.html#__invert__ pyparsing.ParserElement.packrat_cache_lock pyparsing.ParserElement-class.html#packrat_cache_lock pyparsing.ParserElement.postParse pyparsing.ParserElement-class.html#postParse pyparsing.ParserElement.__call__ pyparsing.ParserElement-class.html#__call__ pyparsing.ParserElement.addParseAction pyparsing.ParserElement-class.html#addParseAction pyparsing.ParserElement.setWhitespaceChars pyparsing.ParserElement-class.html#setWhitespaceChars pyparsing.ParserElement.split pyparsing.ParserElement-class.html#split pyparsing.ParserElement.__ne__ pyparsing.ParserElement-class.html#__ne__ pyparsing.ParseElementEnhance.leaveWhitespace pyparsing.ParseElementEnhance-class.html#leaveWhitespace pyparsing.ParserElement.setName pyparsing.ParserElement-class.html#setName pyparsing.ParserElement.matches pyparsing.ParserElement-class.html#matches pyparsing.ParserElement.suppress pyparsing.ParserElement-class.html#suppress pyparsing.ParserElement.enablePackrat pyparsing.ParserElement-class.html#enablePackrat pyparsing.ParserElement.packrat_cache_stats pyparsing.ParserElement-class.html#packrat_cache_stats pyparsing.ParserElement.setResultsName pyparsing.ParserElement-class.html#setResultsName pyparsing.ParserElement.parseFile pyparsing.ParserElement-class.html#parseFile pyparsing.ParserElement.addCondition pyparsing.ParserElement-class.html#addCondition pyparsing.ParseElementEnhance.streamline pyparsing.ParseElementEnhance-class.html#streamline pyparsing.ParserElement.__or__ pyparsing.ParserElement-class.html#__or__ pyparsing.ParserElement.__add__ pyparsing.ParserElement-class.html#__add__ pyparsing.ParserElement.__sub__ pyparsing.ParserElement-class.html#__sub__ pyparsing.ParserElement.tryParse pyparsing.ParserElement-class.html#tryParse pyparsing.ParseElementEnhance.validate pyparsing.ParseElementEnhance-class.html#validate pyparsing.ParserElement.copy pyparsing.ParserElement-class.html#copy pyparsing.ParserElement.__eq__ pyparsing.ParserElement-class.html#__eq__ pyparsing.ParserElement.__rxor__ pyparsing.ParserElement-class.html#__rxor__ pyparsing.ParserElement.runTests pyparsing.ParserElement-class.html#runTests pyparsing.ParserElement.DEFAULT_WHITE_CHARS pyparsing.ParserElement-class.html#DEFAULT_WHITE_CHARS pyparsing.ParserElement.parseWithTabs pyparsing.ParserElement-class.html#parseWithTabs pyparsing.ParserElement.searchString pyparsing.ParserElement-class.html#searchString pyparsing.ParserElement.scanString pyparsing.ParserElement-class.html#scanString pyparsing.ParserElement.setParseAction pyparsing.ParserElement-class.html#setParseAction pyparsing.ParserElement.preParse pyparsing.ParserElement-class.html#preParse pyparsing.ParserElement.setDebug pyparsing.ParserElement-class.html#setDebug pyparsing.ParserElement.__rne__ pyparsing.ParserElement-class.html#__rne__ pyparsing.ParserElement.setBreak pyparsing.ParserElement-class.html#setBreak pyparsing.ParseElementEnhance.ignore pyparsing.ParseElementEnhance-class.html#ignore pyparsing.ParserElement.setDebugActions pyparsing.ParserElement-class.html#setDebugActions pyparsing.ParserElement.__mul__ pyparsing.ParserElement-class.html#__mul__ pyparsing.ParserElement.__repr__ pyparsing.ParserElement-class.html#__repr__ pyparsing.ParseElementEnhance.checkRecursion pyparsing.ParseElementEnhance-class.html#checkRecursion pyparsing.ParserElement.__hash__ pyparsing.ParserElement-class.html#__hash__ pyparsing.ParserElement.canParseNext pyparsing.ParserElement-class.html#canParseNext pyparsing.ParserElement._parse pyparsing.ParserElement-class.html#_parse pyparsing.ParserElement._skipIgnorables pyparsing.ParserElement-class.html#_skipIgnorables pyparsing.ParserElement._literalStringClass pyparsing.Literal-class.html pyparsing.ParserElement.verbose_stacktrace pyparsing.ParserElement-class.html#verbose_stacktrace pyparsing.pyparsing_common pyparsing.pyparsing_common-class.html pyparsing.pyparsing_common.fnumber pyparsing.pyparsing_common-class.html#fnumber pyparsing.pyparsing_common.comma_separated_list pyparsing.pyparsing_common-class.html#comma_separated_list pyparsing.pyparsing_common.stripHTMLTags pyparsing.pyparsing_common-class.html#stripHTMLTags pyparsing.pyparsing_common._commasepitem pyparsing.pyparsing_common-class.html#_commasepitem pyparsing.pyparsing_common._mixed_ipv6_address pyparsing.pyparsing_common-class.html#_mixed_ipv6_address pyparsing.pyparsing_common.hex_integer pyparsing.pyparsing_common-class.html#hex_integer pyparsing.pyparsing_common.number pyparsing.pyparsing_common-class.html#number pyparsing.pyparsing_common.convertToInteger pyparsing.pyparsing_common-class.html#convertToInteger pyparsing.pyparsing_common.sci_real pyparsing.pyparsing_common-class.html#sci_real pyparsing.pyparsing_common.uuid pyparsing.pyparsing_common-class.html#uuid pyparsing.pyparsing_common.convertToFloat pyparsing.pyparsing_common-class.html#convertToFloat pyparsing.pyparsing_common.convertToDate pyparsing.pyparsing_common-class.html#convertToDate pyparsing.pyparsing_common.downcaseTokens pyparsing.pyparsing_common-class.html#downcaseTokens pyparsing.pyparsing_common.convertToDatetime pyparsing.pyparsing_common-class.html#convertToDatetime pyparsing.pyparsing_common.fraction pyparsing.pyparsing_common-class.html#fraction pyparsing.pyparsing_common._full_ipv6_address pyparsing.pyparsing_common-class.html#_full_ipv6_address pyparsing.pyparsing_common.signed_integer pyparsing.pyparsing_common-class.html#signed_integer pyparsing.pyparsing_common.real pyparsing.pyparsing_common-class.html#real pyparsing.pyparsing_common.mac_address pyparsing.pyparsing_common-class.html#mac_address pyparsing.pyparsing_common.iso8601_date pyparsing.pyparsing_common-class.html#iso8601_date pyparsing.pyparsing_common.ipv4_address pyparsing.pyparsing_common-class.html#ipv4_address pyparsing.pyparsing_common.integer pyparsing.pyparsing_common-class.html#integer pyparsing.pyparsing_common._ipv6_part pyparsing.pyparsing_common-class.html#_ipv6_part pyparsing.pyparsing_common.iso8601_datetime pyparsing.pyparsing_common-class.html#iso8601_datetime pyparsing.pyparsing_common.identifier pyparsing.pyparsing_common-class.html#identifier pyparsing.pyparsing_common.upcaseTokens pyparsing.pyparsing_common-class.html#upcaseTokens pyparsing.pyparsing_common._short_ipv6_address pyparsing.pyparsing_common-class.html#_short_ipv6_address pyparsing.pyparsing_common.ipv6_address pyparsing.pyparsing_common-class.html#ipv6_address pyparsing.pyparsing_common.mixed_integer pyparsing.pyparsing_common-class.html#mixed_integer pyparsing.pyparsing_common._html_stripper pyparsing.pyparsing_common-class.html#_html_stripper pyparsing-2.2.0+dfsg1/htmldoc/crarr.png0000644000175000017500000000052413057143513016505 0ustar zigozigoPNG  IHDR eE,tEXtCreation TimeTue 22 Aug 2006 00:43:10 -0500` XtIME)} pHYsnu>gAMA aEPLTEðf4sW ЊrD`@bCܖX{`,lNo@xdE螊dƴ~TwvtRNS@fMIDATxc`@0&+(;; /EXؑ? n  b;'+Y#(r<"IENDB`pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.OneOrMore-class.html0000644000175000017500000003740613057143513022550 0ustar zigozigo pyparsing.OneOrMore
Module pyparsing :: Class OneOrMore
[frames] | no frames]

Class OneOrMore

source code

     object --+            
              |            
  ParserElement --+        
                  |        
ParseElementEnhance --+    
                      |    
         _MultipleMatch --+
                          |
                         OneOrMore

Repetition of one or more of the given expression.

Parameters:

Example:

   data_word = Word(alphas)
   label = data_word + FollowedBy(':')
   attr_expr = Group(label + Suppress(':') + OneOrMore(data_word).setParseAction(' '.join))

   text = "shape: SQUARE posn: upper left color: BLACK"
   OneOrMore(attr_expr).parseString(text).pprint()  # Fail! read 'color' as data instead of next label -> [['shape', 'SQUARE color']]

   # use stopOn attribute for OneOrMore to avoid reading label string as part of the data
   attr_expr = Group(label + Suppress(':') + OneOrMore(data_word, stopOn=label).setParseAction(' '.join))
   OneOrMore(attr_expr).parseString(text).pprint() # Better -> [['shape', 'SQUARE'], ['posn', 'upper left'], ['color', 'BLACK']]
   
   # could also be written as
   (attr_expr * (1,)).parseString(text).pprint()
Instance Methods
 
__str__(self)
str(x)
source code

Inherited from _MultipleMatch: __init__, parseImpl

Inherited from ParseElementEnhance: checkRecursion, ignore, leaveWhitespace, streamline, validate

Inherited from ParserElement: __add__, __and__, __call__, __eq__, __hash__, __invert__, __mul__, __ne__, __or__, __radd__, __rand__, __repr__, __req__, __rmul__, __rne__, __ror__, __rsub__, __rxor__, __sub__, __xor__, addCondition, addParseAction, canParseNext, copy, matches, parseFile, parseString, parseWithTabs, postParse, preParse, runTests, scanString, searchString, setBreak, setDebug, setDebugActions, setFailAction, setName, setParseAction, setResultsName, setWhitespaceChars, split, suppress, transformString, tryParse

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods

Inherited from ParserElement: enablePackrat, inlineLiteralsUsing, resetCache, setDefaultWhitespaceChars

Class Variables
  __slotnames__ = []

Inherited from ParserElement: DEFAULT_WHITE_CHARS, packrat_cache, packrat_cache_lock, packrat_cache_stats, verbose_stacktrace

Properties

Inherited from object: __class__

Method Details

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.CloseMatch-class.html0000644000175000017500000004333413057143513022722 0ustar zigozigo pyparsing.CloseMatch
Module pyparsing :: Class CloseMatch
[frames] | no frames]

Class CloseMatch

source code

   object --+        
            |        
ParserElement --+    
                |    
            Token --+
                    |
                   CloseMatch

A variation on Literal which matches "close" matches, that is, strings with at most 'n' mismatching characters. CloseMatch takes parameters:

The results from a successful parse will contain the matched text from the input string and the following named results:

If mismatches is an empty list, then the match was an exact match.

Example:

   patt = CloseMatch("ATCATCGAATGGA")
   patt.parseString("ATCATCGAAXGGA") # -> (['ATCATCGAAXGGA'], {'mismatches': [[9]], 'original': ['ATCATCGAATGGA']})
   patt.parseString("ATCAXCGAAXGGA") # -> Exception: Expected 'ATCATCGAATGGA' (with up to 1 mismatches) (at char 0), (line:1, col:1)

   # exact match
   patt.parseString("ATCATCGAATGGA") # -> (['ATCATCGAATGGA'], {'mismatches': [[]], 'original': ['ATCATCGAATGGA']})

   # close match allowing up to 2 mismatches
   patt = CloseMatch("ATCATCGAATGGA", maxMismatches=2)
   patt.parseString("ATCAXCGAAXGGA") # -> (['ATCAXCGAAXGGA'], {'mismatches': [[4, 9]], 'original': ['ATCATCGAATGGA']})
Instance Methods
 
__init__(self, match_string, maxMismatches=1)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
parseImpl(self, instring, loc, doActions=True) source code

Inherited from ParserElement: __add__, __and__, __call__, __eq__, __hash__, __invert__, __mul__, __ne__, __or__, __radd__, __rand__, __repr__, __req__, __rmul__, __rne__, __ror__, __rsub__, __rxor__, __str__, __sub__, __xor__, addCondition, addParseAction, canParseNext, checkRecursion, copy, ignore, leaveWhitespace, matches, parseFile, parseString, parseWithTabs, postParse, preParse, runTests, scanString, searchString, setBreak, setDebug, setDebugActions, setFailAction, setName, setParseAction, setResultsName, setWhitespaceChars, split, streamline, suppress, transformString, tryParse, validate

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods

Inherited from ParserElement: enablePackrat, inlineLiteralsUsing, resetCache, setDefaultWhitespaceChars

Class Variables

Inherited from ParserElement: DEFAULT_WHITE_CHARS, packrat_cache, packrat_cache_lock, packrat_cache_stats, verbose_stacktrace

Properties

Inherited from object: __class__

Method Details

__init__(self, match_string, maxMismatches=1)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

parseImpl(self, instring, loc, doActions=True)

source code 
Overrides: ParserElement.parseImpl

pyparsing-2.2.0+dfsg1/htmldoc/index.html0000644000175000017500000000113013057143515016657 0ustar zigozigo pyparsing pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.MatchFirst-class.html0000644000175000017500000005147113057143513022745 0ustar zigozigo pyparsing.MatchFirst
Module pyparsing :: Class MatchFirst
[frames] | no frames]

Class MatchFirst

source code

   object --+        
            |        
ParserElement --+    
                |    
  ParseExpression --+
                    |
                   MatchFirst

Requires that at least one ParseExpression is found. If two expressions match, the first one listed is the one that will match. May be constructed using the '|' operator.

Example:

   # construct MatchFirst using '|' operator
   
   # watch the order of expressions to match
   number = Word(nums) | Combine(Word(nums) + '.' + Word(nums))
   print(number.searchString("123 3.1416 789")) #  Fail! -> [['123'], ['3'], ['1416'], ['789']]

   # put more selective expression first
   number = Combine(Word(nums) + '.' + Word(nums)) | Word(nums)
   print(number.searchString("123 3.1416 789")) #  Better -> [['123'], ['3.1416'], ['789']]
Instance Methods
 
__init__(self, exprs, savelist=False)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
parseImpl(self, instring, loc, doActions=True) source code
 
__ior__(self, other) source code
 
__str__(self)
str(x)
source code
 
checkRecursion(self, parseElementList) source code

Inherited from ParseExpression: __getitem__, append, copy, ignore, leaveWhitespace, setResultsName, streamline, validate

Inherited from ParserElement: __add__, __and__, __call__, __eq__, __hash__, __invert__, __mul__, __ne__, __or__, __radd__, __rand__, __repr__, __req__, __rmul__, __rne__, __ror__, __rsub__, __rxor__, __sub__, __xor__, addCondition, addParseAction, canParseNext, matches, parseFile, parseString, parseWithTabs, postParse, preParse, runTests, scanString, searchString, setBreak, setDebug, setDebugActions, setFailAction, setName, setParseAction, setWhitespaceChars, split, suppress, transformString, tryParse

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods

Inherited from ParserElement: enablePackrat, inlineLiteralsUsing, resetCache, setDefaultWhitespaceChars

Class Variables
  __slotnames__ = []

Inherited from ParserElement: DEFAULT_WHITE_CHARS, packrat_cache, packrat_cache_lock, packrat_cache_stats, verbose_stacktrace

Properties

Inherited from object: __class__

Method Details

__init__(self, exprs, savelist=False)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

parseImpl(self, instring, loc, doActions=True)

source code 
Overrides: ParserElement.parseImpl

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

checkRecursion(self, parseElementList)

source code 
Overrides: ParserElement.checkRecursion

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.Suppress-class.html0000644000175000017500000004241713057143514022526 0ustar zigozigo pyparsing.Suppress
Module pyparsing :: Class Suppress
[frames] | no frames]

Class Suppress

source code

     object --+            
              |            
  ParserElement --+        
                  |        
ParseElementEnhance --+    
                      |    
         TokenConverter --+
                          |
                         Suppress

Converter for ignoring the results of a parsed expression.

Example:

   source = "a, b, c,d"
   wd = Word(alphas)
   wd_list1 = wd + ZeroOrMore(',' + wd)
   print(wd_list1.parseString(source))

   # often, delimiters that are useful during parsing are just in the
   # way afterward - use Suppress to keep them out of the parsed output
   wd_list2 = wd + ZeroOrMore(Suppress(',') + wd)
   print(wd_list2.parseString(source))

prints:

   ['a', ',', 'b', ',', 'c', ',', 'd']
   ['a', 'b', 'c', 'd']

(See also delimitedList.)

Instance Methods
 
postParse(self, instring, loc, tokenlist) source code
 
suppress(self)
Suppresses the output of this ParserElement; useful to keep punctuation from cluttering up returned output.
source code

Inherited from TokenConverter: __init__

Inherited from ParseElementEnhance: __str__, checkRecursion, ignore, leaveWhitespace, parseImpl, streamline, validate

Inherited from ParserElement: __add__, __and__, __call__, __eq__, __hash__, __invert__, __mul__, __ne__, __or__, __radd__, __rand__, __repr__, __req__, __rmul__, __rne__, __ror__, __rsub__, __rxor__, __sub__, __xor__, addCondition, addParseAction, canParseNext, copy, matches, parseFile, parseString, parseWithTabs, preParse, runTests, scanString, searchString, setBreak, setDebug, setDebugActions, setFailAction, setName, setParseAction, setResultsName, setWhitespaceChars, split, transformString, tryParse

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods

Inherited from ParserElement: enablePackrat, inlineLiteralsUsing, resetCache, setDefaultWhitespaceChars

Class Variables
  __slotnames__ = []

Inherited from ParserElement: DEFAULT_WHITE_CHARS, packrat_cache, packrat_cache_lock, packrat_cache_stats, verbose_stacktrace

Properties

Inherited from object: __class__

Method Details

postParse(self, instring, loc, tokenlist)

source code 
Overrides: ParserElement.postParse

suppress(self)

source code 

Suppresses the output of this ParserElement; useful to keep punctuation from cluttering up returned output.

Overrides: ParserElement.suppress
(inherited documentation)

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.ParseFatalException-class.html0000644000175000017500000001617713057143513024606 0ustar zigozigo pyparsing.ParseFatalException
Module pyparsing :: Class ParseFatalException
[frames] | no frames]

Class ParseFatalException

source code

              object --+            
                       |            
exceptions.BaseException --+        
                           |        
        exceptions.Exception --+    
                               |    
              ParseBaseException --+
                                   |
                                  ParseFatalException
Known Subclasses:

user-throwable exception thrown when inconsistent parse content is found; stops all parsing immediately

Instance Methods

Inherited from ParseBaseException: __dir__, __getattr__, __init__, __repr__, __str__, markInputline

Inherited from exceptions.Exception: __new__

Inherited from exceptions.BaseException: __delattr__, __getattribute__, __getitem__, __getslice__, __reduce__, __setattr__, __setstate__, __unicode__

Inherited from object: __format__, __hash__, __reduce_ex__, __sizeof__, __subclasshook__

Properties

Inherited from exceptions.BaseException: args, message

Inherited from object: __class__

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.ParserElement-class.html0000644000175000017500000030645513057143513023454 0ustar zigozigo pyparsing.ParserElement
Module pyparsing :: Class ParserElement
[frames] | no frames]

Class ParserElement

source code

object --+
         |
        ParserElement
Known Subclasses:

Abstract base level parser element class.

Instance Methods
 
__init__(self, savelist=False)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
copy(self)
Make a copy of this ParserElement.
source code
 
setName(self, name)
Define name for this expression, makes debugging and exception messages clearer.
source code
 
setResultsName(self, name, listAllMatches=False)
Define name for referencing matching tokens as a nested attribute of the returned parse results.
source code
 
setBreak(self, breakFlag=True)
Method to invoke the Python pdb debugger when this element is about to be parsed.
source code
 
setParseAction(self, *fns, **kwargs)
Define one or more actions to perform when successfully matching parse element definition.
source code
 
addParseAction(self, *fns, **kwargs)
Add one or more parse actions to expression's list of parse actions.
source code
 
addCondition(self, *fns, **kwargs)
Add a boolean predicate function to expression's list of parse actions.
source code
 
setFailAction(self, fn)
Define action to perform if parsing fails at this expression.
source code
 
preParse(self, instring, loc) source code
 
parseImpl(self, instring, loc, doActions=True) source code
 
postParse(self, instring, loc, tokenlist) source code
 
tryParse(self, instring, loc) source code
 
canParseNext(self, instring, loc) source code
 
parseString(self, instring, parseAll=False)
Execute the parse expression with the given string.
source code
 
scanString(self, instring, maxMatches=2147483647, overlap=False)
Scan the input string for expression matches.
source code
 
transformString(self, instring)
Extension to scanString, to modify matching text with modified tokens that may be returned from a parse action.
source code
 
searchString(self, instring, maxMatches=2147483647)
Another extension to scanString, simplifying the access to the tokens found to match the given parse expression.
source code
 
split(self, instring, maxsplit=2147483647, includeSeparators=False)
Generator method to split a string using the given expression as a separator.
source code
 
__add__(self, other)
Implementation of + operator - returns And.
source code
 
__radd__(self, other)
Implementation of + operator when left operand is not a ParserElement
source code
 
__sub__(self, other)
Implementation of - operator, returns And with error stop
source code
 
__rsub__(self, other)
Implementation of - operator when left operand is not a ParserElement
source code
 
__mul__(self, other)
Implementation of * operator, allows use of expr * 3 in place of expr + expr + expr.
source code
 
__rmul__(self, other) source code
 
__or__(self, other)
Implementation of | operator - returns MatchFirst
source code
 
__ror__(self, other)
Implementation of | operator when left operand is not a ParserElement
source code
 
__xor__(self, other)
Implementation of ^ operator - returns Or
source code
 
__rxor__(self, other)
Implementation of ^ operator when left operand is not a ParserElement
source code
 
__and__(self, other)
Implementation of & operator - returns Each
source code
 
__rand__(self, other)
Implementation of & operator when left operand is not a ParserElement
source code
 
__invert__(self)
Implementation of ~ operator - returns NotAny
source code
 
__call__(self, name=None)
Shortcut for setResultsName, with listAllMatches=False.
source code
 
suppress(self)
Suppresses the output of this ParserElement; useful to keep punctuation from cluttering up returned output.
source code
 
leaveWhitespace(self)
Disables the skipping of whitespace before matching the characters in the ParserElement's defined pattern.
source code
 
setWhitespaceChars(self, chars)
Overrides the default whitespace chars
source code
 
parseWithTabs(self)
Overrides default behavior to expand <TAB>s to spaces before parsing the input string.
source code
 
ignore(self, other)
Define expression to be ignored (e.g., comments) while doing pattern matching; may be called repeatedly, to define multiple comment or other ignorable patterns.
source code
 
setDebugActions(self, startAction, successAction, exceptionAction)
Enable display of debugging messages while doing pattern matching.
source code
 
setDebug(self, flag=True)
Enable display of debugging messages while doing pattern matching.
source code
 
__str__(self)
str(x)
source code
 
__repr__(self)
repr(x)
source code
 
streamline(self) source code
 
checkRecursion(self, parseElementList) source code
 
validate(self, validateTrace=[])
Check defined expressions for valid structure, check for infinite recursive definitions.
source code
 
parseFile(self, file_or_filename, parseAll=False)
Execute the parse expression on the given file or filename.
source code
 
__eq__(self, other) source code
 
__ne__(self, other) source code
 
__hash__(self)
hash(x)
source code
 
__req__(self, other) source code
 
__rne__(self, other) source code
 
matches(self, testString, parseAll=True)
Method for quick testing of a parser against a test string.
source code
 
runTests(self, tests, parseAll=True, comment='#', fullDump=True, printResults=True, failureTests=False)
Execute the parse expression on a series of test strings, showing each test, the parsed results or where the parse failed.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods
 
setDefaultWhitespaceChars(chars)
Overrides the default whitespace chars
source code
 
inlineLiteralsUsing(cls)
Set class to be used for inclusion of string literals into a parser.
source code
 
resetCache() source code
 
enablePackrat(cache_size_limit=128)
Enables "packrat" parsing, which adds memoizing to the parsing logic.
source code
Class Variables
  DEFAULT_WHITE_CHARS = ' \n\t\r'
  verbose_stacktrace = False
  packrat_cache = {}
  packrat_cache_lock = <_RLock owner=None count=0>
  packrat_cache_stats = [0, 0]
Properties

Inherited from object: __class__

Method Details

setDefaultWhitespaceChars(chars)
Static Method

source code 

Overrides the default whitespace chars

Example:

   # default whitespace chars are space, <TAB> and newline
   OneOrMore(Word(alphas)).parseString("abc def\nghi jkl")  # -> ['abc', 'def', 'ghi', 'jkl']
   
   # change to just treat newline as significant
   ParserElement.setDefaultWhitespaceChars(" \t")
   OneOrMore(Word(alphas)).parseString("abc def\nghi jkl")  # -> ['abc', 'def']

inlineLiteralsUsing(cls)
Static Method

source code 

Set class to be used for inclusion of string literals into a parser.

Example:

   # default literal class used is Literal
   integer = Word(nums)
   date_str = integer("year") + '/' + integer("month") + '/' + integer("day")           

   date_str.parseString("1999/12/31")  # -> ['1999', '/', '12', '/', '31']


   # change to Suppress
   ParserElement.inlineLiteralsUsing(Suppress)
   date_str = integer("year") + '/' + integer("month") + '/' + integer("day")           

   date_str.parseString("1999/12/31")  # -> ['1999', '12', '31']

__init__(self, savelist=False)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

copy(self)

source code 

Make a copy of this ParserElement. Useful for defining different parse actions for the same parsing pattern, using copies of the original parse element.

Example:

   integer = Word(nums).setParseAction(lambda toks: int(toks[0]))
   integerK = integer.copy().addParseAction(lambda toks: toks[0]*1024) + Suppress("K")
   integerM = integer.copy().addParseAction(lambda toks: toks[0]*1024*1024) + Suppress("M")
   
   print(OneOrMore(integerK | integerM | integer).parseString("5K 100 640K 256M"))

prints:

   [5120, 100, 655360, 268435456]

Equivalent form of expr.copy() is just expr():

   integerM = integer().addParseAction(lambda toks: toks[0]*1024*1024) + Suppress("M")

setName(self, name)

source code 

Define name for this expression, makes debugging and exception messages clearer.

Example:

   Word(nums).parseString("ABC")  # -> Exception: Expected W:(0123...) (at char 0), (line:1, col:1)
   Word(nums).setName("integer").parseString("ABC")  # -> Exception: Expected integer (at char 0), (line:1, col:1)

setResultsName(self, name, listAllMatches=False)

source code 

Define name for referencing matching tokens as a nested attribute of the returned parse results. NOTE: this returns a *copy* of the original ParserElement object; this is so that the client can define a basic element, such as an integer, and reference it in multiple places with different names.

You can also set results names using the abbreviated syntax, expr("name") in place of expr.setResultsName("name") - see __call__.

Example:

   date_str = (integer.setResultsName("year") + '/' 
               + integer.setResultsName("month") + '/' 
               + integer.setResultsName("day"))

   # equivalent form:
   date_str = integer("year") + '/' + integer("month") + '/' + integer("day")

setBreak(self, breakFlag=True)

source code 

Method to invoke the Python pdb debugger when this element is about to be parsed. Set breakFlag to True to enable, False to disable.

setParseAction(self, *fns, **kwargs)

source code 

Define one or more actions to perform when successfully matching parse element definition. Parse action fn is a callable method with 0-3 arguments, called as fn(s,loc,toks), fn(loc,toks), fn(toks), or just fn(), where:

  • s = the original string being parsed (see note below)
  • loc = the location of the matching substring
  • toks = a list of the matched tokens, packaged as a ParseResults object

If the functions in fns modify the tokens, they can return them as the return value from fn, and the modified list of tokens will replace the original. Otherwise, fn does not need to return any value.

Optional keyword arguments:

  • callDuringTry = (default=False) indicate if parse action should be run during lookaheads and alternate testing

Note: the default parsing behavior is to expand tabs in the input string before starting the parsing process. See parseString for more information on parsing strings containing <TAB>s, and suggested methods to maintain a consistent view of the parsed string, the parse location, and line and column positions within the parsed string.

Example:

   integer = Word(nums)
   date_str = integer + '/' + integer + '/' + integer

   date_str.parseString("1999/12/31")  # -> ['1999', '/', '12', '/', '31']

   # use parse action to convert to ints at parse time
   integer = Word(nums).setParseAction(lambda toks: int(toks[0]))
   date_str = integer + '/' + integer + '/' + integer

   # note that integer fields are now ints, not strings
   date_str.parseString("1999/12/31")  # -> [1999, '/', 12, '/', 31]

addParseAction(self, *fns, **kwargs)

source code 

Add one or more parse actions to expression's list of parse actions. See setParseAction.

See examples in copy.

addCondition(self, *fns, **kwargs)

source code 

Add a boolean predicate function to expression's list of parse actions. See setParseAction for function call signatures. Unlike setParseAction, functions passed to addCondition need to return boolean success/fail of the condition.

Optional keyword arguments:

  • message = define a custom message to be used in the raised exception
  • fatal = if True, will raise ParseFatalException to stop parsing immediately; otherwise will raise ParseException

Example:

   integer = Word(nums).setParseAction(lambda toks: int(toks[0]))
   year_int = integer.copy()
   year_int.addCondition(lambda toks: toks[0] >= 2000, message="Only support years 2000 and later")
   date_str = year_int + '/' + integer + '/' + integer

   result = date_str.parseString("1999/12/31")  # -> Exception: Only support years 2000 and later (at char 0), (line:1, col:1)

setFailAction(self, fn)

source code 

Define action to perform if parsing fails at this expression. Fail acton fn is a callable function that takes the arguments fn(s,loc,expr,err) where:

  • s = string being parsed
  • loc = location where expression match was attempted and failed
  • expr = the parse expression that failed
  • err = the exception thrown

The function returns no value. It may throw ParseFatalException if it is desired to stop parsing immediately.

enablePackrat(cache_size_limit=128)
Static Method

source code 

Enables "packrat" parsing, which adds memoizing to the parsing logic. Repeated parse attempts at the same string location (which happens often in many complex grammars) can immediately return a cached value, instead of re-executing parsing/validating code. Memoizing is done of both valid results and parsing exceptions.

Parameters:

  • cache_size_limit - (default=128) - if an integer value is provided will limit the size of the packrat cache; if None is passed, then the cache size will be unbounded; if 0 is passed, the cache will be effectively disabled.

This speedup may break existing programs that use parse actions that have side-effects. For this reason, packrat parsing is disabled when you first import pyparsing. To activate the packrat feature, your program must call the class method ParserElement.enablePackrat(). If your program uses psyco to "compile as you go", you must call enablePackrat before calling psyco.full(). If you do not do this, Python will crash. For best results, call enablePackrat() immediately after importing pyparsing.

Example:

   import pyparsing
   pyparsing.ParserElement.enablePackrat()

parseString(self, instring, parseAll=False)

source code 

Execute the parse expression with the given string. This is the main interface to the client code, once the complete expression has been built.

If you want the grammar to require that the entire input string be successfully parsed, then set parseAll to True (equivalent to ending the grammar with StringEnd()).

Note: parseString implicitly calls expandtabs() on the input string, in order to report proper column numbers in parse actions. If the input string contains tabs and the grammar uses parse actions that use the loc argument to index into the string being parsed, you can ensure you have a consistent view of the input string by:

  • calling parseWithTabs on your grammar before calling parseString (see parseWithTabs)
  • define your parse action using the full (s,loc,toks) signature, and reference the input string using the parse action's s argument
  • explictly expand the tabs in your input string before calling parseString

Example:

   Word('a').parseString('aaaaabaaa')  # -> ['aaaaa']
   Word('a').parseString('aaaaabaaa', parseAll=True)  # -> Exception: Expected end of text

scanString(self, instring, maxMatches=2147483647, overlap=False)

source code 

Scan the input string for expression matches. Each match will return the matching tokens, start location, and end location. May be called with optional maxMatches argument, to clip scanning after 'n' matches are found. If overlap is specified, then overlapping matches will be reported.

Note that the start and end locations are reported relative to the string being parsed. See parseString for more information on parsing strings with embedded tabs.

Example:

   source = "sldjf123lsdjjkf345sldkjf879lkjsfd987"
   print(source)
   for tokens,start,end in Word(alphas).scanString(source):
       print(' '*start + '^'*(end-start))
       print(' '*start + tokens[0])

prints:

   sldjf123lsdjjkf345sldkjf879lkjsfd987
   ^^^^^
   sldjf
           ^^^^^^^
           lsdjjkf
                     ^^^^^^
                     sldkjf
                              ^^^^^^
                              lkjsfd

transformString(self, instring)

source code 

Extension to scanString, to modify matching text with modified tokens that may be returned from a parse action. To use transformString, define a grammar and attach a parse action to it that modifies the returned token list. Invoking transformString() on a target string will then scan for matches, and replace the matched text patterns according to the logic in the parse action. transformString() returns the resulting transformed string.

Example:

   wd = Word(alphas)
   wd.setParseAction(lambda toks: toks[0].title())
   
   print(wd.transformString("now is the winter of our discontent made glorious summer by this sun of york."))

Prints:

   Now Is The Winter Of Our Discontent Made Glorious Summer By This Sun Of York.

searchString(self, instring, maxMatches=2147483647)

source code 

Another extension to scanString, simplifying the access to the tokens found to match the given parse expression. May be called with optional maxMatches argument, to clip searching after 'n' matches are found.

Example:

   # a capitalized word starts with an uppercase letter, followed by zero or more lowercase letters
   cap_word = Word(alphas.upper(), alphas.lower())
   
   print(cap_word.searchString("More than Iron, more than Lead, more than Gold I need Electricity"))

   # the sum() builtin can be used to merge results into a single ParseResults object
   print(sum(cap_word.searchString("More than Iron, more than Lead, more than Gold I need Electricity")))

prints:

   [['More'], ['Iron'], ['Lead'], ['Gold'], ['I'], ['Electricity']]
   ['More', 'Iron', 'Lead', 'Gold', 'I', 'Electricity']

split(self, instring, maxsplit=2147483647, includeSeparators=False)

source code 

Generator method to split a string using the given expression as a separator. May be called with optional maxsplit argument, to limit the number of splits; and the optional includeSeparators argument (default=False), if the separating matching text should be included in the split results.

Example:

   punc = oneOf(list(".,;:/-!?"))
   print(list(punc.split("This, this?, this sentence, is badly punctuated!")))

prints:

   ['This', ' this', '', ' this sentence', ' is badly punctuated', '']

__add__(self, other)
(Addition operator)

source code 

Implementation of + operator - returns And. Adding strings to a ParserElement converts them to Literals by default.

Example:

   greet = Word(alphas) + "," + Word(alphas) + "!"
   hello = "Hello, World!"
   print (hello, "->", greet.parseString(hello))

Prints:

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

__mul__(self, other)

source code 

Implementation of * operator, allows use of expr * 3 in place of expr + expr + expr. Expressions may also me multiplied by a 2-integer tuple, similar to {min,max} multipliers in regular expressions. Tuples may also include None as in:

  • expr*(n,None) or expr*(n,) is equivalent to expr*n + ZeroOrMore(expr) (read as "at least n instances of expr")
  • expr*(None,n) is equivalent to expr*(0,n) (read as "0 to n instances of expr")
  • expr*(None,None) is equivalent to ZeroOrMore(expr)
  • expr*(1,None) is equivalent to OneOrMore(expr)

Note that expr*(None,n) does not raise an exception if more than n exprs exist in the input stream; that is, expr*(None,n) does not enforce a maximum number of expr occurrences. If this behavior is desired, then write expr*(None,n) + ~expr

__call__(self, name=None)
(Call operator)

source code 

Shortcut for setResultsName, with listAllMatches=False.

If name is given with a trailing '*' character, then listAllMatches will be passed as True.

If name is omitted, same as calling copy.

Example:

   # these are equivalent
   userdata = Word(alphas).setResultsName("name") + Word(nums+"-").setResultsName("socsecno")
   userdata = Word(alphas)("name") + Word(nums+"-")("socsecno")             

leaveWhitespace(self)

source code 

Disables the skipping of whitespace before matching the characters in the ParserElement's defined pattern. This is normally only used internally by the pyparsing module, but may be needed in some whitespace-sensitive grammars.

parseWithTabs(self)

source code 

Overrides default behavior to expand <TAB>s to spaces before parsing the input string. Must be called before parseString when the input grammar contains elements that match <TAB> characters.

ignore(self, other)

source code 

Define expression to be ignored (e.g., comments) while doing pattern matching; may be called repeatedly, to define multiple comment or other ignorable patterns.

Example:

   patt = OneOrMore(Word(alphas))
   patt.parseString('ablaj /* comment */ lskjd') # -> ['ablaj']
   
   patt.ignore(cStyleComment)
   patt.parseString('ablaj /* comment */ lskjd') # -> ['ablaj', 'lskjd']

setDebug(self, flag=True)

source code 

Enable display of debugging messages while doing pattern matching. Set flag to True to enable, False to disable.

Example:

   wd = Word(alphas).setName("alphaword")
   integer = Word(nums).setName("numword")
   term = wd | integer
   
   # turn on debugging for wd
   wd.setDebug()

   OneOrMore(term).parseString("abc 123 xyz 890")

prints:

   Match alphaword at loc 0(1,1)
   Matched alphaword -> ['abc']
   Match alphaword at loc 3(1,4)
   Exception raised:Expected alphaword (at char 4), (line:1, col:5)
   Match alphaword at loc 7(1,8)
   Matched alphaword -> ['xyz']
   Match alphaword at loc 11(1,12)
   Exception raised:Expected alphaword (at char 12), (line:1, col:13)
   Match alphaword at loc 15(1,16)
   Exception raised:Expected alphaword (at char 15), (line:1, col:16)

The output shown is that produced by the default debug actions - custom debug actions can be specified using setDebugActions. Prior to attempting to match the wd expression, the debugging message "Match <exprname> at loc <n>(<line>,<col>)" is shown. Then if the parse succeeds, a "Matched" message is shown, or an "Exception raised" message is shown. Also note the use of setName to assign a human-readable name to the expression, which makes debugging and exception messages easier to understand - for instance, the default name created for the Word expression without calling setName is "W:(ABCD...)".

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

parseFile(self, file_or_filename, parseAll=False)

source code 

Execute the parse expression on the given file or filename. If a filename is specified (instead of a file object), the entire file is opened, read, and closed before parsing.

__hash__(self)
(Hashing function)

source code 

hash(x)

Overrides: object.__hash__
(inherited documentation)

matches(self, testString, parseAll=True)

source code 

Method for quick testing of a parser against a test string. Good for simple inline microtests of sub expressions while building up larger parser.

Parameters:

  • testString - to test against this expression for a match
  • parseAll - (default=True) - flag to pass to parseString when running tests

Example:

   expr = Word(nums)
   assert expr.matches("100")

runTests(self, tests, parseAll=True, comment='#', fullDump=True, printResults=True, failureTests=False)

source code 

Execute the parse expression on a series of test strings, showing each test, the parsed results or where the parse failed. Quick and easy way to run a parse expression against a list of sample strings.

Parameters:

  • tests - a list of separate test strings, or a multiline string of test strings
  • parseAll - (default=True) - flag to pass to parseString when running tests
  • comment - (default='#') - expression for indicating embedded comments in the test string; pass None to disable comment filtering
  • fullDump - (default=True) - dump results as list followed by results names in nested outline; if False, only dump nested list
  • printResults - (default=True) prints test output to stdout
  • failureTests - (default=False) indicates if these tests are expected to fail parsing

Returns: a (success, results) tuple, where success indicates that all tests succeeded (or failed if failureTests is True), and the results contain a list of lines of each test's output

Example:

   number_expr = pyparsing_common.number.copy()

   result = number_expr.runTests('''
       # unsigned integer
       100
       # negative integer
       -100
       # float with scientific notation
       6.02e23
       # integer with scientific notation
       1e-12
       ''')
   print("Success" if result[0] else "Failed!")

   result = number_expr.runTests('''
       # stray character
       100Z
       # missing leading digit before '.'
       -.100
       # too many '.'
       3.14.159
       ''', failureTests=True)
   print("Success" if result[0] else "Failed!")

prints:

   # unsigned integer
   100
   [100]

   # negative integer
   -100
   [-100]

   # float with scientific notation
   6.02e23
   [6.02e+23]

   # integer with scientific notation
   1e-12
   [1e-12]

   Success
   
   # stray character
   100Z
      ^
   FAIL: Expected end of text (at char 3), (line:1, col:4)

   # missing leading digit before '.'
   -.100
   ^
   FAIL: Expected {real number with scientific notation | real number | signed integer} (at char 0), (line:1, col:1)

   # too many '.'
   3.14.159
       ^
   FAIL: Expected end of text (at char 4), (line:1, col:5)

   Success

Each test string must be on a single line. If you want to test a string that spans multiple lines, create a test like this:

   expr.runTest(r"this is a test\n of strings that spans \n 3 lines")

(Note that this is a raw string literal, you must include the leading 'r'.)


pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.LineStart-class.html0000644000175000017500000004035113057143513022601 0ustar zigozigo pyparsing.LineStart
Module pyparsing :: Class LineStart
[frames] | no frames]

Class LineStart

source code

   object --+            
            |            
ParserElement --+        
                |        
            Token --+    
                    |    
       _PositionToken --+
                        |
                       LineStart

Matches if current position is at the beginning of a line within the parse string

Example:

   test = '''        AAA this line
   AAA and this line
     AAA but not this one
   B AAA and definitely not this one
   '''

   for t in (LineStart() + 'AAA' + restOfLine).searchString(test):
       print(t)

Prints:

   ['AAA', ' this line']
   ['AAA', ' and this line']    
Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
parseImpl(self, instring, loc, doActions=True) source code

Inherited from ParserElement: __add__, __and__, __call__, __eq__, __hash__, __invert__, __mul__, __ne__, __or__, __radd__, __rand__, __repr__, __req__, __rmul__, __rne__, __ror__, __rsub__, __rxor__, __str__, __sub__, __xor__, addCondition, addParseAction, canParseNext, checkRecursion, copy, ignore, leaveWhitespace, matches, parseFile, parseString, parseWithTabs, postParse, preParse, runTests, scanString, searchString, setBreak, setDebug, setDebugActions, setFailAction, setName, setParseAction, setResultsName, setWhitespaceChars, split, streamline, suppress, transformString, tryParse, validate

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods

Inherited from ParserElement: enablePackrat, inlineLiteralsUsing, resetCache, setDefaultWhitespaceChars

Class Variables

Inherited from ParserElement: DEFAULT_WHITE_CHARS, packrat_cache, packrat_cache_lock, packrat_cache_stats, verbose_stacktrace

Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

parseImpl(self, instring, loc, doActions=True)

source code 
Overrides: ParserElement.parseImpl

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.pyparsing_common-class.html0000644000175000017500000006523313057143514024267 0ustar zigozigo pyparsing.pyparsing_common
Module pyparsing :: Class pyparsing_common
[frames] | no frames]

Class pyparsing_common

source code

Here are some common low-level expressions that may be useful in jump-starting parser development:

Parse actions:

Example:

   pyparsing_common.number.runTests('''
       # any int or real number, returned as the appropriate type
       100
       -100
       +100
       3.14159
       6.02e23
       1e-12
       ''')

   pyparsing_common.fnumber.runTests('''
       # any int or real number, returned as float
       100
       -100
       +100
       3.14159
       6.02e23
       1e-12
       ''')

   pyparsing_common.hex_integer.runTests('''
       # hex numbers
       100
       FF
       ''')

   pyparsing_common.fraction.runTests('''
       # fractions
       1/2
       -3/4
       ''')

   pyparsing_common.mixed_integer.runTests('''
       # mixed fractions
       1
       1/2
       -3/4
       1-3/4
       ''')

   import uuid
   pyparsing_common.uuid.setParseAction(tokenMap(uuid.UUID))
   pyparsing_common.uuid.runTests('''
       # uuid
       12345678-1234-5678-1234-567812345678
       ''')

prints:

   # any int or real number, returned as the appropriate type
   100
   [100]

   -100
   [-100]

   +100
   [100]

   3.14159
   [3.14159]

   6.02e23
   [6.02e+23]

   1e-12
   [1e-12]

   # any int or real number, returned as float
   100
   [100.0]

   -100
   [-100.0]

   +100
   [100.0]

   3.14159
   [3.14159]

   6.02e23
   [6.02e+23]

   1e-12
   [1e-12]

   # hex numbers
   100
   [256]

   FF
   [255]

   # fractions
   1/2
   [0.5]

   -3/4
   [-0.75]

   # mixed fractions
   1
   [1]

   1/2
   [0.5]

   -3/4
   [-0.75]

   1-3/4
   [1.75]

   # uuid
   12345678-1234-5678-1234-567812345678
   [UUID('12345678-1234-5678-1234-567812345678')]
Instance Methods
 
convertToInteger(s, l, t)
Parse action for converting parsed integers to Python int
source code
 
convertToFloat(s, l, t)
Parse action for converting parsed numbers to Python float
source code
Static Methods
 
convertToDate(fmt='%Y-%m-%d')
Helper to create a parse action for converting parsed date string to Python datetime.date
source code
 
convertToDatetime(fmt='%Y-%m-%dT%H:%M:%S.%f')
Helper to create a parse action for converting parsed datetime string to Python datetime.datetime
source code
 
stripHTMLTags(s, l, tokens)
Parse action to remove HTML tags from web page HTML source
source code
 
upcaseTokens(s, l, t)
Parse action to convert tokens to upper case.
source code
 
downcaseTokens(s, l, t)
Parse action to convert tokens to lower case.
source code
Class Variables
  integer = integer
expression that parses an unsigned integer, returns an int
  hex_integer = hex integer
expression that parses a hexadecimal integer, returns an int
  signed_integer = signed integer
expression that parses an integer with optional leading sign, returns an int
  fraction = fraction
fractional expression of an integer divided by an integer, returns a float
  mixed_integer = fraction or mixed integer-fraction
mixed integer of the form 'integer - fraction', with optional leading integer, returns float
  real = real number
expression that parses a floating point number and returns a float
  sci_real = real number with scientific notation
expression that parses a floating point number with optional scientific notation and returns a float
  number = {real number with scientific notation | real number |...
any numeric expression, returns the corresponding Python type
  fnumber = fnumber
any int or real number, returned as float
  identifier = identifier
typical code identifier (leading alpha or '_', followed by 0 or more alphas, nums, or '_')
  ipv4_address = IPv4 address
IPv4 address (0.0.0.0 - 255.255.255.255)
  ipv6_address = IPv6 address
IPv6 address (long, short, or mixed form)
  mac_address = MAC address
MAC address xx:xx:xx:xx:xx (may also have '-' or '.' delimiters)
  iso8601_date = ISO8601 date
ISO8601 date (yyyy-mm-dd)
  iso8601_datetime = ISO8601 datetime
ISO8601 datetime (yyyy-mm-ddThh:mm:ss.s(Z|+-00:00)) - trailing seconds, milliseconds, and timezone optional; accepts separating 'T' or ' '
  uuid = UUID
UUID (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)
  comma_separated_list = comma separated list
Predefined expression of 1 or more printable words or quoted strings, separated by commas.
Method Details

convertToDate(fmt='%Y-%m-%d')
Static Method

source code 

Helper to create a parse action for converting parsed date string to Python datetime.date

Params -

  • fmt - format to be passed to datetime.strptime (default="%Y-%m-%d")

Example:

   date_expr = pyparsing_common.iso8601_date.copy()
   date_expr.setParseAction(pyparsing_common.convertToDate())
   print(date_expr.parseString("1999-12-31"))

prints:

   [datetime.date(1999, 12, 31)]

convertToDatetime(fmt='%Y-%m-%dT%H:%M:%S.%f')
Static Method

source code 

Helper to create a parse action for converting parsed datetime string to Python datetime.datetime

Params -

  • fmt - format to be passed to datetime.strptime (default="%Y-%m-%dT%H:%M:%S.%f")

Example:

   dt_expr = pyparsing_common.iso8601_datetime.copy()
   dt_expr.setParseAction(pyparsing_common.convertToDatetime())
   print(dt_expr.parseString("1999-12-31T23:59:59.999"))

prints:

   [datetime.datetime(1999, 12, 31, 23, 59, 59, 999000)]

stripHTMLTags(s, l, tokens)
Static Method

source code 

Parse action to remove HTML tags from web page HTML source

Example:

   # strip HTML links from normal text 
   text = '<td>More info at the <a href="http://pyparsing.wikispaces.com">pyparsing</a> wiki page</td>'
   td,td_end = makeHTMLTags("TD")
   table_text = td + SkipTo(td_end).setParseAction(pyparsing_common.stripHTMLTags)("body") + td_end
   
   print(table_text.parseString(text).body) # -> 'More info at the pyparsing wiki page'

Class Variable Details

number

any numeric expression, returns the corresponding Python type

Value:
{real number with scientific notation | real number | signed integer}

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.Each-class.html0000644000175000017500000005156013057143513021540 0ustar zigozigo pyparsing.Each
Module pyparsing :: Class Each
[frames] | no frames]

Class Each

source code

   object --+        
            |        
ParserElement --+    
                |    
  ParseExpression --+
                    |
                   Each

Requires all given ParseExpressions to be found, but in any order. Expressions may be separated by whitespace. May be constructed using the '&' operator.

Example:

   color = oneOf("RED ORANGE YELLOW GREEN BLUE PURPLE BLACK WHITE BROWN")
   shape_type = oneOf("SQUARE CIRCLE TRIANGLE STAR HEXAGON OCTAGON")
   integer = Word(nums)
   shape_attr = "shape:" + shape_type("shape")
   posn_attr = "posn:" + Group(integer("x") + ',' + integer("y"))("posn")
   color_attr = "color:" + color("color")
   size_attr = "size:" + integer("size")

   # use Each (using operator '&') to accept attributes in any order 
   # (shape and posn are required, color and size are optional)
   shape_spec = shape_attr & posn_attr & Optional(color_attr) & Optional(size_attr)

   shape_spec.runTests('''
       shape: SQUARE color: BLACK posn: 100, 120
       shape: CIRCLE size: 50 color: BLUE posn: 50,80
       color:GREEN size:20 shape:TRIANGLE posn:20,40
       '''
       )

prints:

   shape: SQUARE color: BLACK posn: 100, 120
   ['shape:', 'SQUARE', 'color:', 'BLACK', 'posn:', ['100', ',', '120']]
   - color: BLACK
   - posn: ['100', ',', '120']
     - x: 100
     - y: 120
   - shape: SQUARE


   shape: CIRCLE size: 50 color: BLUE posn: 50,80
   ['shape:', 'CIRCLE', 'size:', '50', 'color:', 'BLUE', 'posn:', ['50', ',', '80']]
   - color: BLUE
   - posn: ['50', ',', '80']
     - x: 50
     - y: 80
   - shape: CIRCLE
   - size: 50


   color: GREEN size: 20 shape: TRIANGLE posn: 20,40
   ['color:', 'GREEN', 'size:', '20', 'shape:', 'TRIANGLE', 'posn:', ['20', ',', '40']]
   - color: GREEN
   - posn: ['20', ',', '40']
     - x: 20
     - y: 40
   - shape: TRIANGLE
   - size: 20
Instance Methods
 
__init__(self, exprs, savelist=True)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
parseImpl(self, instring, loc, doActions=True) source code
 
__str__(self)
str(x)
source code
 
checkRecursion(self, parseElementList) source code

Inherited from ParseExpression: __getitem__, append, copy, ignore, leaveWhitespace, setResultsName, streamline, validate

Inherited from ParserElement: __add__, __and__, __call__, __eq__, __hash__, __invert__, __mul__, __ne__, __or__, __radd__, __rand__, __repr__, __req__, __rmul__, __rne__, __ror__, __rsub__, __rxor__, __sub__, __xor__, addCondition, addParseAction, canParseNext, matches, parseFile, parseString, parseWithTabs, postParse, preParse, runTests, scanString, searchString, setBreak, setDebug, setDebugActions, setFailAction, setName, setParseAction, setWhitespaceChars, split, suppress, transformString, tryParse

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods

Inherited from ParserElement: enablePackrat, inlineLiteralsUsing, resetCache, setDefaultWhitespaceChars

Class Variables

Inherited from ParserElement: DEFAULT_WHITE_CHARS, packrat_cache, packrat_cache_lock, packrat_cache_stats, verbose_stacktrace

Properties

Inherited from object: __class__

Method Details

__init__(self, exprs, savelist=True)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

parseImpl(self, instring, loc, doActions=True)

source code 
Overrides: ParserElement.parseImpl

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

checkRecursion(self, parseElementList)

source code 
Overrides: ParserElement.checkRecursion

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.Empty-class.html0000644000175000017500000003431513057143513021775 0ustar zigozigo pyparsing.Empty
Module pyparsing :: Class Empty
[frames] | no frames]

Class Empty

source code

   object --+        
            |        
ParserElement --+    
                |    
            Token --+
                    |
                   Empty
Known Subclasses:
  • And._ErrorStop

An empty token, will always match.

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code

Inherited from ParserElement: __add__, __and__, __call__, __eq__, __hash__, __invert__, __mul__, __ne__, __or__, __radd__, __rand__, __repr__, __req__, __rmul__, __rne__, __ror__, __rsub__, __rxor__, __str__, __sub__, __xor__, addCondition, addParseAction, canParseNext, checkRecursion, copy, ignore, leaveWhitespace, matches, parseFile, parseImpl, parseString, parseWithTabs, postParse, preParse, runTests, scanString, searchString, setBreak, setDebug, setDebugActions, setFailAction, setName, setParseAction, setResultsName, setWhitespaceChars, split, streamline, suppress, transformString, tryParse, validate

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods

Inherited from ParserElement: enablePackrat, inlineLiteralsUsing, resetCache, setDefaultWhitespaceChars

Class Variables

Inherited from ParserElement: DEFAULT_WHITE_CHARS, packrat_cache, packrat_cache_lock, packrat_cache_stats, verbose_stacktrace

Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.ParseResults-class.html0000644000175000017500000016250013057143513023331 0ustar zigozigo pyparsing.ParseResults
Module pyparsing :: Class ParseResults
[frames] | no frames]

Class ParseResults

source code

object --+
         |
        ParseResults

Structured parse results, to provide multiple means of access to the parsed data:

Example:

   integer = Word(nums)
   date_str = (integer.setResultsName("year") + '/' 
                   + integer.setResultsName("month") + '/' 
                   + integer.setResultsName("day"))
   # equivalent form:
   # date_str = integer("year") + '/' + integer("month") + '/' + integer("day")

   # parseString returns a ParseResults object
   result = date_str.parseString("1999/12/31")

   def test(s, fn=repr):
       print("%s -> %s" % (s, fn(eval(s))))
   test("list(result)")
   test("result[0]")
   test("result['month']")
   test("result.day")
   test("'month' in result")
   test("'minutes' in result")
   test("result.dump()", str)

prints:

   list(result) -> ['1999', '/', '12', '/', '31']
   result[0] -> '1999'
   result['month'] -> '12'
   result.day -> '31'
   'month' in result -> True
   'minutes' in result -> False
   result.dump() -> ['1999', '/', '12', '/', '31']
   - day: 31
   - month: 12
   - year: 1999
Instance Methods
 
__init__(self, toklist=None, name=None, asList=True, modal=True, isinstance=<built-in function isinstance>)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__getitem__(self, i) source code
 
__setitem__(self, k, v, isinstance=<built-in function isinstance>) source code
 
__delitem__(self, i) source code
 
__contains__(self, k) source code
 
__len__(self) source code
 
__bool__(self) source code
 
__nonzero__(self) source code
 
__iter__(self) source code
 
__reversed__(self) source code
 
iterkeys(self)
Returns an iterator of all named result keys (Python 2.x only).
source code
 
itervalues(self)
Returns an iterator of all named result values (Python 2.x only).
source code
 
iteritems(self)
Returns an iterator of all named result key-value tuples (Python 2.x only).
source code
 
keys(self)
Returns all named result keys (as a list in Python 2.x, as an iterator in Python 3.x).
source code
 
values(self)
Returns all named result values (as a list in Python 2.x, as an iterator in Python 3.x).
source code
 
items(self)
Returns all named result key-values (as a list of tuples in Python 2.x, as an iterator in Python 3.x).
source code
 
haskeys(self)
Since keys() returns an iterator, this method is helpful in bypassing code that looks for the existence of any defined results names.
source code
 
pop(self, *args, **kwargs)
Removes and returns item at specified index (default=last).
source code
 
get(self, key, defaultValue=None)
Returns named result matching the given key, or if there is no such name, then returns the given defaultValue or None if no defaultValue is specified.
source code
 
insert(self, index, insStr)
Inserts new element at location index in the list of parsed tokens.
source code
 
append(self, item)
Add single element to end of ParseResults list of elements.
source code
 
extend(self, itemseq)
Add sequence of elements to end of ParseResults list of elements.
source code
 
clear(self)
Clear all elements and results names.
source code
 
__getattr__(self, name) source code
 
__add__(self, other) source code
 
__iadd__(self, other) source code
 
__radd__(self, other) source code
 
__repr__(self)
repr(x)
source code
 
__str__(self)
str(x)
source code
 
asList(self)
Returns the parse results as a nested list of matching tokens, all converted to strings.
source code
 
asDict(self)
Returns the named parse results as a nested dictionary.
source code
 
copy(self)
Returns a new copy of a ParseResults object.
source code
 
asXML(self, doctag=None, namedItemsOnly=False, indent='', formatted=True)
(Deprecated) Returns the parse results as XML.
source code
 
getName(self)
Returns the results name for this token expression.
source code
 
dump(self, indent='', depth=0, full=True)
Diagnostic method for listing out the contents of a ParseResults.
source code
 
pprint(self, *args, **kwargs)
Pretty-printer for parsed results as a list, using the pprint module.
source code
 
__getstate__(self) source code
 
__setstate__(self, state) source code
 
__getnewargs__(self) source code
 
__dir__(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods
a new object with type S, a subtype of T
__new__(cls, toklist=None, name=None, asList=True, modal=True) source code
Properties

Inherited from object: __class__

Method Details

__new__(cls, toklist=None, name=None, asList=True, modal=True)
Static Method

source code 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__
(inherited documentation)

__init__(self, toklist=None, name=None, asList=True, modal=True, isinstance=<built-in function isinstance>)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

pop(self, *args, **kwargs)

source code 

Removes and returns item at specified index (default=last). Supports both list and dict semantics for pop(). If passed no argument or an integer argument, it will use list semantics and pop tokens from the list of parsed tokens. If passed a non-integer argument (most likely a string), it will use dict semantics and pop the corresponding value from any defined results names. A second default return value argument is supported, just as in dict.pop().

Example:

   def remove_first(tokens):
       tokens.pop(0)
   print(OneOrMore(Word(nums)).parseString("0 123 321")) # -> ['0', '123', '321']
   print(OneOrMore(Word(nums)).addParseAction(remove_first).parseString("0 123 321")) # -> ['123', '321']

   label = Word(alphas)
   patt = label("LABEL") + OneOrMore(Word(nums))
   print(patt.parseString("AAB 123 321").dump())

   # Use pop() in a parse action to remove named result (note that corresponding value is not
   # removed from list form of results)
   def remove_LABEL(tokens):
       tokens.pop("LABEL")
       return tokens
   patt.addParseAction(remove_LABEL)
   print(patt.parseString("AAB 123 321").dump())

prints:

   ['AAB', '123', '321']
   - LABEL: AAB

   ['AAB', '123', '321']

get(self, key, defaultValue=None)

source code 

Returns named result matching the given key, or if there is no such name, then returns the given defaultValue or None if no defaultValue is specified.

Similar to dict.get().

Example:

   integer = Word(nums)
   date_str = integer("year") + '/' + integer("month") + '/' + integer("day")           

   result = date_str.parseString("1999/12/31")
   print(result.get("year")) # -> '1999'
   print(result.get("hour", "not specified")) # -> 'not specified'
   print(result.get("hour")) # -> None

insert(self, index, insStr)

source code 

Inserts new element at location index in the list of parsed tokens.

Similar to list.insert().

Example:

   print(OneOrMore(Word(nums)).parseString("0 123 321")) # -> ['0', '123', '321']

   # use a parse action to insert the parse location in the front of the parsed results
   def insert_locn(locn, tokens):
       tokens.insert(0, locn)
   print(OneOrMore(Word(nums)).addParseAction(insert_locn).parseString("0 123 321")) # -> [0, '0', '123', '321']

append(self, item)

source code 

Add single element to end of ParseResults list of elements.

Example:

   print(OneOrMore(Word(nums)).parseString("0 123 321")) # -> ['0', '123', '321']
   
   # use a parse action to compute the sum of the parsed integers, and add it to the end
   def append_sum(tokens):
       tokens.append(sum(map(int, tokens)))
   print(OneOrMore(Word(nums)).addParseAction(append_sum).parseString("0 123 321")) # -> ['0', '123', '321', 444]

extend(self, itemseq)

source code 

Add sequence of elements to end of ParseResults list of elements.

Example:

   patt = OneOrMore(Word(alphas))
   
   # use a parse action to append the reverse of the matched strings, to make a palindrome
   def make_palindrome(tokens):
       tokens.extend(reversed([t[::-1] for t in tokens]))
       return ''.join(tokens)
   print(patt.addParseAction(make_palindrome).parseString("lskdj sdlkjf lksd")) # -> 'lskdjsdlkjflksddsklfjkldsjdksl'

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

asList(self)

source code 

Returns the parse results as a nested list of matching tokens, all converted to strings.

Example:

   patt = OneOrMore(Word(alphas))
   result = patt.parseString("sldkj lsdkj sldkj")
   # even though the result prints in string-like form, it is actually a pyparsing ParseResults
   print(type(result), result) # -> <class 'pyparsing.ParseResults'> ['sldkj', 'lsdkj', 'sldkj']
   
   # Use asList() to create an actual list
   result_list = result.asList()
   print(type(result_list), result_list) # -> <class 'list'> ['sldkj', 'lsdkj', 'sldkj']

asDict(self)

source code 

Returns the named parse results as a nested dictionary.

Example:

   integer = Word(nums)
   date_str = integer("year") + '/' + integer("month") + '/' + integer("day")
   
   result = date_str.parseString('12/31/1999')
   print(type(result), repr(result)) # -> <class 'pyparsing.ParseResults'> (['12', '/', '31', '/', '1999'], {'day': [('1999', 4)], 'year': [('12', 0)], 'month': [('31', 2)]})
   
   result_dict = result.asDict()
   print(type(result_dict), repr(result_dict)) # -> <class 'dict'> {'day': '1999', 'year': '12', 'month': '31'}

   # even though a ParseResults supports dict-like access, sometime you just need to have a dict
   import json
   print(json.dumps(result)) # -> Exception: TypeError: ... is not JSON serializable
   print(json.dumps(result.asDict())) # -> {"month": "31", "day": "1999", "year": "12"}

asXML(self, doctag=None, namedItemsOnly=False, indent='', formatted=True)

source code 

(Deprecated) Returns the parse results as XML. Tags are created for tokens and lists that have defined results names.

getName(self)

source code 

Returns the results name for this token expression. Useful when several different expressions might match at a particular location.

Example:

   integer = Word(nums)
   ssn_expr = Regex(r"\d\d\d-\d\d-\d\d\d\d")
   house_number_expr = Suppress('#') + Word(nums, alphanums)
   user_data = (Group(house_number_expr)("house_number") 
               | Group(ssn_expr)("ssn")
               | Group(integer)("age"))
   user_info = OneOrMore(user_data)
   
   result = user_info.parseString("22 111-22-3333 #221B")
   for item in result:
       print(item.getName(), ':', item[0])

prints:

   age : 22
   ssn : 111-22-3333
   house_number : 221B

dump(self, indent='', depth=0, full=True)

source code 

Diagnostic method for listing out the contents of a ParseResults. Accepts an optional indent argument so that this string can be embedded in a nested display of other data.

Example:

   integer = Word(nums)
   date_str = integer("year") + '/' + integer("month") + '/' + integer("day")
   
   result = date_str.parseString('12/31/1999')
   print(result.dump())

prints:

   ['12', '/', '31', '/', '1999']
   - day: 1999
   - month: 31
   - year: 12

pprint(self, *args, **kwargs)

source code 

Pretty-printer for parsed results as a list, using the pprint module. Accepts additional positional or keyword args as defined for the pprint.pprint method. (http://docs.python.org/3/library/pprint.html#pprint.pprint)

Example:

   ident = Word(alphas, alphanums)
   num = Word(nums)
   func = Forward()
   term = ident | num | Group('(' + func + ')')
   func <<= ident + Group(Optional(delimitedList(term)))
   result = func.parseString("fna a,b,(fnb c,d,200),100")
   result.pprint(width=40)

prints:

   ['fna',
    ['a',
     'b',
     ['(', 'fnb', ['c', 'd', '200'], ')'],
     '100']]

pyparsing-2.2.0+dfsg1/htmldoc/toc.html0000644000175000017500000000214613057143513016343 0ustar zigozigo Table of Contents

Table of Contents


Everything

Modules

pyparsing

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.LineEnd-class.html0000644000175000017500000004026513057143513022216 0ustar zigozigo pyparsing.LineEnd
Module pyparsing :: Class LineEnd
[frames] | no frames]

Class LineEnd

source code

   object --+            
            |            
ParserElement --+        
                |        
            Token --+    
                    |    
       _PositionToken --+
                        |
                       LineEnd

Matches if current position is at the end of a line within the parse string

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
parseImpl(self, instring, loc, doActions=True) source code

Inherited from ParserElement: __add__, __and__, __call__, __eq__, __hash__, __invert__, __mul__, __ne__, __or__, __radd__, __rand__, __repr__, __req__, __rmul__, __rne__, __ror__, __rsub__, __rxor__, __str__, __sub__, __xor__, addCondition, addParseAction, canParseNext, checkRecursion, copy, ignore, leaveWhitespace, matches, parseFile, parseString, parseWithTabs, postParse, preParse, runTests, scanString, searchString, setBreak, setDebug, setDebugActions, setFailAction, setName, setParseAction, setResultsName, setWhitespaceChars, split, streamline, suppress, transformString, tryParse, validate

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods

Inherited from ParserElement: enablePackrat, inlineLiteralsUsing, resetCache, setDefaultWhitespaceChars

Class Variables
  __slotnames__ = []

Inherited from ParserElement: DEFAULT_WHITE_CHARS, packrat_cache, packrat_cache_lock, packrat_cache_stats, verbose_stacktrace

Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

parseImpl(self, instring, loc, doActions=True)

source code 
Overrides: ParserElement.parseImpl

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.White-class.html0000644000175000017500000005225713057143514021765 0ustar zigozigo pyparsing.White
Module pyparsing :: Class White
[frames] | no frames]

Class White

source code

   object --+        
            |        
ParserElement --+    
                |    
            Token --+
                    |
                   White

Special matching class for matching whitespace. Normally, whitespace is ignored by pyparsing grammars. This class is included when some whitespace structures are significant. Define with a string containing the whitespace characters to be matched; default is " \t\r\n". Also takes optional min, max, and exact arguments, as defined for the Word class.

Instance Methods
 
__init__(self, ws=' \t\r\n', min=1, max=0, exact=0)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
parseImpl(self, instring, loc, doActions=True) source code

Inherited from ParserElement: __add__, __and__, __call__, __eq__, __hash__, __invert__, __mul__, __ne__, __or__, __radd__, __rand__, __repr__, __req__, __rmul__, __rne__, __ror__, __rsub__, __rxor__, __str__, __sub__, __xor__, addCondition, addParseAction, canParseNext, checkRecursion, copy, ignore, leaveWhitespace, matches, parseFile, parseString, parseWithTabs, postParse, preParse, runTests, scanString, searchString, setBreak, setDebug, setDebugActions, setFailAction, setName, setParseAction, setResultsName, setWhitespaceChars, split, streamline, suppress, transformString, tryParse, validate

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods

Inherited from ParserElement: enablePackrat, inlineLiteralsUsing, resetCache, setDefaultWhitespaceChars

Class Variables
  whiteStrs = {'\t': '<TAB>', '\n': '<LF>', '\x0c': '<FF>', '\r'...
  __slotnames__ = []

Inherited from ParserElement: DEFAULT_WHITE_CHARS, packrat_cache, packrat_cache_lock, packrat_cache_stats, verbose_stacktrace

Properties

Inherited from object: __class__

Method Details

__init__(self, ws=' \t\r\n', min=1, max=0, exact=0)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

parseImpl(self, instring, loc, doActions=True)

source code 
Overrides: ParserElement.parseImpl

Class Variable Details

whiteStrs

Value:
{'\t': '<TAB>',
 '''
''': '<LF>',
 '\x0c': '<FF>',
 '\r': '<CR>',
 ' ': '<SPC>'}

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.And-class.html0000644000175000017500000005110213057143513021372 0ustar zigozigo pyparsing.And
Module pyparsing :: Class And
[frames] | no frames]

Class And

source code

   object --+        
            |        
ParserElement --+    
                |    
  ParseExpression --+
                    |
                   And

Requires all given ParseExpressions to be found in the given order. Expressions may be separated by whitespace. May be constructed using the '+' operator. May also be constructed using the '-' operator, which will suppress backtracking.

Example:

   integer = Word(nums)
   name_expr = OneOrMore(Word(alphas))

   expr = And([integer("id"),name_expr("name"),integer("age")])
   # more easily written as:
   expr = integer("id") + name_expr("name") + integer("age")
Instance Methods
 
__init__(self, exprs, savelist=True)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
parseImpl(self, instring, loc, doActions=True) source code
 
__iadd__(self, other) source code
 
checkRecursion(self, parseElementList) source code
 
__str__(self)
str(x)
source code

Inherited from ParseExpression: __getitem__, append, copy, ignore, leaveWhitespace, setResultsName, streamline, validate

Inherited from ParserElement: __add__, __and__, __call__, __eq__, __hash__, __invert__, __mul__, __ne__, __or__, __radd__, __rand__, __repr__, __req__, __rmul__, __rne__, __ror__, __rsub__, __rxor__, __sub__, __xor__, addCondition, addParseAction, canParseNext, matches, parseFile, parseString, parseWithTabs, postParse, preParse, runTests, scanString, searchString, setBreak, setDebug, setDebugActions, setFailAction, setName, setParseAction, setWhitespaceChars, split, suppress, transformString, tryParse

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods

Inherited from ParserElement: enablePackrat, inlineLiteralsUsing, resetCache, setDefaultWhitespaceChars

Class Variables
  __slotnames__ = []

Inherited from ParserElement: DEFAULT_WHITE_CHARS, packrat_cache, packrat_cache_lock, packrat_cache_stats, verbose_stacktrace

Properties

Inherited from object: __class__

Method Details

__init__(self, exprs, savelist=True)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

parseImpl(self, instring, loc, doActions=True)

source code 
Overrides: ParserElement.parseImpl

checkRecursion(self, parseElementList)

source code 
Overrides: ParserElement.checkRecursion

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.NoMatch-class.html0000644000175000017500000003733013057143513022230 0ustar zigozigo pyparsing.NoMatch
Module pyparsing :: Class NoMatch
[frames] | no frames]

Class NoMatch

source code

   object --+        
            |        
ParserElement --+    
                |    
            Token --+
                    |
                   NoMatch

A token that will never match.

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
parseImpl(self, instring, loc, doActions=True) source code

Inherited from ParserElement: __add__, __and__, __call__, __eq__, __hash__, __invert__, __mul__, __ne__, __or__, __radd__, __rand__, __repr__, __req__, __rmul__, __rne__, __ror__, __rsub__, __rxor__, __str__, __sub__, __xor__, addCondition, addParseAction, canParseNext, checkRecursion, copy, ignore, leaveWhitespace, matches, parseFile, parseString, parseWithTabs, postParse, preParse, runTests, scanString, searchString, setBreak, setDebug, setDebugActions, setFailAction, setName, setParseAction, setResultsName, setWhitespaceChars, split, streamline, suppress, transformString, tryParse, validate

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods

Inherited from ParserElement: enablePackrat, inlineLiteralsUsing, resetCache, setDefaultWhitespaceChars

Class Variables

Inherited from ParserElement: DEFAULT_WHITE_CHARS, packrat_cache, packrat_cache_lock, packrat_cache_stats, verbose_stacktrace

Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

parseImpl(self, instring, loc, doActions=True)

source code 
Overrides: ParserElement.parseImpl

pyparsing-2.2.0+dfsg1/htmldoc/epydoc.css0000644000175000017500000003773113057143513016675 0ustar zigozigo /* Epydoc CSS Stylesheet * * This stylesheet can be used to customize the appearance of epydoc's * HTML output. * */ /* Default Colors & Styles * - Set the default foreground & background color with 'body'; and * link colors with 'a:link' and 'a:visited'. * - Use bold for decision list terms. * - The heading styles defined here are used for headings *within* * docstring descriptions. All headings used by epydoc itself use * either class='epydoc' or class='toc' (CSS styles for both * defined below). */ body { background: #ffffff; color: #000000; } p { margin-top: 0.5em; margin-bottom: 0.5em; } a:link { color: #0000ff; } a:visited { color: #204080; } dt { font-weight: bold; } h1 { font-size: +140%; font-style: italic; font-weight: bold; } h2 { font-size: +125%; font-style: italic; font-weight: bold; } h3 { font-size: +110%; font-style: italic; font-weight: normal; } code { font-size: 100%; } /* N.B.: class, not pseudoclass */ a.link { font-family: monospace; } /* Page Header & Footer * - The standard page header consists of a navigation bar (with * pointers to standard pages such as 'home' and 'trees'); a * breadcrumbs list, which can be used to navigate to containing * classes or modules; options links, to show/hide private * variables and to show/hide frames; and a page title (using *

). The page title may be followed by a link to the * corresponding source code (using 'span.codelink'). * - The footer consists of a navigation bar, a timestamp, and a * pointer to epydoc's homepage. */ h1.epydoc { margin: 0; font-size: +140%; font-weight: bold; } h2.epydoc { font-size: +130%; font-weight: bold; } h3.epydoc { font-size: +115%; font-weight: bold; margin-top: 0.2em; } td h3.epydoc { font-size: +115%; font-weight: bold; margin-bottom: 0; } table.navbar { background: #a0c0ff; color: #000000; border: 2px groove #c0d0d0; } table.navbar table { color: #000000; } th.navbar-select { background: #70b0ff; color: #000000; } table.navbar a { text-decoration: none; } table.navbar a:link { color: #0000ff; } table.navbar a:visited { color: #204080; } span.breadcrumbs { font-size: 85%; font-weight: bold; } span.options { font-size: 70%; } span.codelink { font-size: 85%; } td.footer { font-size: 85%; } /* Table Headers * - Each summary table and details section begins with a 'header' * row. This row contains a section title (marked by * 'span.table-header') as well as a show/hide private link * (marked by 'span.options', defined above). * - Summary tables that contain user-defined groups mark those * groups using 'group header' rows. */ td.table-header { background: #70b0ff; color: #000000; border: 1px solid #608090; } td.table-header table { color: #000000; } td.table-header table a:link { color: #0000ff; } td.table-header table a:visited { color: #204080; } span.table-header { font-size: 120%; font-weight: bold; } th.group-header { background: #c0e0f8; color: #000000; text-align: left; font-style: italic; font-size: 115%; border: 1px solid #608090; } /* Summary Tables (functions, variables, etc) * - Each object is described by a single row of the table with * two cells. The left cell gives the object's type, and is * marked with 'code.summary-type'. The right cell gives the * object's name and a summary description. * - CSS styles for the table's header and group headers are * defined above, under 'Table Headers' */ table.summary { border-collapse: collapse; background: #e8f0f8; color: #000000; border: 1px solid #608090; margin-bottom: 0.5em; } td.summary { border: 1px solid #608090; } code.summary-type { font-size: 85%; } table.summary a:link { color: #0000ff; } table.summary a:visited { color: #204080; } /* Details Tables (functions, variables, etc) * - Each object is described in its own div. * - A single-row summary table w/ table-header is used as * a header for each details section (CSS style for table-header * is defined above, under 'Table Headers'). */ table.details { border-collapse: collapse; background: #e8f0f8; color: #000000; border: 1px solid #608090; margin: .2em 0 0 0; } table.details table { color: #000000; } table.details a:link { color: #0000ff; } table.details a:visited { color: #204080; } /* Fields */ dl.fields { margin-left: 2em; margin-top: 1em; margin-bottom: 1em; } dl.fields dd ul { margin-left: 0em; padding-left: 0em; } dl.fields dd ul li ul { margin-left: 2em; padding-left: 0em; } div.fields { margin-left: 2em; } div.fields p { margin-bottom: 0.5em; } /* Index tables (identifier index, term index, etc) * - link-index is used for indices containing lists of links * (namely, the identifier index & term index). * - index-where is used in link indices for the text indicating * the container/source for each link. * - metadata-index is used for indices containing metadata * extracted from fields (namely, the bug index & todo index). */ table.link-index { border-collapse: collapse; background: #e8f0f8; color: #000000; border: 1px solid #608090; } td.link-index { border-width: 0px; } table.link-index a:link { color: #0000ff; } table.link-index a:visited { color: #204080; } span.index-where { font-size: 70%; } table.metadata-index { border-collapse: collapse; background: #e8f0f8; color: #000000; border: 1px solid #608090; margin: .2em 0 0 0; } td.metadata-index { border-width: 1px; border-style: solid; } table.metadata-index a:link { color: #0000ff; } table.metadata-index a:visited { color: #204080; } /* Function signatures * - sig* is used for the signature in the details section. * - .summary-sig* is used for the signature in the summary * table, and when listing property accessor functions. * */ .sig-name { color: #006080; } .sig-arg { color: #008060; } .sig-default { color: #602000; } .summary-sig { font-family: monospace; } .summary-sig-name { color: #006080; font-weight: bold; } table.summary a.summary-sig-name:link { color: #006080; font-weight: bold; } table.summary a.summary-sig-name:visited { color: #006080; font-weight: bold; } .summary-sig-arg { color: #006040; } .summary-sig-default { color: #501800; } /* Subclass list */ ul.subclass-list { display: inline; } ul.subclass-list li { display: inline; } /* To render variables, classes etc. like functions */ table.summary .summary-name { color: #006080; font-weight: bold; font-family: monospace; } table.summary a.summary-name:link { color: #006080; font-weight: bold; font-family: monospace; } table.summary a.summary-name:visited { color: #006080; font-weight: bold; font-family: monospace; } /* Variable values * - In the 'variable details' sections, each varaible's value is * listed in a 'pre.variable' box. The width of this box is * restricted to 80 chars; if the value's repr is longer than * this it will be wrapped, using a backslash marked with * class 'variable-linewrap'. If the value's repr is longer * than 3 lines, the rest will be ellided; and an ellipsis * marker ('...' marked with 'variable-ellipsis') will be used. * - If the value is a string, its quote marks will be marked * with 'variable-quote'. * - If the variable is a regexp, it is syntax-highlighted using * the re* CSS classes. */ pre.variable { padding: .5em; margin: 0; background: #dce4ec; color: #000000; border: 1px solid #708890; } .variable-linewrap { color: #604000; font-weight: bold; } .variable-ellipsis { color: #604000; font-weight: bold; } .variable-quote { color: #604000; font-weight: bold; } .variable-group { color: #008000; font-weight: bold; } .variable-op { color: #604000; font-weight: bold; } .variable-string { color: #006030; } .variable-unknown { color: #a00000; font-weight: bold; } .re { color: #000000; } .re-char { color: #006030; } .re-op { color: #600000; } .re-group { color: #003060; } .re-ref { color: #404040; } /* Base tree * - Used by class pages to display the base class hierarchy. */ pre.base-tree { font-size: 80%; margin: 0; } /* Frames-based table of contents headers * - Consists of two frames: one for selecting modules; and * the other listing the contents of the selected module. * - h1.toc is used for each frame's heading * - h2.toc is used for subheadings within each frame. */ h1.toc { text-align: center; font-size: 105%; margin: 0; font-weight: bold; padding: 0; } h2.toc { font-size: 100%; font-weight: bold; margin: 0.5em 0 0 -0.3em; } /* Syntax Highlighting for Source Code * - doctest examples are displayed in a 'pre.py-doctest' block. * If the example is in a details table entry, then it will use * the colors specified by the 'table pre.py-doctest' line. * - Source code listings are displayed in a 'pre.py-src' block. * Each line is marked with 'span.py-line' (used to draw a line * down the left margin, separating the code from the line * numbers). Line numbers are displayed with 'span.py-lineno'. * The expand/collapse block toggle button is displayed with * 'a.py-toggle' (Note: the CSS style for 'a.py-toggle' should not * modify the font size of the text.) * - If a source code page is opened with an anchor, then the * corresponding code block will be highlighted. The code * block's header is highlighted with 'py-highlight-hdr'; and * the code block's body is highlighted with 'py-highlight'. * - The remaining py-* classes are used to perform syntax * highlighting (py-string for string literals, py-name for names, * etc.) */ pre.py-doctest { padding: .5em; margin: 1em; background: #e8f0f8; color: #000000; border: 1px solid #708890; } table pre.py-doctest { background: #dce4ec; color: #000000; } pre.py-src { border: 2px solid #000000; background: #f0f0f0; color: #000000; } .py-line { border-left: 2px solid #000000; margin-left: .2em; padding-left: .4em; } .py-lineno { font-style: italic; font-size: 90%; padding-left: .5em; } a.py-toggle { text-decoration: none; } div.py-highlight-hdr { border-top: 2px solid #000000; border-bottom: 2px solid #000000; background: #d8e8e8; } div.py-highlight { border-bottom: 2px solid #000000; background: #d0e0e0; } .py-prompt { color: #005050; font-weight: bold;} .py-more { color: #005050; font-weight: bold;} .py-string { color: #006030; } .py-comment { color: #003060; } .py-keyword { color: #600000; } .py-output { color: #404040; } .py-name { color: #000050; } .py-name:link { color: #000050 !important; } .py-name:visited { color: #000050 !important; } .py-number { color: #005000; } .py-defname { color: #000060; font-weight: bold; } .py-def-name { color: #000060; font-weight: bold; } .py-base-class { color: #000060; } .py-param { color: #000060; } .py-docstring { color: #006030; } .py-decorator { color: #804020; } /* Use this if you don't want links to names underlined: */ /*a.py-name { text-decoration: none; }*/ /* Graphs & Diagrams * - These CSS styles are used for graphs & diagrams generated using * Graphviz dot. 'img.graph-without-title' is used for bare * diagrams (to remove the border created by making the image * clickable). */ img.graph-without-title { border: none; } img.graph-with-title { border: 1px solid #000000; } span.graph-title { font-weight: bold; } span.graph-caption { } /* General-purpose classes * - 'p.indent-wrapped-lines' defines a paragraph whose first line * is not indented, but whose subsequent lines are. * - The 'nomargin-top' class is used to remove the top margin (e.g. * from lists). The 'nomargin' class is used to remove both the * top and bottom margin (but not the left or right margin -- * for lists, that would cause the bullets to disappear.) */ p.indent-wrapped-lines { padding: 0 0 0 7em; text-indent: -7em; margin: 0; } .nomargin-top { margin-top: 0; } .nomargin { margin-top: 0; margin-bottom: 0; } /* HTML Log */ div.log-block { padding: 0; margin: .5em 0 .5em 0; background: #e8f0f8; color: #000000; border: 1px solid #000000; } div.log-error { padding: .1em .3em .1em .3em; margin: 4px; background: #ffb0b0; color: #000000; border: 1px solid #000000; } div.log-warning { padding: .1em .3em .1em .3em; margin: 4px; background: #ffffb0; color: #000000; border: 1px solid #000000; } div.log-info { padding: .1em .3em .1em .3em; margin: 4px; background: #b0ffb0; color: #000000; border: 1px solid #000000; } h2.log-hdr { background: #70b0ff; color: #000000; margin: 0; padding: 0em 0.5em 0em 0.5em; border-bottom: 1px solid #000000; font-size: 110%; } p.log { font-weight: bold; margin: .5em 0 .5em 0; } tr.opt-changed { color: #000000; font-weight: bold; } tr.opt-default { color: #606060; } pre.log { margin: 0; padding: 0; padding-left: 1em; } pyparsing-2.2.0+dfsg1/htmldoc/redirect.html0000644000175000017500000000431213057143515017356 0ustar zigozigoEpydoc Redirect Page

Epydoc Auto-redirect page

When javascript is enabled, this page will redirect URLs of the form redirect.html#dotted.name to the documentation for the object with the given fully-qualified dotted name.

 

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.NotAny-class.html0000644000175000017500000004420713057143513022110 0ustar zigozigo pyparsing.NotAny
Module pyparsing :: Class NotAny
[frames] | no frames]

Class NotAny

source code

     object --+        
              |        
  ParserElement --+    
                  |    
ParseElementEnhance --+
                      |
                     NotAny

Lookahead to disallow matching with the given parse expression. NotAny does not advance the parsing position within the input string, it only verifies that the specified parse expression does not match at the current position. Also, NotAny does not skip over leading whitespace. NotAny always returns a null token list. May be constructed using the '~' operator.

Example:

   
Instance Methods
 
__init__(self, expr)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
parseImpl(self, instring, loc, doActions=True) source code
 
__str__(self)
str(x)
source code

Inherited from ParseElementEnhance: checkRecursion, ignore, leaveWhitespace, streamline, validate

Inherited from ParserElement: __add__, __and__, __call__, __eq__, __hash__, __invert__, __mul__, __ne__, __or__, __radd__, __rand__, __repr__, __req__, __rmul__, __rne__, __ror__, __rsub__, __rxor__, __sub__, __xor__, addCondition, addParseAction, canParseNext, copy, matches, parseFile, parseString, parseWithTabs, postParse, preParse, runTests, scanString, searchString, setBreak, setDebug, setDebugActions, setFailAction, setName, setParseAction, setResultsName, setWhitespaceChars, split, suppress, transformString, tryParse

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods

Inherited from ParserElement: enablePackrat, inlineLiteralsUsing, resetCache, setDefaultWhitespaceChars

Class Variables
  __slotnames__ = []

Inherited from ParserElement: DEFAULT_WHITE_CHARS, packrat_cache, packrat_cache_lock, packrat_cache_stats, verbose_stacktrace

Properties

Inherited from object: __class__

Method Details

__init__(self, expr)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

parseImpl(self, instring, loc, doActions=True)

source code 
Overrides: ParserElement.parseImpl

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.RecursiveGrammarException-class.html0000644000175000017500000002340113057143513026026 0ustar zigozigo pyparsing.RecursiveGrammarException
Module pyparsing :: Class RecursiveGrammarException
[frames] | no frames]

Class RecursiveGrammarException

source code

              object --+        
                       |        
exceptions.BaseException --+    
                           |    
        exceptions.Exception --+
                               |
                              RecursiveGrammarException

exception thrown by ParserElement.validate if the grammar could be improperly recursive

Instance Methods
 
__init__(self, parseElementList)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__str__(self)
str(x)
source code

Inherited from exceptions.Exception: __new__

Inherited from exceptions.BaseException: __delattr__, __getattribute__, __getitem__, __getslice__, __reduce__, __repr__, __setattr__, __setstate__, __unicode__

Inherited from object: __format__, __hash__, __reduce_ex__, __sizeof__, __subclasshook__

Properties

Inherited from exceptions.BaseException: args, message

Inherited from object: __class__

Method Details

__init__(self, parseElementList)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.GoToColumn-class.html0000644000175000017500000004265513057143513022733 0ustar zigozigo pyparsing.GoToColumn
Module pyparsing :: Class GoToColumn
[frames] | no frames]

Class GoToColumn

source code

   object --+            
            |            
ParserElement --+        
                |        
            Token --+    
                    |    
       _PositionToken --+
                        |
                       GoToColumn

Token to advance to a specific column of input text; useful for tabular report scraping.

Instance Methods
 
__init__(self, colno)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
preParse(self, instring, loc) source code
 
parseImpl(self, instring, loc, doActions=True) source code

Inherited from ParserElement: __add__, __and__, __call__, __eq__, __hash__, __invert__, __mul__, __ne__, __or__, __radd__, __rand__, __repr__, __req__, __rmul__, __rne__, __ror__, __rsub__, __rxor__, __str__, __sub__, __xor__, addCondition, addParseAction, canParseNext, checkRecursion, copy, ignore, leaveWhitespace, matches, parseFile, parseString, parseWithTabs, postParse, runTests, scanString, searchString, setBreak, setDebug, setDebugActions, setFailAction, setName, setParseAction, setResultsName, setWhitespaceChars, split, streamline, suppress, transformString, tryParse, validate

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods

Inherited from ParserElement: enablePackrat, inlineLiteralsUsing, resetCache, setDefaultWhitespaceChars

Class Variables

Inherited from ParserElement: DEFAULT_WHITE_CHARS, packrat_cache, packrat_cache_lock, packrat_cache_stats, verbose_stacktrace

Properties

Inherited from object: __class__

Method Details

__init__(self, colno)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

preParse(self, instring, loc)

source code 
Overrides: ParserElement.preParse

parseImpl(self, instring, loc, doActions=True)

source code 
Overrides: ParserElement.parseImpl

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.FollowedBy-class.html0000644000175000017500000004151613057143513022746 0ustar zigozigo pyparsing.FollowedBy
Module pyparsing :: Class FollowedBy
[frames] | no frames]

Class FollowedBy

source code

     object --+        
              |        
  ParserElement --+    
                  |    
ParseElementEnhance --+
                      |
                     FollowedBy

Lookahead matching of the given parse expression. FollowedBy does not advance the parsing position within the input string, it only verifies that the specified parse expression matches at the current position. FollowedBy always returns a null token list.

Example:

   # use FollowedBy to match a label only if it is followed by a ':'
   data_word = Word(alphas)
   label = data_word + FollowedBy(':')
   attr_expr = Group(label + Suppress(':') + OneOrMore(data_word, stopOn=label).setParseAction(' '.join))
   
   OneOrMore(attr_expr).parseString("shape: SQUARE color: BLACK posn: upper left").pprint()

prints:

   [['shape', 'SQUARE'], ['color', 'BLACK'], ['posn', 'upper left']]
Instance Methods
 
__init__(self, expr)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
parseImpl(self, instring, loc, doActions=True) source code

Inherited from ParseElementEnhance: __str__, checkRecursion, ignore, leaveWhitespace, streamline, validate

Inherited from ParserElement: __add__, __and__, __call__, __eq__, __hash__, __invert__, __mul__, __ne__, __or__, __radd__, __rand__, __repr__, __req__, __rmul__, __rne__, __ror__, __rsub__, __rxor__, __sub__, __xor__, addCondition, addParseAction, canParseNext, copy, matches, parseFile, parseString, parseWithTabs, postParse, preParse, runTests, scanString, searchString, setBreak, setDebug, setDebugActions, setFailAction, setName, setParseAction, setResultsName, setWhitespaceChars, split, suppress, transformString, tryParse

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods

Inherited from ParserElement: enablePackrat, inlineLiteralsUsing, resetCache, setDefaultWhitespaceChars

Class Variables

Inherited from ParserElement: DEFAULT_WHITE_CHARS, packrat_cache, packrat_cache_lock, packrat_cache_stats, verbose_stacktrace

Properties

Inherited from object: __class__

Method Details

__init__(self, expr)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

parseImpl(self, instring, loc, doActions=True)

source code 
Overrides: ParserElement.parseImpl

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.Recipes-class.html0000644000175000017500000002214012715127635022271 0ustar zigozigo pyparsing.Recipes
Module pyparsing :: Class Recipes
[frames] | no frames]

Class Recipes

source code

Here are some common low-level expressions that may be useful in jump-starting your parser development:

   
Instance Methods
 
convertToInteger(t)
Parse action for converting parsed integers to Python int
source code
 
convertToFloat(t)
Parse action for converting parsed numbers to Python float
source code
Class Variables
  integer = integer
  signedInteger = signed integer
  real = real number
  sciReal = real number with scientfic notation
  numeric = {real number with scientfic notation | real number |...
  number = number
  identifier = identifier
Class Variable Details

numeric

Value:
{real number with scientfic notation | real number | integer | signed \
integer}

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.Forward-class.html0000644000175000017500000006254013057143513022304 0ustar zigozigo pyparsing.Forward
Module pyparsing :: Class Forward
[frames] | no frames]

Class Forward

source code

     object --+        
              |        
  ParserElement --+    
                  |    
ParseElementEnhance --+
                      |
                     Forward
Known Subclasses:
  • _ForwardNoRecurse

Forward declaration of an expression to be defined later - used for recursive grammars, such as algebraic infix notation. When the expression is known, it is assigned to the Forward variable using the '<<' operator.

Note: take care when assigning to Forward not to overlook precedence of operators. Specifically, '|' has a lower precedence than '<<', so that:

   fwdExpr << a | b | c

will actually be evaluated as:

   (fwdExpr << a) | b | c

thereby leaving b and c out as parseable alternatives. It is recommended that you explicitly group the values inserted into the Forward:

   fwdExpr << (a | b | c)

Converting to use the '<<=' operator instead will avoid this problem.

See ParseResults.pprint for an example of a recursive parser created using Forward.

Instance Methods
 
__init__(self, other=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__lshift__(self, other) source code
 
__ilshift__(self, other) source code
 
leaveWhitespace(self)
Disables the skipping of whitespace before matching the characters in the ParserElement's defined pattern.
source code
 
streamline(self) source code
 
validate(self, validateTrace=[])
Check defined expressions for valid structure, check for infinite recursive definitions.
source code
 
__str__(self)
str(x)
source code
 
copy(self)
Make a copy of this ParserElement.
source code

Inherited from ParseElementEnhance: checkRecursion, ignore, parseImpl

Inherited from ParserElement: __add__, __and__, __call__, __eq__, __hash__, __invert__, __mul__, __ne__, __or__, __radd__, __rand__, __repr__, __req__, __rmul__, __rne__, __ror__, __rsub__, __rxor__, __sub__, __xor__, addCondition, addParseAction, canParseNext, matches, parseFile, parseString, parseWithTabs, postParse, preParse, runTests, scanString, searchString, setBreak, setDebug, setDebugActions, setFailAction, setName, setParseAction, setResultsName, setWhitespaceChars, split, suppress, transformString, tryParse

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods

Inherited from ParserElement: enablePackrat, inlineLiteralsUsing, resetCache, setDefaultWhitespaceChars

Class Variables

Inherited from ParserElement: DEFAULT_WHITE_CHARS, packrat_cache, packrat_cache_lock, packrat_cache_stats, verbose_stacktrace

Properties

Inherited from object: __class__

Method Details

__init__(self, other=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

leaveWhitespace(self)

source code 

Disables the skipping of whitespace before matching the characters in the ParserElement's defined pattern. This is normally only used internally by the pyparsing module, but may be needed in some whitespace-sensitive grammars.

Overrides: ParserElement.leaveWhitespace
(inherited documentation)

streamline(self)

source code 
Overrides: ParserElement.streamline

validate(self, validateTrace=[])

source code 

Check defined expressions for valid structure, check for infinite recursive definitions.

Overrides: ParserElement.validate
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

copy(self)

source code 

Make a copy of this ParserElement. Useful for defining different parse actions for the same parsing pattern, using copies of the original parse element.

Example:

   integer = Word(nums).setParseAction(lambda toks: int(toks[0]))
   integerK = integer.copy().addParseAction(lambda toks: toks[0]*1024) + Suppress("K")
   integerM = integer.copy().addParseAction(lambda toks: toks[0]*1024*1024) + Suppress("M")
   
   print(OneOrMore(integerK | integerM | integer).parseString("5K 100 640K 256M"))

prints:

   [5120, 100, 655360, 268435456]

Equivalent form of expr.copy() is just expr():

   integerM = integer().addParseAction(lambda toks: toks[0]*1024*1024) + Suppress("M")
Overrides: ParserElement.copy
(inherited documentation)

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.Optional-class.html0000644000175000017500000004535513057143513022472 0ustar zigozigo pyparsing.Optional
Module pyparsing :: Class Optional
[frames] | no frames]

Class Optional

source code

     object --+        
              |        
  ParserElement --+    
                  |    
ParseElementEnhance --+
                      |
                     Optional

Optional matching of the given expression.

Parameters:

Example:

   # US postal code can be a 5-digit zip, plus optional 4-digit qualifier
   zip = Combine(Word(nums, exact=5) + Optional('-' + Word(nums, exact=4)))
   zip.runTests('''
       # traditional ZIP code
       12345
       
       # ZIP+4 form
       12101-0001
       
       # invalid ZIP
       98765-
       ''')

prints:

   # traditional ZIP code
   12345
   ['12345']

   # ZIP+4 form
   12101-0001
   ['12101-0001']

   # invalid ZIP
   98765-
        ^
   FAIL: Expected end of text (at char 5), (line:1, col:6)
Instance Methods
 
__init__(self, expr, default=_NullToken())
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
parseImpl(self, instring, loc, doActions=True) source code
 
__str__(self)
str(x)
source code

Inherited from ParseElementEnhance: checkRecursion, ignore, leaveWhitespace, streamline, validate

Inherited from ParserElement: __add__, __and__, __call__, __eq__, __hash__, __invert__, __mul__, __ne__, __or__, __radd__, __rand__, __repr__, __req__, __rmul__, __rne__, __ror__, __rsub__, __rxor__, __sub__, __xor__, addCondition, addParseAction, canParseNext, copy, matches, parseFile, parseString, parseWithTabs, postParse, preParse, runTests, scanString, searchString, setBreak, setDebug, setDebugActions, setFailAction, setName, setParseAction, setResultsName, setWhitespaceChars, split, suppress, transformString, tryParse

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods

Inherited from ParserElement: enablePackrat, inlineLiteralsUsing, resetCache, setDefaultWhitespaceChars

Class Variables
  __slotnames__ = []

Inherited from ParserElement: DEFAULT_WHITE_CHARS, packrat_cache, packrat_cache_lock, packrat_cache_stats, verbose_stacktrace

Properties

Inherited from object: __class__

Method Details

__init__(self, expr, default=_NullToken())
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

parseImpl(self, instring, loc, doActions=True)

source code 
Overrides: ParserElement.parseImpl

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.OnlyOnce-class.html0000644000175000017500000002135013057143513022420 0ustar zigozigo pyparsing.OnlyOnce
Module pyparsing :: Class OnlyOnce
[frames] | no frames]

Class OnlyOnce

source code

object --+
         |
        OnlyOnce

Wrapper for parse actions, to ensure they are only called once.

Instance Methods
 
__init__(self, methodCall)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__call__(self, s, l, t) source code
 
reset(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, methodCall)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

pyparsing-2.2.0+dfsg1/htmldoc/epydoc.js0000644000175000017500000002517213057143513016515 0ustar zigozigofunction toggle_private() { // Search for any private/public links on this page. Store // their old text in "cmd," so we will know what action to // take; and change their text to the opposite action. var cmd = "?"; var elts = document.getElementsByTagName("a"); for(var i=0; i...
"; elt.innerHTML = s; } } function toggle(id) { elt = document.getElementById(id+"-toggle"); if (elt.innerHTML == "-") collapse(id); else expand(id); return false; } function highlight(id) { var elt = document.getElementById(id+"-def"); if (elt) elt.className = "py-highlight-hdr"; var elt = document.getElementById(id+"-expanded"); if (elt) elt.className = "py-highlight"; var elt = document.getElementById(id+"-collapsed"); if (elt) elt.className = "py-highlight"; } function num_lines(s) { var n = 1; var pos = s.indexOf("\n"); while ( pos > 0) { n += 1; pos = s.indexOf("\n", pos+1); } return n; } // Collapse all blocks that mave more than `min_lines` lines. function collapse_all(min_lines) { var elts = document.getElementsByTagName("div"); for (var i=0; i 0) if (elt.id.substring(split, elt.id.length) == "-expanded") if (num_lines(elt.innerHTML) > min_lines) collapse(elt.id.substring(0, split)); } } function expandto(href) { var start = href.indexOf("#")+1; if (start != 0 && start != href.length) { if (href.substring(start, href.length) != "-") { collapse_all(4); pos = href.indexOf(".", start); while (pos != -1) { var id = href.substring(start, pos); expand(id); pos = href.indexOf(".", pos+1); } var id = href.substring(start, href.length); expand(id); highlight(id); } } } function kill_doclink(id) { var parent = document.getElementById(id); parent.removeChild(parent.childNodes.item(0)); } function auto_kill_doclink(ev) { if (!ev) var ev = window.event; if (!this.contains(ev.toElement)) { var parent = document.getElementById(this.parentID); parent.removeChild(parent.childNodes.item(0)); } } function doclink(id, name, targets_id) { var elt = document.getElementById(id); // If we already opened the box, then destroy it. // (This case should never occur, but leave it in just in case.) if (elt.childNodes.length > 1) { elt.removeChild(elt.childNodes.item(0)); } else { // The outer box: relative + inline positioning. var box1 = document.createElement("div"); box1.style.position = "relative"; box1.style.display = "inline"; box1.style.top = 0; box1.style.left = 0; // A shadow for fun var shadow = document.createElement("div"); shadow.style.position = "absolute"; shadow.style.left = "-1.3em"; shadow.style.top = "-1.3em"; shadow.style.background = "#404040"; // The inner box: absolute positioning. var box2 = document.createElement("div"); box2.style.position = "relative"; box2.style.border = "1px solid #a0a0a0"; box2.style.left = "-.2em"; box2.style.top = "-.2em"; box2.style.background = "white"; box2.style.padding = ".3em .4em .3em .4em"; box2.style.fontStyle = "normal"; box2.onmouseout=auto_kill_doclink; box2.parentID = id; // Get the targets var targets_elt = document.getElementById(targets_id); var targets = targets_elt.getAttribute("targets"); var links = ""; target_list = targets.split(","); for (var i=0; i" + target[0] + ""; } // Put it all together. elt.insertBefore(box1, elt.childNodes.item(0)); //box1.appendChild(box2); box1.appendChild(shadow); shadow.appendChild(box2); box2.innerHTML = "Which "+name+" do you want to see documentation for?" + ""; } return false; } function get_anchor() { var href = location.href; var start = href.indexOf("#")+1; if ((start != 0) && (start != href.length)) return href.substring(start, href.length); } function redirect_url(dottedName) { // Scan through each element of the "pages" list, and check // if "name" matches with any of them. for (var i=0; i-m" or "-c"; // extract the portion & compare it to dottedName. var pagename = pages[i].substring(0, pages[i].length-2); if (pagename == dottedName.substring(0,pagename.length)) { // We've found a page that matches `dottedName`; // construct its URL, using leftover `dottedName` // content to form an anchor. var pagetype = pages[i].charAt(pages[i].length-1); var url = pagename + ((pagetype=="m")?"-module.html": "-class.html"); if (dottedName.length > pagename.length) url += "#" + dottedName.substring(pagename.length+1, dottedName.length); return url; } } } pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.ParseBaseException-class.html0000644000175000017500000003610313057143513024420 0ustar zigozigo pyparsing.ParseBaseException
Module pyparsing :: Class ParseBaseException
[frames] | no frames]

Class ParseBaseException

source code

              object --+        
                       |        
exceptions.BaseException --+    
                           |    
        exceptions.Exception --+
                               |
                              ParseBaseException
Known Subclasses:

base exception class for all parsing runtime exceptions

Instance Methods
 
__init__(self, pstr, loc=0, msg=None, elem=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__getattr__(self, aname)
supported attributes by name are:
source code
 
__str__(self)
str(x)
source code
 
__repr__(self)
repr(x)
source code
 
markInputline(self, markerString='>!<')
Extracts the exception line from the input string, and marks the location of the exception with a special symbol.
source code
 
__dir__(self) source code

Inherited from exceptions.Exception: __new__

Inherited from exceptions.BaseException: __delattr__, __getattribute__, __getitem__, __getslice__, __reduce__, __setattr__, __setstate__, __unicode__

Inherited from object: __format__, __hash__, __reduce_ex__, __sizeof__, __subclasshook__

Properties

Inherited from exceptions.BaseException: args, message

Inherited from object: __class__

Method Details

__init__(self, pstr, loc=0, msg=None, elem=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

__getattr__(self, aname)
(Qualification operator)

source code 

supported attributes by name are:

  • lineno - returns the line number of the exception text
  • col - returns the column number of the exception text
  • line - returns the line containing the exception text

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

pyparsing-2.2.0+dfsg1/htmldoc/pyparsing.Dict-class.html0000644000175000017500000004372313057143513021565 0ustar zigozigo pyparsing.Dict
Module pyparsing :: Class Dict
[frames] | no frames]

Class Dict

source code

     object --+            
              |            
  ParserElement --+        
                  |        
ParseElementEnhance --+    
                      |    
         TokenConverter --+
                          |
                         Dict

Converter to return a repetitive expression as a list, but also as a dictionary. Each element can also be referenced using the first token in the expression as its key. Useful for tabular report scraping when the first column can be used as a item key.

Example:

   data_word = Word(alphas)
   label = data_word + FollowedBy(':')
   attr_expr = Group(label + Suppress(':') + OneOrMore(data_word).setParseAction(' '.join))

   text = "shape: SQUARE posn: upper left color: light blue texture: burlap"
   attr_expr = (label + Suppress(':') + OneOrMore(data_word, stopOn=label).setParseAction(' '.join))
   
   # print attributes as plain groups
   print(OneOrMore(attr_expr).parseString(text).dump())
   
   # instead of OneOrMore(expr), parse using Dict(OneOrMore(Group(expr))) - Dict will auto-assign names
   result = Dict(OneOrMore(Group(attr_expr))).parseString(text)
   print(result.dump())
   
   # access named fields as dict entries, or output as dict
   print(result['shape'])        
   print(result.asDict())

prints:

   ['shape', 'SQUARE', 'posn', 'upper left', 'color', 'light blue', 'texture', 'burlap']

   [['shape', 'SQUARE'], ['posn', 'upper left'], ['color', 'light blue'], ['texture', 'burlap']]
   - color: light blue
   - posn: upper left
   - shape: SQUARE
   - texture: burlap
   SQUARE
   {'color': 'light blue', 'posn': 'upper left', 'texture': 'burlap', 'shape': 'SQUARE'}

See more examples at ParseResults of accessing fields by results name.

Instance Methods
 
__init__(self, expr)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
postParse(self, instring, loc, tokenlist) source code

Inherited from ParseElementEnhance: __str__, checkRecursion, ignore, leaveWhitespace, parseImpl, streamline, validate

Inherited from ParserElement: __add__, __and__, __call__, __eq__, __hash__, __invert__, __mul__, __ne__, __or__, __radd__, __rand__, __repr__, __req__, __rmul__, __rne__, __ror__, __rsub__, __rxor__, __sub__, __xor__, addCondition, addParseAction, canParseNext, copy, matches, parseFile, parseString, parseWithTabs, preParse, runTests, scanString, searchString, setBreak, setDebug, setDebugActions, setFailAction, setName, setParseAction, setResultsName, setWhitespaceChars, split, suppress, transformString, tryParse

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods

Inherited from ParserElement: enablePackrat, inlineLiteralsUsing, resetCache, setDefaultWhitespaceChars

Class Variables
  __slotnames__ = []

Inherited from ParserElement: DEFAULT_WHITE_CHARS, packrat_cache, packrat_cache_lock, packrat_cache_stats, verbose_stacktrace

Properties

Inherited from object: __class__

Method Details

__init__(self, expr)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

postParse(self, instring, loc, tokenlist)

source code 
Overrides: ParserElement.postParse

pyparsing-2.2.0+dfsg1/pyparsing.py0000644000175000017500000070317713057142016015635 0ustar zigozigo# module pyparsing.py # # Copyright (c) 2003-2016 Paul T. McGuire # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, # distribute, sublicense, and/or sell copies of the Software, and to # permit persons to whom the Software is furnished to do so, subject to # the following conditions: # # The above copyright notice and this permission notice shall be # included in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # __doc__ = \ """ 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 C{", !"}), built up using L{Word}, L{Literal}, and L{And} elements (L{'+'} operator gives L{And} expressions, strings are auto-converted to L{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 L{ParseResults} object returned from L{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 """ __version__ = "2.2.0" __versionTime__ = "06 Mar 2017 02:06 UTC" __author__ = "Paul McGuire " import string from weakref import ref as wkref import copy import sys import warnings import re import sre_constants import collections import pprint import traceback import types from datetime import datetime try: from _thread import RLock except ImportError: from threading import RLock try: from collections import OrderedDict as _OrderedDict except ImportError: try: from ordereddict import OrderedDict as _OrderedDict except ImportError: _OrderedDict = None #~ sys.stderr.write( "testing pyparsing module, version %s, %s\n" % (__version__,__versionTime__ ) ) __all__ = [ 'And', 'CaselessKeyword', 'CaselessLiteral', 'CharsNotIn', 'Combine', 'Dict', 'Each', 'Empty', 'FollowedBy', 'Forward', 'GoToColumn', 'Group', 'Keyword', 'LineEnd', 'LineStart', 'Literal', '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', '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', ] system_version = tuple(sys.version_info)[:3] PY_3 = system_version[0] == 3 if PY_3: _MAX_INT = sys.maxsize basestring = str unichr = chr _ustr = str # build list of single arg builtins, that can be used as parse actions singleArgBuiltins = [sum, len, sorted, reversed, list, tuple, set, any, all, min, max] else: _MAX_INT = sys.maxint range = xrange def _ustr(obj): """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 | ... >. """ if isinstance(obj,unicode): return obj try: # If this works, then _ustr(obj) has the same behaviour as str(obj), so # it won't break any existing code. return str(obj) except UnicodeEncodeError: # Else encode it ret = unicode(obj).encode(sys.getdefaultencoding(), 'xmlcharrefreplace') xmlcharref = Regex(r'&#\d+;') xmlcharref.setParseAction(lambda t: '\\u' + hex(int(t[0][2:-1]))[2:]) return xmlcharref.transformString(ret) # build list of single arg builtins, tolerant of Python version, that can be used as parse actions singleArgBuiltins = [] import __builtin__ for fname in "sum len sorted reversed list tuple set any all min max".split(): try: singleArgBuiltins.append(getattr(__builtin__,fname)) except AttributeError: continue _generatorType = type((y for y in range(1))) def _xml_escape(data): """Escape &, <, >, ", ', etc. in a string of data.""" # ampersand must be replaced first from_symbols = '&><"\'' to_symbols = ('&'+s+';' for s in "amp gt lt quot apos".split()) for from_,to_ in zip(from_symbols, to_symbols): data = data.replace(from_, to_) return data class _Constants(object): pass alphas = string.ascii_uppercase + string.ascii_lowercase nums = "0123456789" hexnums = nums + "ABCDEFabcdef" alphanums = alphas + nums _bslash = chr(92) printables = "".join(c for c in string.printable if c not in string.whitespace) class ParseBaseException(Exception): """base exception class for all parsing runtime exceptions""" # Performance tuning: we construct a *lot* of these, so keep this # constructor as small and fast as possible def __init__( self, pstr, loc=0, msg=None, elem=None ): self.loc = loc if msg is None: self.msg = pstr self.pstr = "" else: self.msg = msg self.pstr = pstr self.parserElement = elem self.args = (pstr, loc, msg) @classmethod def _from_exception(cls, pe): """ internal factory method to simplify creating one type of ParseException from another - avoids having __init__ signature conflicts among subclasses """ return cls(pe.pstr, pe.loc, pe.msg, pe.parserElement) def __getattr__( self, aname ): """supported attributes by name are: - lineno - returns the line number of the exception text - col - returns the column number of the exception text - line - returns the line containing the exception text """ if( aname == "lineno" ): return lineno( self.loc, self.pstr ) elif( aname in ("col", "column") ): return col( self.loc, self.pstr ) elif( aname == "line" ): return line( self.loc, self.pstr ) else: raise AttributeError(aname) def __str__( self ): return "%s (at char %d), (line:%d, col:%d)" % \ ( self.msg, self.loc, self.lineno, self.column ) def __repr__( self ): return _ustr(self) def markInputline( self, markerString = ">!<" ): """Extracts the exception line from the input string, and marks the location of the exception with a special symbol. """ line_str = self.line line_column = self.column - 1 if markerString: line_str = "".join((line_str[:line_column], markerString, line_str[line_column:])) return line_str.strip() def __dir__(self): return "lineno col line".split() + dir(type(self)) class ParseException(ParseBaseException): """ Exception thrown when parse expressions don't match class; supported attributes by name are: - lineno - returns the line number of the exception text - col - returns the column number of the exception text - line - returns the line containing the exception text Example:: try: Word(nums).setName("integer").parseString("ABC") except ParseException as pe: print(pe) print("column: {}".format(pe.col)) prints:: Expected integer (at char 0), (line:1, col:1) column: 1 """ pass class ParseFatalException(ParseBaseException): """user-throwable exception thrown when inconsistent parse content is found; stops all parsing immediately""" pass class ParseSyntaxException(ParseFatalException): """just like L{ParseFatalException}, but thrown internally when an L{ErrorStop} ('-' operator) indicates that parsing is to stop immediately because an unbacktrackable syntax error has been found""" pass #~ class ReparseException(ParseBaseException): #~ """Experimental class - parse actions can raise this exception to cause #~ pyparsing to reparse the input string: #~ - with a modified input string, and/or #~ - with a modified start location #~ Set the values of the ReparseException in the constructor, and raise the #~ exception in a parse action to cause pyparsing to use the new string/location. #~ Setting the values as None causes no change to be made. #~ """ #~ def __init_( self, newstring, restartLoc ): #~ self.newParseText = newstring #~ self.reparseLoc = restartLoc class RecursiveGrammarException(Exception): """exception thrown by L{ParserElement.validate} if the grammar could be improperly recursive""" def __init__( self, parseElementList ): self.parseElementTrace = parseElementList def __str__( self ): return "RecursiveGrammarException: %s" % self.parseElementTrace class _ParseResultsWithOffset(object): def __init__(self,p1,p2): self.tup = (p1,p2) def __getitem__(self,i): return self.tup[i] def __repr__(self): return repr(self.tup[0]) def setOffset(self,i): self.tup = (self.tup[0],i) class ParseResults(object): """ Structured parse results, to provide multiple means of access to the parsed data: - as a list (C{len(results)}) - by list index (C{results[0], results[1]}, etc.) - by attribute (C{results.} - see L{ParserElement.setResultsName}) Example:: integer = Word(nums) date_str = (integer.setResultsName("year") + '/' + integer.setResultsName("month") + '/' + integer.setResultsName("day")) # equivalent form: # date_str = integer("year") + '/' + integer("month") + '/' + integer("day") # parseString returns a ParseResults object result = date_str.parseString("1999/12/31") def test(s, fn=repr): print("%s -> %s" % (s, fn(eval(s)))) test("list(result)") test("result[0]") test("result['month']") test("result.day") test("'month' in result") test("'minutes' in result") test("result.dump()", str) prints:: list(result) -> ['1999', '/', '12', '/', '31'] result[0] -> '1999' result['month'] -> '12' result.day -> '31' 'month' in result -> True 'minutes' in result -> False result.dump() -> ['1999', '/', '12', '/', '31'] - day: 31 - month: 12 - year: 1999 """ def __new__(cls, toklist=None, name=None, asList=True, modal=True ): if isinstance(toklist, cls): return toklist retobj = object.__new__(cls) retobj.__doinit = True return retobj # Performance tuning: we construct a *lot* of these, so keep this # constructor as small and fast as possible def __init__( self, toklist=None, name=None, asList=True, modal=True, isinstance=isinstance ): if self.__doinit: self.__doinit = False self.__name = None self.__parent = None self.__accumNames = {} self.__asList = asList self.__modal = modal if toklist is None: toklist = [] if isinstance(toklist, list): self.__toklist = toklist[:] elif isinstance(toklist, _generatorType): self.__toklist = list(toklist) else: self.__toklist = [toklist] self.__tokdict = dict() if name is not None and name: if not modal: self.__accumNames[name] = 0 if isinstance(name,int): name = _ustr(name) # will always return a str, but use _ustr for consistency self.__name = name if not (isinstance(toklist, (type(None), basestring, list)) and toklist in (None,'',[])): if isinstance(toklist,basestring): toklist = [ toklist ] if asList: if isinstance(toklist,ParseResults): self[name] = _ParseResultsWithOffset(toklist.copy(),0) else: self[name] = _ParseResultsWithOffset(ParseResults(toklist[0]),0) self[name].__name = name else: try: self[name] = toklist[0] except (KeyError,TypeError,IndexError): self[name] = toklist def __getitem__( self, i ): if isinstance( i, (int,slice) ): return self.__toklist[i] else: if i not in self.__accumNames: return self.__tokdict[i][-1][0] else: return ParseResults([ v[0] for v in self.__tokdict[i] ]) def __setitem__( self, k, v, isinstance=isinstance ): if isinstance(v,_ParseResultsWithOffset): self.__tokdict[k] = self.__tokdict.get(k,list()) + [v] sub = v[0] elif isinstance(k,(int,slice)): self.__toklist[k] = v sub = v else: self.__tokdict[k] = self.__tokdict.get(k,list()) + [_ParseResultsWithOffset(v,0)] sub = v if isinstance(sub,ParseResults): sub.__parent = wkref(self) def __delitem__( self, i ): if isinstance(i,(int,slice)): mylen = len( self.__toklist ) del self.__toklist[i] # convert int to slice if isinstance(i, int): if i < 0: i += mylen i = slice(i, i+1) # get removed indices removed = list(range(*i.indices(mylen))) removed.reverse() # fixup indices in token dictionary for name,occurrences in self.__tokdict.items(): for j in removed: for k, (value, position) in enumerate(occurrences): occurrences[k] = _ParseResultsWithOffset(value, position - (position > j)) else: del self.__tokdict[i] def __contains__( self, k ): return k in self.__tokdict def __len__( self ): return len( self.__toklist ) def __bool__(self): return ( not not self.__toklist ) __nonzero__ = __bool__ def __iter__( self ): return iter( self.__toklist ) def __reversed__( self ): return iter( self.__toklist[::-1] ) def _iterkeys( self ): if hasattr(self.__tokdict, "iterkeys"): return self.__tokdict.iterkeys() else: return iter(self.__tokdict) def _itervalues( self ): return (self[k] for k in self._iterkeys()) def _iteritems( self ): return ((k, self[k]) for k in self._iterkeys()) if PY_3: keys = _iterkeys """Returns an iterator of all named result keys (Python 3.x only).""" values = _itervalues """Returns an iterator of all named result values (Python 3.x only).""" items = _iteritems """Returns an iterator of all named result key-value tuples (Python 3.x only).""" else: iterkeys = _iterkeys """Returns an iterator of all named result keys (Python 2.x only).""" itervalues = _itervalues """Returns an iterator of all named result values (Python 2.x only).""" iteritems = _iteritems """Returns an iterator of all named result key-value tuples (Python 2.x only).""" def keys( self ): """Returns all named result keys (as a list in Python 2.x, as an iterator in Python 3.x).""" return list(self.iterkeys()) def values( self ): """Returns all named result values (as a list in Python 2.x, as an iterator in Python 3.x).""" return list(self.itervalues()) def items( self ): """Returns all named result key-values (as a list of tuples in Python 2.x, as an iterator in Python 3.x).""" return list(self.iteritems()) def haskeys( self ): """Since keys() returns an iterator, this method is helpful in bypassing code that looks for the existence of any defined results names.""" return bool(self.__tokdict) def pop( self, *args, **kwargs): """ Removes and returns item at specified index (default=C{last}). Supports both C{list} and C{dict} semantics for C{pop()}. If passed no argument or an integer argument, it will use C{list} semantics and pop tokens from the list of parsed tokens. If passed a non-integer argument (most likely a string), it will use C{dict} semantics and pop the corresponding value from any defined results names. A second default return value argument is supported, just as in C{dict.pop()}. Example:: def remove_first(tokens): tokens.pop(0) print(OneOrMore(Word(nums)).parseString("0 123 321")) # -> ['0', '123', '321'] print(OneOrMore(Word(nums)).addParseAction(remove_first).parseString("0 123 321")) # -> ['123', '321'] label = Word(alphas) patt = label("LABEL") + OneOrMore(Word(nums)) print(patt.parseString("AAB 123 321").dump()) # Use pop() in a parse action to remove named result (note that corresponding value is not # removed from list form of results) def remove_LABEL(tokens): tokens.pop("LABEL") return tokens patt.addParseAction(remove_LABEL) print(patt.parseString("AAB 123 321").dump()) prints:: ['AAB', '123', '321'] - LABEL: AAB ['AAB', '123', '321'] """ if not args: args = [-1] for k,v in kwargs.items(): if k == 'default': args = (args[0], v) else: raise TypeError("pop() got an unexpected keyword argument '%s'" % k) if (isinstance(args[0], int) or len(args) == 1 or args[0] in self): index = args[0] ret = self[index] del self[index] return ret else: defaultvalue = args[1] return defaultvalue def get(self, key, defaultValue=None): """ Returns named result matching the given key, or if there is no such name, then returns the given C{defaultValue} or C{None} if no C{defaultValue} is specified. Similar to C{dict.get()}. Example:: integer = Word(nums) date_str = integer("year") + '/' + integer("month") + '/' + integer("day") result = date_str.parseString("1999/12/31") print(result.get("year")) # -> '1999' print(result.get("hour", "not specified")) # -> 'not specified' print(result.get("hour")) # -> None """ if key in self: return self[key] else: return defaultValue def insert( self, index, insStr ): """ Inserts new element at location index in the list of parsed tokens. Similar to C{list.insert()}. Example:: print(OneOrMore(Word(nums)).parseString("0 123 321")) # -> ['0', '123', '321'] # use a parse action to insert the parse location in the front of the parsed results def insert_locn(locn, tokens): tokens.insert(0, locn) print(OneOrMore(Word(nums)).addParseAction(insert_locn).parseString("0 123 321")) # -> [0, '0', '123', '321'] """ self.__toklist.insert(index, insStr) # fixup indices in token dictionary for name,occurrences in self.__tokdict.items(): for k, (value, position) in enumerate(occurrences): occurrences[k] = _ParseResultsWithOffset(value, position + (position > index)) def append( self, item ): """ Add single element to end of ParseResults list of elements. Example:: print(OneOrMore(Word(nums)).parseString("0 123 321")) # -> ['0', '123', '321'] # use a parse action to compute the sum of the parsed integers, and add it to the end def append_sum(tokens): tokens.append(sum(map(int, tokens))) print(OneOrMore(Word(nums)).addParseAction(append_sum).parseString("0 123 321")) # -> ['0', '123', '321', 444] """ self.__toklist.append(item) def extend( self, itemseq ): """ Add sequence of elements to end of ParseResults list of elements. Example:: patt = OneOrMore(Word(alphas)) # use a parse action to append the reverse of the matched strings, to make a palindrome def make_palindrome(tokens): tokens.extend(reversed([t[::-1] for t in tokens])) return ''.join(tokens) print(patt.addParseAction(make_palindrome).parseString("lskdj sdlkjf lksd")) # -> 'lskdjsdlkjflksddsklfjkldsjdksl' """ if isinstance(itemseq, ParseResults): self += itemseq else: self.__toklist.extend(itemseq) def clear( self ): """ Clear all elements and results names. """ del self.__toklist[:] self.__tokdict.clear() def __getattr__( self, name ): try: return self[name] except KeyError: return "" if name in self.__tokdict: if name not in self.__accumNames: return self.__tokdict[name][-1][0] else: return ParseResults([ v[0] for v in self.__tokdict[name] ]) else: return "" def __add__( self, other ): ret = self.copy() ret += other return ret def __iadd__( self, other ): if other.__tokdict: offset = len(self.__toklist) addoffset = lambda a: offset if a<0 else a+offset otheritems = other.__tokdict.items() otherdictitems = [(k, _ParseResultsWithOffset(v[0],addoffset(v[1])) ) for (k,vlist) in otheritems for v in vlist] for k,v in otherdictitems: self[k] = v if isinstance(v[0],ParseResults): v[0].__parent = wkref(self) self.__toklist += other.__toklist self.__accumNames.update( other.__accumNames ) return self def __radd__(self, other): if isinstance(other,int) and other == 0: # useful for merging many ParseResults using sum() builtin return self.copy() else: # this may raise a TypeError - so be it return other + self def __repr__( self ): return "(%s, %s)" % ( repr( self.__toklist ), repr( self.__tokdict ) ) def __str__( self ): return '[' + ', '.join(_ustr(i) if isinstance(i, ParseResults) else repr(i) for i in self.__toklist) + ']' def _asStringList( self, sep='' ): out = [] for item in self.__toklist: if out and sep: out.append(sep) if isinstance( item, ParseResults ): out += item._asStringList() else: out.append( _ustr(item) ) return out def asList( self ): """ Returns the parse results as a nested list of matching tokens, all converted to strings. Example:: patt = OneOrMore(Word(alphas)) result = patt.parseString("sldkj lsdkj sldkj") # even though the result prints in string-like form, it is actually a pyparsing ParseResults print(type(result), result) # -> ['sldkj', 'lsdkj', 'sldkj'] # Use asList() to create an actual list result_list = result.asList() print(type(result_list), result_list) # -> ['sldkj', 'lsdkj', 'sldkj'] """ return [res.asList() if isinstance(res,ParseResults) else res for res in self.__toklist] def asDict( self ): """ Returns the named parse results as a nested dictionary. Example:: integer = Word(nums) date_str = integer("year") + '/' + integer("month") + '/' + integer("day") result = date_str.parseString('12/31/1999') print(type(result), repr(result)) # -> (['12', '/', '31', '/', '1999'], {'day': [('1999', 4)], 'year': [('12', 0)], 'month': [('31', 2)]}) result_dict = result.asDict() print(type(result_dict), repr(result_dict)) # -> {'day': '1999', 'year': '12', 'month': '31'} # even though a ParseResults supports dict-like access, sometime you just need to have a dict import json print(json.dumps(result)) # -> Exception: TypeError: ... is not JSON serializable print(json.dumps(result.asDict())) # -> {"month": "31", "day": "1999", "year": "12"} """ if PY_3: item_fn = self.items else: item_fn = self.iteritems def toItem(obj): if isinstance(obj, ParseResults): if obj.haskeys(): return obj.asDict() else: return [toItem(v) for v in obj] else: return obj return dict((k,toItem(v)) for k,v in item_fn()) def copy( self ): """ Returns a new copy of a C{ParseResults} object. """ ret = ParseResults( self.__toklist ) ret.__tokdict = self.__tokdict.copy() ret.__parent = self.__parent ret.__accumNames.update( self.__accumNames ) ret.__name = self.__name return ret def asXML( self, doctag=None, namedItemsOnly=False, indent="", formatted=True ): """ (Deprecated) Returns the parse results as XML. Tags are created for tokens and lists that have defined results names. """ nl = "\n" out = [] namedItems = dict((v[1],k) for (k,vlist) in self.__tokdict.items() for v in vlist) nextLevelIndent = indent + " " # collapse out indents if formatting is not desired if not formatted: indent = "" nextLevelIndent = "" nl = "" selfTag = None if doctag is not None: selfTag = doctag else: if self.__name: selfTag = self.__name if not selfTag: if namedItemsOnly: return "" else: selfTag = "ITEM" out += [ nl, indent, "<", selfTag, ">" ] for i,res in enumerate(self.__toklist): if isinstance(res,ParseResults): if i in namedItems: out += [ res.asXML(namedItems[i], namedItemsOnly and doctag is None, nextLevelIndent, formatted)] else: out += [ res.asXML(None, namedItemsOnly and doctag is None, nextLevelIndent, formatted)] else: # individual token, see if there is a name for it resTag = None if i in namedItems: resTag = namedItems[i] if not resTag: if namedItemsOnly: continue else: resTag = "ITEM" xmlBodyText = _xml_escape(_ustr(res)) out += [ nl, nextLevelIndent, "<", resTag, ">", xmlBodyText, "" ] out += [ nl, indent, "" ] return "".join(out) def __lookup(self,sub): for k,vlist in self.__tokdict.items(): for v,loc in vlist: if sub is v: return k return None def getName(self): r""" Returns the results name for this token expression. Useful when several different expressions might match at a particular location. Example:: integer = Word(nums) ssn_expr = Regex(r"\d\d\d-\d\d-\d\d\d\d") house_number_expr = Suppress('#') + Word(nums, alphanums) user_data = (Group(house_number_expr)("house_number") | Group(ssn_expr)("ssn") | Group(integer)("age")) user_info = OneOrMore(user_data) result = user_info.parseString("22 111-22-3333 #221B") for item in result: print(item.getName(), ':', item[0]) prints:: age : 22 ssn : 111-22-3333 house_number : 221B """ if self.__name: return self.__name elif self.__parent: par = self.__parent() if par: return par.__lookup(self) else: return None elif (len(self) == 1 and len(self.__tokdict) == 1 and next(iter(self.__tokdict.values()))[0][1] in (0,-1)): return next(iter(self.__tokdict.keys())) else: return None def dump(self, indent='', depth=0, full=True): """ Diagnostic method for listing out the contents of a C{ParseResults}. Accepts an optional C{indent} argument so that this string can be embedded in a nested display of other data. Example:: integer = Word(nums) date_str = integer("year") + '/' + integer("month") + '/' + integer("day") result = date_str.parseString('12/31/1999') print(result.dump()) prints:: ['12', '/', '31', '/', '1999'] - day: 1999 - month: 31 - year: 12 """ out = [] NL = '\n' out.append( indent+_ustr(self.asList()) ) if full: if self.haskeys(): items = sorted((str(k), v) for k,v in self.items()) for k,v in items: if out: out.append(NL) out.append( "%s%s- %s: " % (indent,(' '*depth), k) ) if isinstance(v,ParseResults): if v: out.append( v.dump(indent,depth+1) ) else: out.append(_ustr(v)) else: out.append(repr(v)) elif any(isinstance(vv,ParseResults) for vv in self): v = self for i,vv in enumerate(v): if isinstance(vv,ParseResults): out.append("\n%s%s[%d]:\n%s%s%s" % (indent,(' '*(depth)),i,indent,(' '*(depth+1)),vv.dump(indent,depth+1) )) else: out.append("\n%s%s[%d]:\n%s%s%s" % (indent,(' '*(depth)),i,indent,(' '*(depth+1)),_ustr(vv))) return "".join(out) def pprint(self, *args, **kwargs): """ Pretty-printer for parsed results as a list, using the C{pprint} module. Accepts additional positional or keyword args as defined for the C{pprint.pprint} method. (U{http://docs.python.org/3/library/pprint.html#pprint.pprint}) Example:: ident = Word(alphas, alphanums) num = Word(nums) func = Forward() term = ident | num | Group('(' + func + ')') func <<= ident + Group(Optional(delimitedList(term))) result = func.parseString("fna a,b,(fnb c,d,200),100") result.pprint(width=40) prints:: ['fna', ['a', 'b', ['(', 'fnb', ['c', 'd', '200'], ')'], '100']] """ pprint.pprint(self.asList(), *args, **kwargs) # add support for pickle protocol def __getstate__(self): return ( self.__toklist, ( self.__tokdict.copy(), self.__parent is not None and self.__parent() or None, self.__accumNames, self.__name ) ) def __setstate__(self,state): self.__toklist = state[0] (self.__tokdict, par, inAccumNames, self.__name) = state[1] self.__accumNames = {} self.__accumNames.update(inAccumNames) if par is not None: self.__parent = wkref(par) else: self.__parent = None def __getnewargs__(self): return self.__toklist, self.__name, self.__asList, self.__modal def __dir__(self): return (dir(type(self)) + list(self.keys())) collections.MutableMapping.register(ParseResults) def col (loc,strg): """Returns current column within a string, counting newlines as line separators. The first column is number 1. Note: the default parsing behavior is to expand tabs in the input string before starting the parsing process. See L{I{ParserElement.parseString}} for more information on parsing strings containing C{}s, and suggested methods to maintain a consistent view of the parsed string, the parse location, and line and column positions within the parsed string. """ s = strg return 1 if 0} for more information on parsing strings containing C{}s, and suggested methods to maintain a consistent view of the parsed string, the parse location, and line and column positions within the parsed string. """ return strg.count("\n",0,loc) + 1 def line( loc, strg ): """Returns the line of text containing loc within a string, counting newlines as line separators. """ lastCR = strg.rfind("\n", 0, loc) nextCR = strg.find("\n", loc) if nextCR >= 0: return strg[lastCR+1:nextCR] else: return strg[lastCR+1:] def _defaultStartDebugAction( instring, loc, expr ): print (("Match " + _ustr(expr) + " at loc " + _ustr(loc) + "(%d,%d)" % ( lineno(loc,instring), col(loc,instring) ))) def _defaultSuccessDebugAction( instring, startloc, endloc, expr, toks ): print ("Matched " + _ustr(expr) + " -> " + str(toks.asList())) def _defaultExceptionDebugAction( instring, loc, expr, exc ): print ("Exception raised:" + _ustr(exc)) def nullDebugAction(*args): """'Do-nothing' debug action, to suppress debugging output during parsing.""" pass # Only works on Python 3.x - nonlocal is toxic to Python 2 installs #~ 'decorator to trim function calls to match the arity of the target' #~ def _trim_arity(func, maxargs=3): #~ if func in singleArgBuiltins: #~ return lambda s,l,t: func(t) #~ limit = 0 #~ foundArity = False #~ def wrapper(*args): #~ nonlocal limit,foundArity #~ while 1: #~ try: #~ ret = func(*args[limit:]) #~ foundArity = True #~ return ret #~ except TypeError: #~ if limit == maxargs or foundArity: #~ raise #~ limit += 1 #~ continue #~ return wrapper # this version is Python 2.x-3.x cross-compatible 'decorator to trim function calls to match the arity of the target' def _trim_arity(func, maxargs=2): if func in singleArgBuiltins: return lambda s,l,t: func(t) limit = [0] foundArity = [False] # traceback return data structure changed in Py3.5 - normalize back to plain tuples if system_version[:2] >= (3,5): def extract_stack(limit=0): # special handling for Python 3.5.0 - extra deep call stack by 1 offset = -3 if system_version == (3,5,0) else -2 frame_summary = traceback.extract_stack(limit=-offset+limit-1)[offset] return [(frame_summary.filename, frame_summary.lineno)] def extract_tb(tb, limit=0): frames = traceback.extract_tb(tb, limit=limit) frame_summary = frames[-1] return [(frame_summary.filename, frame_summary.lineno)] else: extract_stack = traceback.extract_stack extract_tb = traceback.extract_tb # synthesize what would be returned by traceback.extract_stack at the call to # user's parse action 'func', so that we don't incur call penalty at parse time LINE_DIFF = 6 # IF ANY CODE CHANGES, EVEN JUST COMMENTS OR BLANK LINES, BETWEEN THE NEXT LINE AND # THE CALL TO FUNC INSIDE WRAPPER, LINE_DIFF MUST BE MODIFIED!!!! this_line = extract_stack(limit=2)[-1] pa_call_line_synth = (this_line[0], this_line[1]+LINE_DIFF) def wrapper(*args): while 1: try: ret = func(*args[limit[0]:]) foundArity[0] = True return ret except TypeError: # re-raise TypeErrors if they did not come from our arity testing if foundArity[0]: raise else: try: tb = sys.exc_info()[-1] if not extract_tb(tb, limit=2)[-1][:2] == pa_call_line_synth: raise finally: del tb if limit[0] <= maxargs: limit[0] += 1 continue raise # copy func name to wrapper for sensible debug output func_name = "" try: func_name = getattr(func, '__name__', getattr(func, '__class__').__name__) except Exception: func_name = str(func) wrapper.__name__ = func_name return wrapper class ParserElement(object): """Abstract base level parser element class.""" DEFAULT_WHITE_CHARS = " \n\t\r" verbose_stacktrace = False @staticmethod def setDefaultWhitespaceChars( chars ): r""" Overrides the default whitespace chars Example:: # default whitespace chars are space, and newline OneOrMore(Word(alphas)).parseString("abc def\nghi jkl") # -> ['abc', 'def', 'ghi', 'jkl'] # change to just treat newline as significant ParserElement.setDefaultWhitespaceChars(" \t") OneOrMore(Word(alphas)).parseString("abc def\nghi jkl") # -> ['abc', 'def'] """ ParserElement.DEFAULT_WHITE_CHARS = chars @staticmethod def inlineLiteralsUsing(cls): """ Set class to be used for inclusion of string literals into a parser. Example:: # default literal class used is Literal integer = Word(nums) date_str = integer("year") + '/' + integer("month") + '/' + integer("day") date_str.parseString("1999/12/31") # -> ['1999', '/', '12', '/', '31'] # change to Suppress ParserElement.inlineLiteralsUsing(Suppress) date_str = integer("year") + '/' + integer("month") + '/' + integer("day") date_str.parseString("1999/12/31") # -> ['1999', '12', '31'] """ ParserElement._literalStringClass = cls def __init__( self, savelist=False ): self.parseAction = list() self.failAction = None #~ self.name = "" # don't define self.name, let subclasses try/except upcall self.strRepr = None self.resultsName = None self.saveAsList = savelist self.skipWhitespace = True self.whiteChars = ParserElement.DEFAULT_WHITE_CHARS self.copyDefaultWhiteChars = True self.mayReturnEmpty = False # used when checking for left-recursion self.keepTabs = False self.ignoreExprs = list() self.debug = False self.streamlined = False self.mayIndexError = True # used to optimize exception handling for subclasses that don't advance parse index self.errmsg = "" self.modalResults = True # used to mark results names as modal (report only last) or cumulative (list all) self.debugActions = ( None, None, None ) #custom debug actions self.re = None self.callPreparse = True # used to avoid redundant calls to preParse self.callDuringTry = False def copy( self ): """ Make a copy of this C{ParserElement}. Useful for defining different parse actions for the same parsing pattern, using copies of the original parse element. Example:: integer = Word(nums).setParseAction(lambda toks: int(toks[0])) integerK = integer.copy().addParseAction(lambda toks: toks[0]*1024) + Suppress("K") integerM = integer.copy().addParseAction(lambda toks: toks[0]*1024*1024) + Suppress("M") print(OneOrMore(integerK | integerM | integer).parseString("5K 100 640K 256M")) prints:: [5120, 100, 655360, 268435456] Equivalent form of C{expr.copy()} is just C{expr()}:: integerM = integer().addParseAction(lambda toks: toks[0]*1024*1024) + Suppress("M") """ cpy = copy.copy( self ) cpy.parseAction = self.parseAction[:] cpy.ignoreExprs = self.ignoreExprs[:] if self.copyDefaultWhiteChars: cpy.whiteChars = ParserElement.DEFAULT_WHITE_CHARS return cpy def setName( self, name ): """ Define name for this expression, makes debugging and exception messages clearer. Example:: Word(nums).parseString("ABC") # -> Exception: Expected W:(0123...) (at char 0), (line:1, col:1) Word(nums).setName("integer").parseString("ABC") # -> Exception: Expected integer (at char 0), (line:1, col:1) """ self.name = name self.errmsg = "Expected " + self.name if hasattr(self,"exception"): self.exception.msg = self.errmsg return self def setResultsName( self, name, listAllMatches=False ): """ Define name for referencing matching tokens as a nested attribute of the returned parse results. NOTE: this returns a *copy* of the original C{ParserElement} object; this is so that the client can define a basic element, such as an integer, and reference it in multiple places with different names. You can also set results names using the abbreviated syntax, C{expr("name")} in place of C{expr.setResultsName("name")} - see L{I{__call__}<__call__>}. Example:: date_str = (integer.setResultsName("year") + '/' + integer.setResultsName("month") + '/' + integer.setResultsName("day")) # equivalent form: date_str = integer("year") + '/' + integer("month") + '/' + integer("day") """ newself = self.copy() if name.endswith("*"): name = name[:-1] listAllMatches=True newself.resultsName = name newself.modalResults = not listAllMatches return newself def setBreak(self,breakFlag = True): """Method to invoke the Python pdb debugger when this element is about to be parsed. Set C{breakFlag} to True to enable, False to disable. """ if breakFlag: _parseMethod = self._parse def breaker(instring, loc, doActions=True, callPreParse=True): import pdb pdb.set_trace() return _parseMethod( instring, loc, doActions, callPreParse ) breaker._originalParseMethod = _parseMethod self._parse = breaker else: if hasattr(self._parse,"_originalParseMethod"): self._parse = self._parse._originalParseMethod return self def setParseAction( self, *fns, **kwargs ): """ Define one or more actions to perform when successfully matching parse element definition. Parse action fn is a callable method with 0-3 arguments, called as C{fn(s,loc,toks)}, C{fn(loc,toks)}, C{fn(toks)}, or just C{fn()}, where: - s = the original string being parsed (see note below) - loc = the location of the matching substring - toks = a list of the matched tokens, packaged as a C{L{ParseResults}} object If the functions in fns modify the tokens, they can return them as the return value from fn, and the modified list of tokens will replace the original. Otherwise, fn does not need to return any value. Optional keyword arguments: - callDuringTry = (default=C{False}) indicate if parse action should be run during lookaheads and alternate testing Note: the default parsing behavior is to expand tabs in the input string before starting the parsing process. See L{I{parseString}} for more information on parsing strings containing C{}s, and suggested methods to maintain a consistent view of the parsed string, the parse location, and line and column positions within the parsed string. Example:: integer = Word(nums) date_str = integer + '/' + integer + '/' + integer date_str.parseString("1999/12/31") # -> ['1999', '/', '12', '/', '31'] # use parse action to convert to ints at parse time integer = Word(nums).setParseAction(lambda toks: int(toks[0])) date_str = integer + '/' + integer + '/' + integer # note that integer fields are now ints, not strings date_str.parseString("1999/12/31") # -> [1999, '/', 12, '/', 31] """ self.parseAction = list(map(_trim_arity, list(fns))) self.callDuringTry = kwargs.get("callDuringTry", False) return self def addParseAction( self, *fns, **kwargs ): """ Add one or more parse actions to expression's list of parse actions. See L{I{setParseAction}}. See examples in L{I{copy}}. """ self.parseAction += list(map(_trim_arity, list(fns))) self.callDuringTry = self.callDuringTry or kwargs.get("callDuringTry", False) return self def addCondition(self, *fns, **kwargs): """Add a boolean predicate function to expression's list of parse actions. See L{I{setParseAction}} for function call signatures. Unlike C{setParseAction}, functions passed to C{addCondition} need to return boolean success/fail of the condition. Optional keyword arguments: - message = define a custom message to be used in the raised exception - fatal = if True, will raise ParseFatalException to stop parsing immediately; otherwise will raise ParseException Example:: integer = Word(nums).setParseAction(lambda toks: int(toks[0])) year_int = integer.copy() year_int.addCondition(lambda toks: toks[0] >= 2000, message="Only support years 2000 and later") date_str = year_int + '/' + integer + '/' + integer result = date_str.parseString("1999/12/31") # -> Exception: Only support years 2000 and later (at char 0), (line:1, col:1) """ msg = kwargs.get("message", "failed user-defined condition") exc_type = ParseFatalException if kwargs.get("fatal", False) else ParseException for fn in fns: def pa(s,l,t): if not bool(_trim_arity(fn)(s,l,t)): raise exc_type(s,l,msg) self.parseAction.append(pa) self.callDuringTry = self.callDuringTry or kwargs.get("callDuringTry", False) return self def setFailAction( self, fn ): """Define action to perform if parsing fails at this expression. Fail acton fn is a callable function that takes the arguments C{fn(s,loc,expr,err)} where: - s = string being parsed - loc = location where expression match was attempted and failed - expr = the parse expression that failed - err = the exception thrown The function returns no value. It may throw C{L{ParseFatalException}} if it is desired to stop parsing immediately.""" self.failAction = fn return self def _skipIgnorables( self, instring, loc ): exprsFound = True while exprsFound: exprsFound = False for e in self.ignoreExprs: try: while 1: loc,dummy = e._parse( instring, loc ) exprsFound = True except ParseException: pass return loc def preParse( self, instring, loc ): if self.ignoreExprs: loc = self._skipIgnorables( instring, loc ) if self.skipWhitespace: wt = self.whiteChars instrlen = len(instring) while loc < instrlen and instring[loc] in wt: loc += 1 return loc def parseImpl( self, instring, loc, doActions=True ): return loc, [] def postParse( self, instring, loc, tokenlist ): return tokenlist #~ @profile def _parseNoCache( self, instring, loc, doActions=True, callPreParse=True ): debugging = ( self.debug ) #and doActions ) if debugging or self.failAction: #~ print ("Match",self,"at loc",loc,"(%d,%d)" % ( lineno(loc,instring), col(loc,instring) )) if (self.debugActions[0] ): self.debugActions[0]( instring, loc, self ) if callPreParse and self.callPreparse: preloc = self.preParse( instring, loc ) else: preloc = loc tokensStart = preloc try: try: loc,tokens = self.parseImpl( instring, preloc, doActions ) except IndexError: raise ParseException( instring, len(instring), self.errmsg, self ) except ParseBaseException as err: #~ print ("Exception raised:", err) if self.debugActions[2]: self.debugActions[2]( instring, tokensStart, self, err ) if self.failAction: self.failAction( instring, tokensStart, self, err ) raise else: if callPreParse and self.callPreparse: preloc = self.preParse( instring, loc ) else: preloc = loc tokensStart = preloc if self.mayIndexError or loc >= len(instring): try: loc,tokens = self.parseImpl( instring, preloc, doActions ) except IndexError: raise ParseException( instring, len(instring), self.errmsg, self ) else: loc,tokens = self.parseImpl( instring, preloc, doActions ) tokens = self.postParse( instring, loc, tokens ) retTokens = ParseResults( tokens, self.resultsName, asList=self.saveAsList, modal=self.modalResults ) if self.parseAction and (doActions or self.callDuringTry): if debugging: try: for fn in self.parseAction: tokens = fn( instring, tokensStart, retTokens ) if tokens is not None: retTokens = ParseResults( tokens, self.resultsName, asList=self.saveAsList and isinstance(tokens,(ParseResults,list)), modal=self.modalResults ) except ParseBaseException as err: #~ print "Exception raised in user parse action:", err if (self.debugActions[2] ): self.debugActions[2]( instring, tokensStart, self, err ) raise else: for fn in self.parseAction: tokens = fn( instring, tokensStart, retTokens ) if tokens is not None: retTokens = ParseResults( tokens, self.resultsName, asList=self.saveAsList and isinstance(tokens,(ParseResults,list)), modal=self.modalResults ) if debugging: #~ print ("Matched",self,"->",retTokens.asList()) if (self.debugActions[1] ): self.debugActions[1]( instring, tokensStart, loc, self, retTokens ) return loc, retTokens def tryParse( self, instring, loc ): try: return self._parse( instring, loc, doActions=False )[0] except ParseFatalException: raise ParseException( instring, loc, self.errmsg, self) def canParseNext(self, instring, loc): try: self.tryParse(instring, loc) except (ParseException, IndexError): return False else: return True class _UnboundedCache(object): def __init__(self): cache = {} self.not_in_cache = not_in_cache = object() def get(self, key): return cache.get(key, not_in_cache) def set(self, key, value): cache[key] = value def clear(self): cache.clear() def cache_len(self): return len(cache) self.get = types.MethodType(get, self) self.set = types.MethodType(set, self) self.clear = types.MethodType(clear, self) self.__len__ = types.MethodType(cache_len, self) if _OrderedDict is not None: class _FifoCache(object): def __init__(self, size): self.not_in_cache = not_in_cache = object() cache = _OrderedDict() def get(self, key): return cache.get(key, not_in_cache) def set(self, key, value): cache[key] = value while len(cache) > size: try: cache.popitem(False) except KeyError: pass def clear(self): cache.clear() def cache_len(self): return len(cache) self.get = types.MethodType(get, self) self.set = types.MethodType(set, self) self.clear = types.MethodType(clear, self) self.__len__ = types.MethodType(cache_len, self) else: class _FifoCache(object): def __init__(self, size): self.not_in_cache = not_in_cache = object() cache = {} key_fifo = collections.deque([], size) def get(self, key): return cache.get(key, not_in_cache) def set(self, key, value): cache[key] = value while len(key_fifo) > size: cache.pop(key_fifo.popleft(), None) key_fifo.append(key) def clear(self): cache.clear() key_fifo.clear() def cache_len(self): return len(cache) self.get = types.MethodType(get, self) self.set = types.MethodType(set, self) self.clear = types.MethodType(clear, self) self.__len__ = types.MethodType(cache_len, self) # argument cache for optimizing repeated calls when backtracking through recursive expressions packrat_cache = {} # this is set later by enabledPackrat(); this is here so that resetCache() doesn't fail packrat_cache_lock = RLock() packrat_cache_stats = [0, 0] # this method gets repeatedly called during backtracking with the same arguments - # we can cache these arguments and save ourselves the trouble of re-parsing the contained expression def _parseCache( self, instring, loc, doActions=True, callPreParse=True ): HIT, MISS = 0, 1 lookup = (self, instring, loc, callPreParse, doActions) with ParserElement.packrat_cache_lock: cache = ParserElement.packrat_cache value = cache.get(lookup) if value is cache.not_in_cache: ParserElement.packrat_cache_stats[MISS] += 1 try: value = self._parseNoCache(instring, loc, doActions, callPreParse) except ParseBaseException as pe: # cache a copy of the exception, without the traceback cache.set(lookup, pe.__class__(*pe.args)) raise else: cache.set(lookup, (value[0], value[1].copy())) return value else: ParserElement.packrat_cache_stats[HIT] += 1 if isinstance(value, Exception): raise value return (value[0], value[1].copy()) _parse = _parseNoCache @staticmethod def resetCache(): ParserElement.packrat_cache.clear() ParserElement.packrat_cache_stats[:] = [0] * len(ParserElement.packrat_cache_stats) _packratEnabled = False @staticmethod def enablePackrat(cache_size_limit=128): """Enables "packrat" parsing, which adds memoizing to the parsing logic. Repeated parse attempts at the same string location (which happens often in many complex grammars) can immediately return a cached value, instead of re-executing parsing/validating code. Memoizing is done of both valid results and parsing exceptions. Parameters: - cache_size_limit - (default=C{128}) - if an integer value is provided will limit the size of the packrat cache; if None is passed, then the cache size will be unbounded; if 0 is passed, the cache will be effectively disabled. This speedup may break existing programs that use parse actions that have side-effects. For this reason, packrat parsing is disabled when you first import pyparsing. To activate the packrat feature, your program must call the class method C{ParserElement.enablePackrat()}. If your program uses C{psyco} to "compile as you go", you must call C{enablePackrat} before calling C{psyco.full()}. If you do not do this, Python will crash. For best results, call C{enablePackrat()} immediately after importing pyparsing. Example:: import pyparsing pyparsing.ParserElement.enablePackrat() """ if not ParserElement._packratEnabled: ParserElement._packratEnabled = True if cache_size_limit is None: ParserElement.packrat_cache = ParserElement._UnboundedCache() else: ParserElement.packrat_cache = ParserElement._FifoCache(cache_size_limit) ParserElement._parse = ParserElement._parseCache def parseString( self, instring, parseAll=False ): """ Execute the parse expression with the given string. This is the main interface to the client code, once the complete expression has been built. If you want the grammar to require that the entire input string be successfully parsed, then set C{parseAll} to True (equivalent to ending the grammar with C{L{StringEnd()}}). Note: C{parseString} implicitly calls C{expandtabs()} on the input string, in order to report proper column numbers in parse actions. If the input string contains tabs and the grammar uses parse actions that use the C{loc} argument to index into the string being parsed, you can ensure you have a consistent view of the input string by: - calling C{parseWithTabs} on your grammar before calling C{parseString} (see L{I{parseWithTabs}}) - define your parse action using the full C{(s,loc,toks)} signature, and reference the input string using the parse action's C{s} argument - explictly expand the tabs in your input string before calling C{parseString} Example:: Word('a').parseString('aaaaabaaa') # -> ['aaaaa'] Word('a').parseString('aaaaabaaa', parseAll=True) # -> Exception: Expected end of text """ ParserElement.resetCache() if not self.streamlined: self.streamline() #~ self.saveAsList = True for e in self.ignoreExprs: e.streamline() if not self.keepTabs: instring = instring.expandtabs() try: loc, tokens = self._parse( instring, 0 ) if parseAll: loc = self.preParse( instring, loc ) se = Empty() + StringEnd() se._parse( instring, loc ) except ParseBaseException as exc: if ParserElement.verbose_stacktrace: raise else: # catch and re-raise exception from here, clears out pyparsing internal stack trace raise exc else: return tokens def scanString( self, instring, maxMatches=_MAX_INT, overlap=False ): """ Scan the input string for expression matches. Each match will return the matching tokens, start location, and end location. May be called with optional C{maxMatches} argument, to clip scanning after 'n' matches are found. If C{overlap} is specified, then overlapping matches will be reported. Note that the start and end locations are reported relative to the string being parsed. See L{I{parseString}} for more information on parsing strings with embedded tabs. Example:: source = "sldjf123lsdjjkf345sldkjf879lkjsfd987" print(source) for tokens,start,end in Word(alphas).scanString(source): print(' '*start + '^'*(end-start)) print(' '*start + tokens[0]) prints:: sldjf123lsdjjkf345sldkjf879lkjsfd987 ^^^^^ sldjf ^^^^^^^ lsdjjkf ^^^^^^ sldkjf ^^^^^^ lkjsfd """ if not self.streamlined: self.streamline() for e in self.ignoreExprs: e.streamline() if not self.keepTabs: instring = _ustr(instring).expandtabs() instrlen = len(instring) loc = 0 preparseFn = self.preParse parseFn = self._parse ParserElement.resetCache() matches = 0 try: while loc <= instrlen and matches < maxMatches: try: preloc = preparseFn( instring, loc ) nextLoc,tokens = parseFn( instring, preloc, callPreParse=False ) except ParseException: loc = preloc+1 else: if nextLoc > loc: matches += 1 yield tokens, preloc, nextLoc if overlap: nextloc = preparseFn( instring, loc ) if nextloc > loc: loc = nextLoc else: loc += 1 else: loc = nextLoc else: loc = preloc+1 except ParseBaseException as exc: if ParserElement.verbose_stacktrace: raise else: # catch and re-raise exception from here, clears out pyparsing internal stack trace raise exc def transformString( self, instring ): """ Extension to C{L{scanString}}, to modify matching text with modified tokens that may be returned from a parse action. To use C{transformString}, define a grammar and attach a parse action to it that modifies the returned token list. Invoking C{transformString()} on a target string will then scan for matches, and replace the matched text patterns according to the logic in the parse action. C{transformString()} returns the resulting transformed string. Example:: wd = Word(alphas) wd.setParseAction(lambda toks: toks[0].title()) print(wd.transformString("now is the winter of our discontent made glorious summer by this sun of york.")) Prints:: Now Is The Winter Of Our Discontent Made Glorious Summer By This Sun Of York. """ out = [] lastE = 0 # force preservation of s, to minimize unwanted transformation of string, and to # keep string locs straight between transformString and scanString self.keepTabs = True try: for t,s,e in self.scanString( instring ): out.append( instring[lastE:s] ) if t: if isinstance(t,ParseResults): out += t.asList() elif isinstance(t,list): out += t else: out.append(t) lastE = e out.append(instring[lastE:]) out = [o for o in out if o] return "".join(map(_ustr,_flatten(out))) except ParseBaseException as exc: if ParserElement.verbose_stacktrace: raise else: # catch and re-raise exception from here, clears out pyparsing internal stack trace raise exc def searchString( self, instring, maxMatches=_MAX_INT ): """ Another extension to C{L{scanString}}, simplifying the access to the tokens found to match the given parse expression. May be called with optional C{maxMatches} argument, to clip searching after 'n' matches are found. Example:: # a capitalized word starts with an uppercase letter, followed by zero or more lowercase letters cap_word = Word(alphas.upper(), alphas.lower()) print(cap_word.searchString("More than Iron, more than Lead, more than Gold I need Electricity")) # the sum() builtin can be used to merge results into a single ParseResults object print(sum(cap_word.searchString("More than Iron, more than Lead, more than Gold I need Electricity"))) prints:: [['More'], ['Iron'], ['Lead'], ['Gold'], ['I'], ['Electricity']] ['More', 'Iron', 'Lead', 'Gold', 'I', 'Electricity'] """ try: return ParseResults([ t for t,s,e in self.scanString( instring, maxMatches ) ]) except ParseBaseException as exc: if ParserElement.verbose_stacktrace: raise else: # catch and re-raise exception from here, clears out pyparsing internal stack trace raise exc def split(self, instring, maxsplit=_MAX_INT, includeSeparators=False): """ Generator method to split a string using the given expression as a separator. May be called with optional C{maxsplit} argument, to limit the number of splits; and the optional C{includeSeparators} argument (default=C{False}), if the separating matching text should be included in the split results. Example:: punc = oneOf(list(".,;:/-!?")) print(list(punc.split("This, this?, this sentence, is badly punctuated!"))) prints:: ['This', ' this', '', ' this sentence', ' is badly punctuated', ''] """ splits = 0 last = 0 for t,s,e in self.scanString(instring, maxMatches=maxsplit): yield instring[last:s] if includeSeparators: yield t[0] last = e yield instring[last:] def __add__(self, other ): """ Implementation of + operator - returns C{L{And}}. Adding strings to a ParserElement converts them to L{Literal}s by default. Example:: greet = Word(alphas) + "," + Word(alphas) + "!" hello = "Hello, World!" print (hello, "->", greet.parseString(hello)) Prints:: Hello, World! -> ['Hello', ',', 'World', '!'] """ if isinstance( other, basestring ): other = ParserElement._literalStringClass( other ) if not isinstance( other, ParserElement ): warnings.warn("Cannot combine element of type %s with ParserElement" % type(other), SyntaxWarning, stacklevel=2) return None return And( [ self, other ] ) def __radd__(self, other ): """ Implementation of + operator when left operand is not a C{L{ParserElement}} """ if isinstance( other, basestring ): other = ParserElement._literalStringClass( other ) if not isinstance( other, ParserElement ): warnings.warn("Cannot combine element of type %s with ParserElement" % type(other), SyntaxWarning, stacklevel=2) return None return other + self def __sub__(self, other): """ Implementation of - operator, returns C{L{And}} with error stop """ if isinstance( other, basestring ): other = ParserElement._literalStringClass( other ) if not isinstance( other, ParserElement ): warnings.warn("Cannot combine element of type %s with ParserElement" % type(other), SyntaxWarning, stacklevel=2) return None return self + And._ErrorStop() + other def __rsub__(self, other ): """ Implementation of - operator when left operand is not a C{L{ParserElement}} """ if isinstance( other, basestring ): other = ParserElement._literalStringClass( other ) if not isinstance( other, ParserElement ): warnings.warn("Cannot combine element of type %s with ParserElement" % type(other), SyntaxWarning, stacklevel=2) return None return other - self def __mul__(self,other): """ Implementation of * operator, allows use of C{expr * 3} in place of C{expr + expr + expr}. Expressions may also me multiplied by a 2-integer tuple, similar to C{{min,max}} multipliers in regular expressions. Tuples may also include C{None} as in: - C{expr*(n,None)} or C{expr*(n,)} is equivalent to C{expr*n + L{ZeroOrMore}(expr)} (read as "at least n instances of C{expr}") - C{expr*(None,n)} is equivalent to C{expr*(0,n)} (read as "0 to n instances of C{expr}") - C{expr*(None,None)} is equivalent to C{L{ZeroOrMore}(expr)} - C{expr*(1,None)} is equivalent to C{L{OneOrMore}(expr)} Note that C{expr*(None,n)} does not raise an exception if more than n exprs exist in the input stream; that is, C{expr*(None,n)} does not enforce a maximum number of expr occurrences. If this behavior is desired, then write C{expr*(None,n) + ~expr} """ if isinstance(other,int): minElements, optElements = other,0 elif isinstance(other,tuple): other = (other + (None, None))[:2] if other[0] is None: other = (0, other[1]) if isinstance(other[0],int) and other[1] is None: if other[0] == 0: return ZeroOrMore(self) if other[0] == 1: return OneOrMore(self) else: return self*other[0] + ZeroOrMore(self) elif isinstance(other[0],int) and isinstance(other[1],int): minElements, optElements = other optElements -= minElements else: raise TypeError("cannot multiply 'ParserElement' and ('%s','%s') objects", type(other[0]),type(other[1])) else: raise TypeError("cannot multiply 'ParserElement' and '%s' objects", type(other)) if minElements < 0: raise ValueError("cannot multiply ParserElement by negative value") if optElements < 0: raise ValueError("second tuple value must be greater or equal to first tuple value") if minElements == optElements == 0: raise ValueError("cannot multiply ParserElement by 0 or (0,0)") if (optElements): def makeOptionalList(n): if n>1: return Optional(self + makeOptionalList(n-1)) else: return Optional(self) if minElements: if minElements == 1: ret = self + makeOptionalList(optElements) else: ret = And([self]*minElements) + makeOptionalList(optElements) else: ret = makeOptionalList(optElements) else: if minElements == 1: ret = self else: ret = And([self]*minElements) return ret def __rmul__(self, other): return self.__mul__(other) def __or__(self, other ): """ Implementation of | operator - returns C{L{MatchFirst}} """ if isinstance( other, basestring ): other = ParserElement._literalStringClass( other ) if not isinstance( other, ParserElement ): warnings.warn("Cannot combine element of type %s with ParserElement" % type(other), SyntaxWarning, stacklevel=2) return None return MatchFirst( [ self, other ] ) def __ror__(self, other ): """ Implementation of | operator when left operand is not a C{L{ParserElement}} """ if isinstance( other, basestring ): other = ParserElement._literalStringClass( other ) if not isinstance( other, ParserElement ): warnings.warn("Cannot combine element of type %s with ParserElement" % type(other), SyntaxWarning, stacklevel=2) return None return other | self def __xor__(self, other ): """ Implementation of ^ operator - returns C{L{Or}} """ if isinstance( other, basestring ): other = ParserElement._literalStringClass( other ) if not isinstance( other, ParserElement ): warnings.warn("Cannot combine element of type %s with ParserElement" % type(other), SyntaxWarning, stacklevel=2) return None return Or( [ self, other ] ) def __rxor__(self, other ): """ Implementation of ^ operator when left operand is not a C{L{ParserElement}} """ if isinstance( other, basestring ): other = ParserElement._literalStringClass( other ) if not isinstance( other, ParserElement ): warnings.warn("Cannot combine element of type %s with ParserElement" % type(other), SyntaxWarning, stacklevel=2) return None return other ^ self def __and__(self, other ): """ Implementation of & operator - returns C{L{Each}} """ if isinstance( other, basestring ): other = ParserElement._literalStringClass( other ) if not isinstance( other, ParserElement ): warnings.warn("Cannot combine element of type %s with ParserElement" % type(other), SyntaxWarning, stacklevel=2) return None return Each( [ self, other ] ) def __rand__(self, other ): """ Implementation of & operator when left operand is not a C{L{ParserElement}} """ if isinstance( other, basestring ): other = ParserElement._literalStringClass( other ) if not isinstance( other, ParserElement ): warnings.warn("Cannot combine element of type %s with ParserElement" % type(other), SyntaxWarning, stacklevel=2) return None return other & self def __invert__( self ): """ Implementation of ~ operator - returns C{L{NotAny}} """ return NotAny( self ) def __call__(self, name=None): """ Shortcut for C{L{setResultsName}}, with C{listAllMatches=False}. If C{name} is given with a trailing C{'*'} character, then C{listAllMatches} will be passed as C{True}. If C{name} is omitted, same as calling C{L{copy}}. Example:: # these are equivalent userdata = Word(alphas).setResultsName("name") + Word(nums+"-").setResultsName("socsecno") userdata = Word(alphas)("name") + Word(nums+"-")("socsecno") """ if name is not None: return self.setResultsName(name) else: return self.copy() def suppress( self ): """ Suppresses the output of this C{ParserElement}; useful to keep punctuation from cluttering up returned output. """ return Suppress( self ) def leaveWhitespace( self ): """ Disables the skipping of whitespace before matching the characters in the C{ParserElement}'s defined pattern. This is normally only used internally by the pyparsing module, but may be needed in some whitespace-sensitive grammars. """ self.skipWhitespace = False return self def setWhitespaceChars( self, chars ): """ Overrides the default whitespace chars """ self.skipWhitespace = True self.whiteChars = chars self.copyDefaultWhiteChars = False return self def parseWithTabs( self ): """ Overrides default behavior to expand C{}s to spaces before parsing the input string. Must be called before C{parseString} when the input grammar contains elements that match C{} characters. """ self.keepTabs = True return self def ignore( self, other ): """ Define expression to be ignored (e.g., comments) while doing pattern matching; may be called repeatedly, to define multiple comment or other ignorable patterns. Example:: patt = OneOrMore(Word(alphas)) patt.parseString('ablaj /* comment */ lskjd') # -> ['ablaj'] patt.ignore(cStyleComment) patt.parseString('ablaj /* comment */ lskjd') # -> ['ablaj', 'lskjd'] """ if isinstance(other, basestring): other = Suppress(other) if isinstance( other, Suppress ): if other not in self.ignoreExprs: self.ignoreExprs.append(other) else: self.ignoreExprs.append( Suppress( other.copy() ) ) return self def setDebugActions( self, startAction, successAction, exceptionAction ): """ Enable display of debugging messages while doing pattern matching. """ self.debugActions = (startAction or _defaultStartDebugAction, successAction or _defaultSuccessDebugAction, exceptionAction or _defaultExceptionDebugAction) self.debug = True return self def setDebug( self, flag=True ): """ Enable display of debugging messages while doing pattern matching. Set C{flag} to True to enable, False to disable. Example:: wd = Word(alphas).setName("alphaword") integer = Word(nums).setName("numword") term = wd | integer # turn on debugging for wd wd.setDebug() OneOrMore(term).parseString("abc 123 xyz 890") prints:: Match alphaword at loc 0(1,1) Matched alphaword -> ['abc'] Match alphaword at loc 3(1,4) Exception raised:Expected alphaword (at char 4), (line:1, col:5) Match alphaword at loc 7(1,8) Matched alphaword -> ['xyz'] Match alphaword at loc 11(1,12) Exception raised:Expected alphaword (at char 12), (line:1, col:13) Match alphaword at loc 15(1,16) Exception raised:Expected alphaword (at char 15), (line:1, col:16) The output shown is that produced by the default debug actions - custom debug actions can be specified using L{setDebugActions}. Prior to attempting to match the C{wd} expression, the debugging message C{"Match at loc (,)"} is shown. Then if the parse succeeds, a C{"Matched"} message is shown, or an C{"Exception raised"} message is shown. Also note the use of L{setName} to assign a human-readable name to the expression, which makes debugging and exception messages easier to understand - for instance, the default name created for the C{Word} expression without calling C{setName} is C{"W:(ABCD...)"}. """ if flag: self.setDebugActions( _defaultStartDebugAction, _defaultSuccessDebugAction, _defaultExceptionDebugAction ) else: self.debug = False return self def __str__( self ): return self.name def __repr__( self ): return _ustr(self) def streamline( self ): self.streamlined = True self.strRepr = None return self def checkRecursion( self, parseElementList ): pass def validate( self, validateTrace=[] ): """ Check defined expressions for valid structure, check for infinite recursive definitions. """ self.checkRecursion( [] ) def parseFile( self, file_or_filename, parseAll=False ): """ Execute the parse expression on the given file or filename. If a filename is specified (instead of a file object), the entire file is opened, read, and closed before parsing. """ try: file_contents = file_or_filename.read() except AttributeError: with open(file_or_filename, "r") as f: file_contents = f.read() try: return self.parseString(file_contents, parseAll) except ParseBaseException as exc: if ParserElement.verbose_stacktrace: raise else: # catch and re-raise exception from here, clears out pyparsing internal stack trace raise exc def __eq__(self,other): if isinstance(other, ParserElement): return self is other or vars(self) == vars(other) elif isinstance(other, basestring): return self.matches(other) else: return super(ParserElement,self)==other def __ne__(self,other): return not (self == other) def __hash__(self): return hash(id(self)) def __req__(self,other): return self == other def __rne__(self,other): return not (self == other) def matches(self, testString, parseAll=True): """ Method for quick testing of a parser against a test string. Good for simple inline microtests of sub expressions while building up larger parser. Parameters: - testString - to test against this expression for a match - parseAll - (default=C{True}) - flag to pass to C{L{parseString}} when running tests Example:: expr = Word(nums) assert expr.matches("100") """ try: self.parseString(_ustr(testString), parseAll=parseAll) return True except ParseBaseException: return False def runTests(self, tests, parseAll=True, comment='#', fullDump=True, printResults=True, failureTests=False): """ Execute the parse expression on a series of test strings, showing each test, the parsed results or where the parse failed. Quick and easy way to run a parse expression against a list of sample strings. Parameters: - tests - a list of separate test strings, or a multiline string of test strings - parseAll - (default=C{True}) - flag to pass to C{L{parseString}} when running tests - comment - (default=C{'#'}) - expression for indicating embedded comments in the test string; pass None to disable comment filtering - fullDump - (default=C{True}) - dump results as list followed by results names in nested outline; if False, only dump nested list - printResults - (default=C{True}) prints test output to stdout - failureTests - (default=C{False}) indicates if these tests are expected to fail parsing Returns: a (success, results) tuple, where success indicates that all tests succeeded (or failed if C{failureTests} is True), and the results contain a list of lines of each test's output Example:: number_expr = pyparsing_common.number.copy() result = number_expr.runTests(''' # unsigned integer 100 # negative integer -100 # float with scientific notation 6.02e23 # integer with scientific notation 1e-12 ''') print("Success" if result[0] else "Failed!") result = number_expr.runTests(''' # stray character 100Z # missing leading digit before '.' -.100 # too many '.' 3.14.159 ''', failureTests=True) print("Success" if result[0] else "Failed!") prints:: # unsigned integer 100 [100] # negative integer -100 [-100] # float with scientific notation 6.02e23 [6.02e+23] # integer with scientific notation 1e-12 [1e-12] Success # stray character 100Z ^ FAIL: Expected end of text (at char 3), (line:1, col:4) # missing leading digit before '.' -.100 ^ FAIL: Expected {real number with scientific notation | real number | signed integer} (at char 0), (line:1, col:1) # too many '.' 3.14.159 ^ FAIL: Expected end of text (at char 4), (line:1, col:5) Success Each test string must be on a single line. If you want to test a string that spans multiple lines, create a test like this:: expr.runTest(r"this is a test\\n of strings that spans \\n 3 lines") (Note that this is a raw string literal, you must include the leading 'r'.) """ if isinstance(tests, basestring): tests = list(map(str.strip, tests.rstrip().splitlines())) if isinstance(comment, basestring): comment = Literal(comment) allResults = [] comments = [] success = True for t in tests: if comment is not None and comment.matches(t, False) or comments and not t: comments.append(t) continue if not t: continue out = ['\n'.join(comments), t] comments = [] try: t = t.replace(r'\n','\n') result = self.parseString(t, parseAll=parseAll) out.append(result.dump(full=fullDump)) success = success and not failureTests except ParseBaseException as pe: fatal = "(FATAL)" if isinstance(pe, ParseFatalException) else "" if '\n' in t: out.append(line(pe.loc, t)) out.append(' '*(col(pe.loc,t)-1) + '^' + fatal) else: out.append(' '*pe.loc + '^' + fatal) out.append("FAIL: " + str(pe)) success = success and failureTests result = pe except Exception as exc: out.append("FAIL-EXCEPTION: " + str(exc)) success = success and failureTests result = exc if printResults: if fullDump: out.append('') print('\n'.join(out)) allResults.append((t, result)) return success, allResults class Token(ParserElement): """ Abstract C{ParserElement} subclass, for defining atomic matching patterns. """ def __init__( self ): super(Token,self).__init__( savelist=False ) class Empty(Token): """ An empty token, will always match. """ def __init__( self ): super(Empty,self).__init__() self.name = "Empty" self.mayReturnEmpty = True self.mayIndexError = False class NoMatch(Token): """ A token that will never match. """ def __init__( self ): super(NoMatch,self).__init__() self.name = "NoMatch" self.mayReturnEmpty = True self.mayIndexError = False self.errmsg = "Unmatchable token" def parseImpl( self, instring, loc, doActions=True ): raise ParseException(instring, loc, self.errmsg, self) class Literal(Token): """ Token to exactly match a specified string. Example:: Literal('blah').parseString('blah') # -> ['blah'] Literal('blah').parseString('blahfooblah') # -> ['blah'] Literal('blah').parseString('bla') # -> Exception: Expected "blah" For case-insensitive matching, use L{CaselessLiteral}. For keyword matching (force word break before and after the matched string), use L{Keyword} or L{CaselessKeyword}. """ def __init__( self, matchString ): super(Literal,self).__init__() self.match = matchString self.matchLen = len(matchString) try: self.firstMatchChar = matchString[0] except IndexError: warnings.warn("null string passed to Literal; use Empty() instead", SyntaxWarning, stacklevel=2) self.__class__ = Empty self.name = '"%s"' % _ustr(self.match) self.errmsg = "Expected " + self.name self.mayReturnEmpty = False self.mayIndexError = False # Performance tuning: this routine gets called a *lot* # if this is a single character match string and the first character matches, # short-circuit as quickly as possible, and avoid calling startswith #~ @profile def parseImpl( self, instring, loc, doActions=True ): if (instring[loc] == self.firstMatchChar and (self.matchLen==1 or instring.startswith(self.match,loc)) ): return loc+self.matchLen, self.match raise ParseException(instring, loc, self.errmsg, self) _L = Literal ParserElement._literalStringClass = Literal class Keyword(Token): """ Token to exactly match a specified string as a keyword, that is, it must be immediately followed by a non-keyword character. Compare with C{L{Literal}}: - C{Literal("if")} will match the leading C{'if'} in C{'ifAndOnlyIf'}. - C{Keyword("if")} will not; it will only match the leading C{'if'} in C{'if x=1'}, or C{'if(y==2)'} Accepts two optional constructor arguments in addition to the keyword string: - C{identChars} is a string of characters that would be valid identifier characters, defaulting to all alphanumerics + "_" and "$" - C{caseless} allows case-insensitive matching, default is C{False}. Example:: Keyword("start").parseString("start") # -> ['start'] Keyword("start").parseString("starting") # -> Exception For case-insensitive matching, use L{CaselessKeyword}. """ DEFAULT_KEYWORD_CHARS = alphanums+"_$" def __init__( self, matchString, identChars=None, caseless=False ): super(Keyword,self).__init__() if identChars is None: identChars = Keyword.DEFAULT_KEYWORD_CHARS self.match = matchString self.matchLen = len(matchString) try: self.firstMatchChar = matchString[0] except IndexError: warnings.warn("null string passed to Keyword; use Empty() instead", SyntaxWarning, stacklevel=2) self.name = '"%s"' % self.match self.errmsg = "Expected " + self.name self.mayReturnEmpty = False self.mayIndexError = False self.caseless = caseless if caseless: self.caselessmatch = matchString.upper() identChars = identChars.upper() self.identChars = set(identChars) def parseImpl( self, instring, loc, doActions=True ): if self.caseless: if ( (instring[ loc:loc+self.matchLen ].upper() == self.caselessmatch) and (loc >= len(instring)-self.matchLen or instring[loc+self.matchLen].upper() not in self.identChars) and (loc == 0 or instring[loc-1].upper() not in self.identChars) ): return loc+self.matchLen, self.match else: if (instring[loc] == self.firstMatchChar and (self.matchLen==1 or instring.startswith(self.match,loc)) and (loc >= len(instring)-self.matchLen or instring[loc+self.matchLen] not in self.identChars) and (loc == 0 or instring[loc-1] not in self.identChars) ): return loc+self.matchLen, self.match raise ParseException(instring, loc, self.errmsg, self) def copy(self): c = super(Keyword,self).copy() c.identChars = Keyword.DEFAULT_KEYWORD_CHARS return c @staticmethod def setDefaultKeywordChars( chars ): """Overrides the default Keyword chars """ Keyword.DEFAULT_KEYWORD_CHARS = chars class CaselessLiteral(Literal): """ Token to match a specified string, ignoring case of letters. Note: the matched results will always be in the case of the given match string, NOT the case of the input text. Example:: OneOrMore(CaselessLiteral("CMD")).parseString("cmd CMD Cmd10") # -> ['CMD', 'CMD', 'CMD'] (Contrast with example for L{CaselessKeyword}.) """ def __init__( self, matchString ): super(CaselessLiteral,self).__init__( matchString.upper() ) # Preserve the defining literal. self.returnString = matchString self.name = "'%s'" % self.returnString self.errmsg = "Expected " + self.name def parseImpl( self, instring, loc, doActions=True ): if instring[ loc:loc+self.matchLen ].upper() == self.match: return loc+self.matchLen, self.returnString raise ParseException(instring, loc, self.errmsg, self) class CaselessKeyword(Keyword): """ Caseless version of L{Keyword}. Example:: OneOrMore(CaselessKeyword("CMD")).parseString("cmd CMD Cmd10") # -> ['CMD', 'CMD'] (Contrast with example for L{CaselessLiteral}.) """ def __init__( self, matchString, identChars=None ): super(CaselessKeyword,self).__init__( matchString, identChars, caseless=True ) def parseImpl( self, instring, loc, doActions=True ): if ( (instring[ loc:loc+self.matchLen ].upper() == self.caselessmatch) and (loc >= len(instring)-self.matchLen or instring[loc+self.matchLen].upper() not in self.identChars) ): return loc+self.matchLen, self.match raise ParseException(instring, loc, self.errmsg, self) class CloseMatch(Token): """ A variation on L{Literal} which matches "close" matches, that is, strings with at most 'n' mismatching characters. C{CloseMatch} takes parameters: - C{match_string} - string to be matched - C{maxMismatches} - (C{default=1}) maximum number of mismatches allowed to count as a match The results from a successful parse will contain the matched text from the input string and the following named results: - C{mismatches} - a list of the positions within the match_string where mismatches were found - C{original} - the original match_string used to compare against the input string If C{mismatches} is an empty list, then the match was an exact match. Example:: patt = CloseMatch("ATCATCGAATGGA") patt.parseString("ATCATCGAAXGGA") # -> (['ATCATCGAAXGGA'], {'mismatches': [[9]], 'original': ['ATCATCGAATGGA']}) patt.parseString("ATCAXCGAAXGGA") # -> Exception: Expected 'ATCATCGAATGGA' (with up to 1 mismatches) (at char 0), (line:1, col:1) # exact match patt.parseString("ATCATCGAATGGA") # -> (['ATCATCGAATGGA'], {'mismatches': [[]], 'original': ['ATCATCGAATGGA']}) # close match allowing up to 2 mismatches patt = CloseMatch("ATCATCGAATGGA", maxMismatches=2) patt.parseString("ATCAXCGAAXGGA") # -> (['ATCAXCGAAXGGA'], {'mismatches': [[4, 9]], 'original': ['ATCATCGAATGGA']}) """ def __init__(self, match_string, maxMismatches=1): super(CloseMatch,self).__init__() self.name = match_string self.match_string = match_string self.maxMismatches = maxMismatches self.errmsg = "Expected %r (with up to %d mismatches)" % (self.match_string, self.maxMismatches) self.mayIndexError = False self.mayReturnEmpty = False def parseImpl( self, instring, loc, doActions=True ): start = loc instrlen = len(instring) maxloc = start + len(self.match_string) if maxloc <= instrlen: match_string = self.match_string match_stringloc = 0 mismatches = [] maxMismatches = self.maxMismatches for match_stringloc,s_m in enumerate(zip(instring[loc:maxloc], self.match_string)): src,mat = s_m if src != mat: mismatches.append(match_stringloc) if len(mismatches) > maxMismatches: break else: loc = match_stringloc + 1 results = ParseResults([instring[start:loc]]) results['original'] = self.match_string results['mismatches'] = mismatches return loc, results raise ParseException(instring, loc, self.errmsg, self) class Word(Token): """ Token for matching words composed of allowed character sets. Defined with string containing all allowed initial characters, an optional string containing allowed body characters (if omitted, defaults to the initial character set), and an optional minimum, maximum, and/or exact length. The default value for C{min} is 1 (a minimum value < 1 is not valid); the default values for C{max} and C{exact} are 0, meaning no maximum or exact length restriction. An optional C{excludeChars} parameter can list characters that might be found in the input C{bodyChars} string; useful to define a word of all printables except for one or two characters, for instance. L{srange} is useful for defining custom character set strings for defining C{Word} expressions, using range notation from regular expression character sets. A common mistake is to use C{Word} to match a specific literal string, as in C{Word("Address")}. Remember that C{Word} uses the string argument to define I{sets} of matchable characters. This expression would match "Add", "AAA", "dAred", or any other word made up of the characters 'A', 'd', 'r', 'e', and 's'. To match an exact literal string, use L{Literal} or L{Keyword}. pyparsing includes helper strings for building Words: - L{alphas} - L{nums} - L{alphanums} - L{hexnums} - L{alphas8bit} (alphabetic characters in ASCII range 128-255 - accented, tilded, umlauted, etc.) - L{punc8bit} (non-alphabetic characters in ASCII range 128-255 - currency, symbols, superscripts, diacriticals, etc.) - L{printables} (any non-whitespace character) Example:: # a word composed of digits integer = Word(nums) # equivalent to Word("0123456789") or Word(srange("0-9")) # a word with a leading capital, and zero or more lowercase capital_word = Word(alphas.upper(), alphas.lower()) # hostnames are alphanumeric, with leading alpha, and '-' hostname = Word(alphas, alphanums+'-') # roman numeral (not a strict parser, accepts invalid mix of characters) roman = Word("IVXLCDM") # any string of non-whitespace characters, except for ',' csv_value = Word(printables, excludeChars=",") """ def __init__( self, initChars, bodyChars=None, min=1, max=0, exact=0, asKeyword=False, excludeChars=None ): super(Word,self).__init__() if excludeChars: initChars = ''.join(c for c in initChars if c not in excludeChars) if bodyChars: bodyChars = ''.join(c for c in bodyChars if c not in excludeChars) self.initCharsOrig = initChars self.initChars = set(initChars) if bodyChars : self.bodyCharsOrig = bodyChars self.bodyChars = set(bodyChars) else: self.bodyCharsOrig = initChars self.bodyChars = set(initChars) self.maxSpecified = max > 0 if min < 1: raise ValueError("cannot specify a minimum length < 1; use Optional(Word()) if zero-length word is permitted") self.minLen = min if max > 0: self.maxLen = max else: self.maxLen = _MAX_INT if exact > 0: self.maxLen = exact self.minLen = exact self.name = _ustr(self) self.errmsg = "Expected " + self.name self.mayIndexError = False self.asKeyword = asKeyword if ' ' not in self.initCharsOrig+self.bodyCharsOrig and (min==1 and max==0 and exact==0): if self.bodyCharsOrig == self.initCharsOrig: self.reString = "[%s]+" % _escapeRegexRangeChars(self.initCharsOrig) elif len(self.initCharsOrig) == 1: self.reString = "%s[%s]*" % \ (re.escape(self.initCharsOrig), _escapeRegexRangeChars(self.bodyCharsOrig),) else: self.reString = "[%s][%s]*" % \ (_escapeRegexRangeChars(self.initCharsOrig), _escapeRegexRangeChars(self.bodyCharsOrig),) if self.asKeyword: self.reString = r"\b"+self.reString+r"\b" try: self.re = re.compile( self.reString ) except Exception: self.re = None def parseImpl( self, instring, loc, doActions=True ): if self.re: result = self.re.match(instring,loc) if not result: raise ParseException(instring, loc, self.errmsg, self) loc = result.end() return loc, result.group() if not(instring[ loc ] in self.initChars): raise ParseException(instring, loc, self.errmsg, self) start = loc loc += 1 instrlen = len(instring) bodychars = self.bodyChars maxloc = start + self.maxLen maxloc = min( maxloc, instrlen ) while loc < maxloc and instring[loc] in bodychars: loc += 1 throwException = False if loc - start < self.minLen: throwException = True if self.maxSpecified and loc < instrlen and instring[loc] in bodychars: throwException = True if self.asKeyword: if (start>0 and instring[start-1] in bodychars) or (loc4: return s[:4]+"..." else: return s if ( self.initCharsOrig != self.bodyCharsOrig ): self.strRepr = "W:(%s,%s)" % ( charsAsStr(self.initCharsOrig), charsAsStr(self.bodyCharsOrig) ) else: self.strRepr = "W:(%s)" % charsAsStr(self.initCharsOrig) return self.strRepr class Regex(Token): r""" Token for matching strings that match a given regular expression. Defined with string specifying the regular expression in a form recognized by the inbuilt Python re module. If the given regex contains named groups (defined using C{(?P...)}), these will be preserved as named parse results. Example:: realnum = Regex(r"[+-]?\d+\.\d*") date = Regex(r'(?P\d{4})-(?P\d\d?)-(?P\d\d?)') # ref: http://stackoverflow.com/questions/267399/how-do-you-match-only-valid-roman-numerals-with-a-regular-expression roman = Regex(r"M{0,4}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})") """ compiledREtype = type(re.compile("[A-Z]")) def __init__( self, pattern, flags=0): """The parameters C{pattern} and C{flags} are passed to the C{re.compile()} function as-is. See the Python C{re} module for an explanation of the acceptable patterns and flags.""" super(Regex,self).__init__() if isinstance(pattern, basestring): if not pattern: warnings.warn("null string passed to Regex; use Empty() instead", SyntaxWarning, stacklevel=2) self.pattern = pattern self.flags = flags try: self.re = re.compile(self.pattern, self.flags) self.reString = self.pattern except sre_constants.error: warnings.warn("invalid pattern (%s) passed to Regex" % pattern, SyntaxWarning, stacklevel=2) raise elif isinstance(pattern, Regex.compiledREtype): self.re = pattern self.pattern = \ self.reString = str(pattern) self.flags = flags else: raise ValueError("Regex may only be constructed with a string or a compiled RE object") self.name = _ustr(self) self.errmsg = "Expected " + self.name self.mayIndexError = False self.mayReturnEmpty = True def parseImpl( self, instring, loc, doActions=True ): result = self.re.match(instring,loc) if not result: raise ParseException(instring, loc, self.errmsg, self) loc = result.end() d = result.groupdict() ret = ParseResults(result.group()) if d: for k in d: ret[k] = d[k] return loc,ret def __str__( self ): try: return super(Regex,self).__str__() except Exception: pass if self.strRepr is None: self.strRepr = "Re:(%s)" % repr(self.pattern) return self.strRepr class QuotedString(Token): r""" Token for matching strings that are delimited by quoting characters. Defined with the following parameters: - quoteChar - string of one or more characters defining the quote delimiting string - escChar - character to escape quotes, typically backslash (default=C{None}) - escQuote - special quote sequence to escape an embedded quote string (such as SQL's "" to escape an embedded ") (default=C{None}) - multiline - boolean indicating whether quotes can span multiple lines (default=C{False}) - unquoteResults - boolean indicating whether the matched text should be unquoted (default=C{True}) - endQuoteChar - string of one or more characters defining the end of the quote delimited string (default=C{None} => same as quoteChar) - convertWhitespaceEscapes - convert escaped whitespace (C{'\t'}, C{'\n'}, etc.) to actual whitespace (default=C{True}) Example:: qs = QuotedString('"') print(qs.searchString('lsjdf "This is the quote" sldjf')) complex_qs = QuotedString('{{', endQuoteChar='}}') print(complex_qs.searchString('lsjdf {{This is the "quote"}} sldjf')) sql_qs = QuotedString('"', escQuote='""') print(sql_qs.searchString('lsjdf "This is the quote with ""embedded"" quotes" sldjf')) prints:: [['This is the quote']] [['This is the "quote"']] [['This is the quote with "embedded" quotes']] """ def __init__( self, quoteChar, escChar=None, escQuote=None, multiline=False, unquoteResults=True, endQuoteChar=None, convertWhitespaceEscapes=True): super(QuotedString,self).__init__() # remove white space from quote chars - wont work anyway quoteChar = quoteChar.strip() if not quoteChar: warnings.warn("quoteChar cannot be the empty string",SyntaxWarning,stacklevel=2) raise SyntaxError() if endQuoteChar is None: endQuoteChar = quoteChar else: endQuoteChar = endQuoteChar.strip() if not endQuoteChar: warnings.warn("endQuoteChar cannot be the empty string",SyntaxWarning,stacklevel=2) raise SyntaxError() self.quoteChar = quoteChar self.quoteCharLen = len(quoteChar) self.firstQuoteChar = quoteChar[0] self.endQuoteChar = endQuoteChar self.endQuoteCharLen = len(endQuoteChar) self.escChar = escChar self.escQuote = escQuote self.unquoteResults = unquoteResults self.convertWhitespaceEscapes = convertWhitespaceEscapes if multiline: self.flags = re.MULTILINE | re.DOTALL self.pattern = r'%s(?:[^%s%s]' % \ ( re.escape(self.quoteChar), _escapeRegexRangeChars(self.endQuoteChar[0]), (escChar is not None and _escapeRegexRangeChars(escChar) or '') ) else: self.flags = 0 self.pattern = r'%s(?:[^%s\n\r%s]' % \ ( re.escape(self.quoteChar), _escapeRegexRangeChars(self.endQuoteChar[0]), (escChar is not None and _escapeRegexRangeChars(escChar) or '') ) if len(self.endQuoteChar) > 1: self.pattern += ( '|(?:' + ')|(?:'.join("%s[^%s]" % (re.escape(self.endQuoteChar[:i]), _escapeRegexRangeChars(self.endQuoteChar[i])) for i in range(len(self.endQuoteChar)-1,0,-1)) + ')' ) if escQuote: self.pattern += (r'|(?:%s)' % re.escape(escQuote)) if escChar: self.pattern += (r'|(?:%s.)' % re.escape(escChar)) self.escCharReplacePattern = re.escape(self.escChar)+"(.)" self.pattern += (r')*%s' % re.escape(self.endQuoteChar)) try: self.re = re.compile(self.pattern, self.flags) self.reString = self.pattern except sre_constants.error: warnings.warn("invalid pattern (%s) passed to Regex" % self.pattern, SyntaxWarning, stacklevel=2) raise self.name = _ustr(self) self.errmsg = "Expected " + self.name self.mayIndexError = False self.mayReturnEmpty = True def parseImpl( self, instring, loc, doActions=True ): result = instring[loc] == self.firstQuoteChar and self.re.match(instring,loc) or None if not result: raise ParseException(instring, loc, self.errmsg, self) loc = result.end() ret = result.group() if self.unquoteResults: # strip off quotes ret = ret[self.quoteCharLen:-self.endQuoteCharLen] if isinstance(ret,basestring): # replace escaped whitespace if '\\' in ret and self.convertWhitespaceEscapes: ws_map = { r'\t' : '\t', r'\n' : '\n', r'\f' : '\f', r'\r' : '\r', } for wslit,wschar in ws_map.items(): ret = ret.replace(wslit, wschar) # replace escaped characters if self.escChar: ret = re.sub(self.escCharReplacePattern, r"\g<1>", ret) # replace escaped quotes if self.escQuote: ret = ret.replace(self.escQuote, self.endQuoteChar) return loc, ret def __str__( self ): try: return super(QuotedString,self).__str__() except Exception: pass if self.strRepr is None: self.strRepr = "quoted string, starting with %s ending with %s" % (self.quoteChar, self.endQuoteChar) return self.strRepr class CharsNotIn(Token): """ Token for matching words composed of characters I{not} in a given set (will include whitespace in matched characters if not listed in the provided exclusion set - see example). Defined with string containing all disallowed characters, and an optional minimum, maximum, and/or exact length. The default value for C{min} is 1 (a minimum value < 1 is not valid); the default values for C{max} and C{exact} are 0, meaning no maximum or exact length restriction. Example:: # define a comma-separated-value as anything that is not a ',' csv_value = CharsNotIn(',') print(delimitedList(csv_value).parseString("dkls,lsdkjf,s12 34,@!#,213")) prints:: ['dkls', 'lsdkjf', 's12 34', '@!#', '213'] """ def __init__( self, notChars, min=1, max=0, exact=0 ): super(CharsNotIn,self).__init__() self.skipWhitespace = False self.notChars = notChars if min < 1: raise ValueError("cannot specify a minimum length < 1; use Optional(CharsNotIn()) if zero-length char group is permitted") self.minLen = min if max > 0: self.maxLen = max else: self.maxLen = _MAX_INT if exact > 0: self.maxLen = exact self.minLen = exact self.name = _ustr(self) self.errmsg = "Expected " + self.name self.mayReturnEmpty = ( self.minLen == 0 ) self.mayIndexError = False def parseImpl( self, instring, loc, doActions=True ): if instring[loc] in self.notChars: raise ParseException(instring, loc, self.errmsg, self) start = loc loc += 1 notchars = self.notChars maxlen = min( start+self.maxLen, len(instring) ) while loc < maxlen and \ (instring[loc] not in notchars): loc += 1 if loc - start < self.minLen: raise ParseException(instring, loc, self.errmsg, self) return loc, instring[start:loc] def __str__( self ): try: return super(CharsNotIn, self).__str__() except Exception: pass if self.strRepr is None: if len(self.notChars) > 4: self.strRepr = "!W:(%s...)" % self.notChars[:4] else: self.strRepr = "!W:(%s)" % self.notChars return self.strRepr class White(Token): """ Special matching class for matching whitespace. Normally, whitespace is ignored by pyparsing grammars. This class is included when some whitespace structures are significant. Define with a string containing the whitespace characters to be matched; default is C{" \\t\\r\\n"}. Also takes optional C{min}, C{max}, and C{exact} arguments, as defined for the C{L{Word}} class. """ whiteStrs = { " " : "", "\t": "", "\n": "", "\r": "", "\f": "", } def __init__(self, ws=" \t\r\n", min=1, max=0, exact=0): super(White,self).__init__() self.matchWhite = ws self.setWhitespaceChars( "".join(c for c in self.whiteChars if c not in self.matchWhite) ) #~ self.leaveWhitespace() self.name = ("".join(White.whiteStrs[c] for c in self.matchWhite)) self.mayReturnEmpty = True self.errmsg = "Expected " + self.name self.minLen = min if max > 0: self.maxLen = max else: self.maxLen = _MAX_INT if exact > 0: self.maxLen = exact self.minLen = exact def parseImpl( self, instring, loc, doActions=True ): if not(instring[ loc ] in self.matchWhite): raise ParseException(instring, loc, self.errmsg, self) start = loc loc += 1 maxloc = start + self.maxLen maxloc = min( maxloc, len(instring) ) while loc < maxloc and instring[loc] in self.matchWhite: loc += 1 if loc - start < self.minLen: raise ParseException(instring, loc, self.errmsg, self) return loc, instring[start:loc] class _PositionToken(Token): def __init__( self ): super(_PositionToken,self).__init__() self.name=self.__class__.__name__ self.mayReturnEmpty = True self.mayIndexError = False class GoToColumn(_PositionToken): """ Token to advance to a specific column of input text; useful for tabular report scraping. """ def __init__( self, colno ): super(GoToColumn,self).__init__() self.col = colno def preParse( self, instring, loc ): if col(loc,instring) != self.col: instrlen = len(instring) if self.ignoreExprs: loc = self._skipIgnorables( instring, loc ) while loc < instrlen and instring[loc].isspace() and col( loc, instring ) != self.col : loc += 1 return loc def parseImpl( self, instring, loc, doActions=True ): thiscol = col( loc, instring ) if thiscol > self.col: raise ParseException( instring, loc, "Text not in expected column", self ) newloc = loc + self.col - thiscol ret = instring[ loc: newloc ] return newloc, ret class LineStart(_PositionToken): """ Matches if current position is at the beginning of a line within the parse string Example:: test = '''\ AAA this line AAA and this line AAA but not this one B AAA and definitely not this one ''' for t in (LineStart() + 'AAA' + restOfLine).searchString(test): print(t) Prints:: ['AAA', ' this line'] ['AAA', ' and this line'] """ def __init__( self ): super(LineStart,self).__init__() self.errmsg = "Expected start of line" def parseImpl( self, instring, loc, doActions=True ): if col(loc, instring) == 1: return loc, [] raise ParseException(instring, loc, self.errmsg, self) class LineEnd(_PositionToken): """ Matches if current position is at the end of a line within the parse string """ def __init__( self ): super(LineEnd,self).__init__() self.setWhitespaceChars( ParserElement.DEFAULT_WHITE_CHARS.replace("\n","") ) self.errmsg = "Expected end of line" def parseImpl( self, instring, loc, doActions=True ): if loc len(instring): return loc, [] else: raise ParseException(instring, loc, self.errmsg, self) class WordStart(_PositionToken): """ Matches if the current position is at the beginning of a Word, and is not preceded by any character in a given set of C{wordChars} (default=C{printables}). To emulate the C{\b} behavior of regular expressions, use C{WordStart(alphanums)}. C{WordStart} will also match at the beginning of the string being parsed, or at the beginning of a line. """ def __init__(self, wordChars = printables): super(WordStart,self).__init__() self.wordChars = set(wordChars) self.errmsg = "Not at the start of a word" def parseImpl(self, instring, loc, doActions=True ): if loc != 0: if (instring[loc-1] in self.wordChars or instring[loc] not in self.wordChars): raise ParseException(instring, loc, self.errmsg, self) return loc, [] class WordEnd(_PositionToken): """ Matches if the current position is at the end of a Word, and is not followed by any character in a given set of C{wordChars} (default=C{printables}). To emulate the C{\b} behavior of regular expressions, use C{WordEnd(alphanums)}. C{WordEnd} will also match at the end of the string being parsed, or at the end of a line. """ def __init__(self, wordChars = printables): super(WordEnd,self).__init__() self.wordChars = set(wordChars) self.skipWhitespace = False self.errmsg = "Not at the end of a word" def parseImpl(self, instring, loc, doActions=True ): instrlen = len(instring) if instrlen>0 and loc maxExcLoc: maxException = err maxExcLoc = err.loc except IndexError: if len(instring) > maxExcLoc: maxException = ParseException(instring,len(instring),e.errmsg,self) maxExcLoc = len(instring) else: # save match among all matches, to retry longest to shortest matches.append((loc2, e)) if matches: matches.sort(key=lambda x: -x[0]) for _,e in matches: try: return e._parse( instring, loc, doActions ) except ParseException as err: err.__traceback__ = None if err.loc > maxExcLoc: maxException = err maxExcLoc = err.loc if maxException is not None: maxException.msg = self.errmsg raise maxException else: raise ParseException(instring, loc, "no defined alternatives to match", self) def __ixor__(self, other ): if isinstance( other, basestring ): other = ParserElement._literalStringClass( other ) return self.append( other ) #Or( [ self, other ] ) def __str__( self ): if hasattr(self,"name"): return self.name if self.strRepr is None: self.strRepr = "{" + " ^ ".join(_ustr(e) for e in self.exprs) + "}" return self.strRepr def checkRecursion( self, parseElementList ): subRecCheckList = parseElementList[:] + [ self ] for e in self.exprs: e.checkRecursion( subRecCheckList ) class MatchFirst(ParseExpression): """ Requires that at least one C{ParseExpression} is found. If two expressions match, the first one listed is the one that will match. May be constructed using the C{'|'} operator. Example:: # construct MatchFirst using '|' operator # watch the order of expressions to match number = Word(nums) | Combine(Word(nums) + '.' + Word(nums)) print(number.searchString("123 3.1416 789")) # Fail! -> [['123'], ['3'], ['1416'], ['789']] # put more selective expression first number = Combine(Word(nums) + '.' + Word(nums)) | Word(nums) print(number.searchString("123 3.1416 789")) # Better -> [['123'], ['3.1416'], ['789']] """ def __init__( self, exprs, savelist = False ): super(MatchFirst,self).__init__(exprs, savelist) if self.exprs: self.mayReturnEmpty = any(e.mayReturnEmpty for e in self.exprs) else: self.mayReturnEmpty = True def parseImpl( self, instring, loc, doActions=True ): maxExcLoc = -1 maxException = None for e in self.exprs: try: ret = e._parse( instring, loc, doActions ) return ret except ParseException as err: if err.loc > maxExcLoc: maxException = err maxExcLoc = err.loc except IndexError: if len(instring) > maxExcLoc: maxException = ParseException(instring,len(instring),e.errmsg,self) maxExcLoc = len(instring) # only got here if no expression matched, raise exception for match that made it the furthest else: if maxException is not None: maxException.msg = self.errmsg raise maxException else: raise ParseException(instring, loc, "no defined alternatives to match", self) def __ior__(self, other ): if isinstance( other, basestring ): other = ParserElement._literalStringClass( other ) return self.append( other ) #MatchFirst( [ self, other ] ) def __str__( self ): if hasattr(self,"name"): return self.name if self.strRepr is None: self.strRepr = "{" + " | ".join(_ustr(e) for e in self.exprs) + "}" return self.strRepr def checkRecursion( self, parseElementList ): subRecCheckList = parseElementList[:] + [ self ] for e in self.exprs: e.checkRecursion( subRecCheckList ) class Each(ParseExpression): """ Requires all given C{ParseExpression}s to be found, but in any order. Expressions may be separated by whitespace. May be constructed using the C{'&'} operator. Example:: color = oneOf("RED ORANGE YELLOW GREEN BLUE PURPLE BLACK WHITE BROWN") shape_type = oneOf("SQUARE CIRCLE TRIANGLE STAR HEXAGON OCTAGON") integer = Word(nums) shape_attr = "shape:" + shape_type("shape") posn_attr = "posn:" + Group(integer("x") + ',' + integer("y"))("posn") color_attr = "color:" + color("color") size_attr = "size:" + integer("size") # use Each (using operator '&') to accept attributes in any order # (shape and posn are required, color and size are optional) shape_spec = shape_attr & posn_attr & Optional(color_attr) & Optional(size_attr) shape_spec.runTests(''' shape: SQUARE color: BLACK posn: 100, 120 shape: CIRCLE size: 50 color: BLUE posn: 50,80 color:GREEN size:20 shape:TRIANGLE posn:20,40 ''' ) prints:: shape: SQUARE color: BLACK posn: 100, 120 ['shape:', 'SQUARE', 'color:', 'BLACK', 'posn:', ['100', ',', '120']] - color: BLACK - posn: ['100', ',', '120'] - x: 100 - y: 120 - shape: SQUARE shape: CIRCLE size: 50 color: BLUE posn: 50,80 ['shape:', 'CIRCLE', 'size:', '50', 'color:', 'BLUE', 'posn:', ['50', ',', '80']] - color: BLUE - posn: ['50', ',', '80'] - x: 50 - y: 80 - shape: CIRCLE - size: 50 color: GREEN size: 20 shape: TRIANGLE posn: 20,40 ['color:', 'GREEN', 'size:', '20', 'shape:', 'TRIANGLE', 'posn:', ['20', ',', '40']] - color: GREEN - posn: ['20', ',', '40'] - x: 20 - y: 40 - shape: TRIANGLE - size: 20 """ def __init__( self, exprs, savelist = True ): super(Each,self).__init__(exprs, savelist) self.mayReturnEmpty = all(e.mayReturnEmpty for e in self.exprs) self.skipWhitespace = True self.initExprGroups = True def parseImpl( self, instring, loc, doActions=True ): if self.initExprGroups: self.opt1map = dict((id(e.expr),e) for e in self.exprs if isinstance(e,Optional)) opt1 = [ e.expr for e in self.exprs if isinstance(e,Optional) ] opt2 = [ e for e in self.exprs if e.mayReturnEmpty and not isinstance(e,Optional)] self.optionals = opt1 + opt2 self.multioptionals = [ e.expr for e in self.exprs if isinstance(e,ZeroOrMore) ] self.multirequired = [ e.expr for e in self.exprs if isinstance(e,OneOrMore) ] self.required = [ e for e in self.exprs if not isinstance(e,(Optional,ZeroOrMore,OneOrMore)) ] self.required += self.multirequired self.initExprGroups = False tmpLoc = loc tmpReqd = self.required[:] tmpOpt = self.optionals[:] matchOrder = [] keepMatching = True while keepMatching: tmpExprs = tmpReqd + tmpOpt + self.multioptionals + self.multirequired failed = [] for e in tmpExprs: try: tmpLoc = e.tryParse( instring, tmpLoc ) except ParseException: failed.append(e) else: matchOrder.append(self.opt1map.get(id(e),e)) if e in tmpReqd: tmpReqd.remove(e) elif e in tmpOpt: tmpOpt.remove(e) if len(failed) == len(tmpExprs): keepMatching = False if tmpReqd: missing = ", ".join(_ustr(e) for e in tmpReqd) raise ParseException(instring,loc,"Missing one or more required elements (%s)" % missing ) # add any unmatched Optionals, in case they have default values defined matchOrder += [e for e in self.exprs if isinstance(e,Optional) and e.expr in tmpOpt] resultlist = [] for e in matchOrder: loc,results = e._parse(instring,loc,doActions) resultlist.append(results) finalResults = sum(resultlist, ParseResults([])) return loc, finalResults def __str__( self ): if hasattr(self,"name"): return self.name if self.strRepr is None: self.strRepr = "{" + " & ".join(_ustr(e) for e in self.exprs) + "}" return self.strRepr def checkRecursion( self, parseElementList ): subRecCheckList = parseElementList[:] + [ self ] for e in self.exprs: e.checkRecursion( subRecCheckList ) class ParseElementEnhance(ParserElement): """ Abstract subclass of C{ParserElement}, for combining and post-processing parsed tokens. """ def __init__( self, expr, savelist=False ): super(ParseElementEnhance,self).__init__(savelist) if isinstance( expr, basestring ): if issubclass(ParserElement._literalStringClass, Token): expr = ParserElement._literalStringClass(expr) else: expr = ParserElement._literalStringClass(Literal(expr)) self.expr = expr self.strRepr = None if expr is not None: self.mayIndexError = expr.mayIndexError self.mayReturnEmpty = expr.mayReturnEmpty self.setWhitespaceChars( expr.whiteChars ) self.skipWhitespace = expr.skipWhitespace self.saveAsList = expr.saveAsList self.callPreparse = expr.callPreparse self.ignoreExprs.extend(expr.ignoreExprs) def parseImpl( self, instring, loc, doActions=True ): if self.expr is not None: return self.expr._parse( instring, loc, doActions, callPreParse=False ) else: raise ParseException("",loc,self.errmsg,self) def leaveWhitespace( self ): self.skipWhitespace = False self.expr = self.expr.copy() if self.expr is not None: self.expr.leaveWhitespace() return self def ignore( self, other ): if isinstance( other, Suppress ): if other not in self.ignoreExprs: super( ParseElementEnhance, self).ignore( other ) if self.expr is not None: self.expr.ignore( self.ignoreExprs[-1] ) else: super( ParseElementEnhance, self).ignore( other ) if self.expr is not None: self.expr.ignore( self.ignoreExprs[-1] ) return self def streamline( self ): super(ParseElementEnhance,self).streamline() if self.expr is not None: self.expr.streamline() return self def checkRecursion( self, parseElementList ): if self in parseElementList: raise RecursiveGrammarException( parseElementList+[self] ) subRecCheckList = parseElementList[:] + [ self ] if self.expr is not None: self.expr.checkRecursion( subRecCheckList ) def validate( self, validateTrace=[] ): tmp = validateTrace[:]+[self] if self.expr is not None: self.expr.validate(tmp) self.checkRecursion( [] ) def __str__( self ): try: return super(ParseElementEnhance,self).__str__() except Exception: pass if self.strRepr is None and self.expr is not None: self.strRepr = "%s:(%s)" % ( self.__class__.__name__, _ustr(self.expr) ) return self.strRepr class FollowedBy(ParseElementEnhance): """ Lookahead matching of the given parse expression. C{FollowedBy} does I{not} advance the parsing position within the input string, it only verifies that the specified parse expression matches at the current position. C{FollowedBy} always returns a null token list. Example:: # use FollowedBy to match a label only if it is followed by a ':' data_word = Word(alphas) label = data_word + FollowedBy(':') attr_expr = Group(label + Suppress(':') + OneOrMore(data_word, stopOn=label).setParseAction(' '.join)) OneOrMore(attr_expr).parseString("shape: SQUARE color: BLACK posn: upper left").pprint() prints:: [['shape', 'SQUARE'], ['color', 'BLACK'], ['posn', 'upper left']] """ def __init__( self, expr ): super(FollowedBy,self).__init__(expr) self.mayReturnEmpty = True def parseImpl( self, instring, loc, doActions=True ): self.expr.tryParse( instring, loc ) return loc, [] class NotAny(ParseElementEnhance): """ Lookahead to disallow matching with the given parse expression. C{NotAny} does I{not} advance the parsing position within the input string, it only verifies that the specified parse expression does I{not} match at the current position. Also, C{NotAny} does I{not} skip over leading whitespace. C{NotAny} always returns a null token list. May be constructed using the '~' operator. Example:: """ def __init__( self, expr ): super(NotAny,self).__init__(expr) #~ self.leaveWhitespace() self.skipWhitespace = False # do NOT use self.leaveWhitespace(), don't want to propagate to exprs self.mayReturnEmpty = True self.errmsg = "Found unwanted token, "+_ustr(self.expr) def parseImpl( self, instring, loc, doActions=True ): if self.expr.canParseNext(instring, loc): raise ParseException(instring, loc, self.errmsg, self) return loc, [] def __str__( self ): if hasattr(self,"name"): return self.name if self.strRepr is None: self.strRepr = "~{" + _ustr(self.expr) + "}" return self.strRepr class _MultipleMatch(ParseElementEnhance): def __init__( self, expr, stopOn=None): super(_MultipleMatch, self).__init__(expr) self.saveAsList = True ender = stopOn if isinstance(ender, basestring): ender = ParserElement._literalStringClass(ender) self.not_ender = ~ender if ender is not None else None def parseImpl( self, instring, loc, doActions=True ): self_expr_parse = self.expr._parse self_skip_ignorables = self._skipIgnorables check_ender = self.not_ender is not None if check_ender: try_not_ender = self.not_ender.tryParse # must be at least one (but first see if we are the stopOn sentinel; # if so, fail) if check_ender: try_not_ender(instring, loc) loc, tokens = self_expr_parse( instring, loc, doActions, callPreParse=False ) try: hasIgnoreExprs = (not not self.ignoreExprs) while 1: if check_ender: try_not_ender(instring, loc) if hasIgnoreExprs: preloc = self_skip_ignorables( instring, loc ) else: preloc = loc loc, tmptokens = self_expr_parse( instring, preloc, doActions ) if tmptokens or tmptokens.haskeys(): tokens += tmptokens except (ParseException,IndexError): pass return loc, tokens class OneOrMore(_MultipleMatch): """ Repetition of one or more of the given expression. Parameters: - expr - expression that must match one or more times - stopOn - (default=C{None}) - expression for a terminating sentinel (only required if the sentinel would ordinarily match the repetition expression) Example:: data_word = Word(alphas) label = data_word + FollowedBy(':') attr_expr = Group(label + Suppress(':') + OneOrMore(data_word).setParseAction(' '.join)) text = "shape: SQUARE posn: upper left color: BLACK" OneOrMore(attr_expr).parseString(text).pprint() # Fail! read 'color' as data instead of next label -> [['shape', 'SQUARE color']] # use stopOn attribute for OneOrMore to avoid reading label string as part of the data attr_expr = Group(label + Suppress(':') + OneOrMore(data_word, stopOn=label).setParseAction(' '.join)) OneOrMore(attr_expr).parseString(text).pprint() # Better -> [['shape', 'SQUARE'], ['posn', 'upper left'], ['color', 'BLACK']] # could also be written as (attr_expr * (1,)).parseString(text).pprint() """ def __str__( self ): if hasattr(self,"name"): return self.name if self.strRepr is None: self.strRepr = "{" + _ustr(self.expr) + "}..." return self.strRepr class ZeroOrMore(_MultipleMatch): """ Optional repetition of zero or more of the given expression. Parameters: - expr - expression that must match zero or more times - stopOn - (default=C{None}) - expression for a terminating sentinel (only required if the sentinel would ordinarily match the repetition expression) Example: similar to L{OneOrMore} """ def __init__( self, expr, stopOn=None): super(ZeroOrMore,self).__init__(expr, stopOn=stopOn) self.mayReturnEmpty = True def parseImpl( self, instring, loc, doActions=True ): try: return super(ZeroOrMore, self).parseImpl(instring, loc, doActions) except (ParseException,IndexError): return loc, [] def __str__( self ): if hasattr(self,"name"): return self.name if self.strRepr is None: self.strRepr = "[" + _ustr(self.expr) + "]..." return self.strRepr class _NullToken(object): def __bool__(self): return False __nonzero__ = __bool__ def __str__(self): return "" _optionalNotMatched = _NullToken() class Optional(ParseElementEnhance): """ Optional matching of the given expression. Parameters: - expr - expression that must match zero or more times - default (optional) - value to be returned if the optional expression is not found. Example:: # US postal code can be a 5-digit zip, plus optional 4-digit qualifier zip = Combine(Word(nums, exact=5) + Optional('-' + Word(nums, exact=4))) zip.runTests(''' # traditional ZIP code 12345 # ZIP+4 form 12101-0001 # invalid ZIP 98765- ''') prints:: # traditional ZIP code 12345 ['12345'] # ZIP+4 form 12101-0001 ['12101-0001'] # invalid ZIP 98765- ^ FAIL: Expected end of text (at char 5), (line:1, col:6) """ def __init__( self, expr, default=_optionalNotMatched ): super(Optional,self).__init__( expr, savelist=False ) self.saveAsList = self.expr.saveAsList self.defaultValue = default self.mayReturnEmpty = True def parseImpl( self, instring, loc, doActions=True ): try: loc, tokens = self.expr._parse( instring, loc, doActions, callPreParse=False ) except (ParseException,IndexError): if self.defaultValue is not _optionalNotMatched: if self.expr.resultsName: tokens = ParseResults([ self.defaultValue ]) tokens[self.expr.resultsName] = self.defaultValue else: tokens = [ self.defaultValue ] else: tokens = [] return loc, tokens def __str__( self ): if hasattr(self,"name"): return self.name if self.strRepr is None: self.strRepr = "[" + _ustr(self.expr) + "]" return self.strRepr class SkipTo(ParseElementEnhance): """ Token for skipping over all undefined text until the matched expression is found. Parameters: - expr - target expression marking the end of the data to be skipped - include - (default=C{False}) if True, the target expression is also parsed (the skipped text and target expression are returned as a 2-element list). - ignore - (default=C{None}) used to define grammars (typically quoted strings and comments) that might contain false matches to the target expression - failOn - (default=C{None}) define expressions that are not allowed to be included in the skipped test; if found before the target expression is found, the SkipTo is not a match Example:: report = ''' Outstanding Issues Report - 1 Jan 2000 # | Severity | Description | Days Open -----+----------+-------------------------------------------+----------- 101 | Critical | Intermittent system crash | 6 94 | Cosmetic | Spelling error on Login ('log|n') | 14 79 | Minor | System slow when running too many reports | 47 ''' integer = Word(nums) SEP = Suppress('|') # use SkipTo to simply match everything up until the next SEP # - ignore quoted strings, so that a '|' character inside a quoted string does not match # - parse action will call token.strip() for each matched token, i.e., the description body string_data = SkipTo(SEP, ignore=quotedString) string_data.setParseAction(tokenMap(str.strip)) ticket_expr = (integer("issue_num") + SEP + string_data("sev") + SEP + string_data("desc") + SEP + integer("days_open")) for tkt in ticket_expr.searchString(report): print tkt.dump() prints:: ['101', 'Critical', 'Intermittent system crash', '6'] - days_open: 6 - desc: Intermittent system crash - issue_num: 101 - sev: Critical ['94', 'Cosmetic', "Spelling error on Login ('log|n')", '14'] - days_open: 14 - desc: Spelling error on Login ('log|n') - issue_num: 94 - sev: Cosmetic ['79', 'Minor', 'System slow when running too many reports', '47'] - days_open: 47 - desc: System slow when running too many reports - issue_num: 79 - sev: Minor """ def __init__( self, other, include=False, ignore=None, failOn=None ): super( SkipTo, self ).__init__( other ) self.ignoreExpr = ignore self.mayReturnEmpty = True self.mayIndexError = False self.includeMatch = include self.asList = False if isinstance(failOn, basestring): self.failOn = ParserElement._literalStringClass(failOn) else: self.failOn = failOn self.errmsg = "No match found for "+_ustr(self.expr) def parseImpl( self, instring, loc, doActions=True ): startloc = loc instrlen = len(instring) expr = self.expr expr_parse = self.expr._parse self_failOn_canParseNext = self.failOn.canParseNext if self.failOn is not None else None self_ignoreExpr_tryParse = self.ignoreExpr.tryParse if self.ignoreExpr is not None else None tmploc = loc while tmploc <= instrlen: if self_failOn_canParseNext is not None: # break if failOn expression matches if self_failOn_canParseNext(instring, tmploc): break if self_ignoreExpr_tryParse is not None: # advance past ignore expressions while 1: try: tmploc = self_ignoreExpr_tryParse(instring, tmploc) except ParseBaseException: break try: expr_parse(instring, tmploc, doActions=False, callPreParse=False) except (ParseException, IndexError): # no match, advance loc in string tmploc += 1 else: # matched skipto expr, done break else: # ran off the end of the input string without matching skipto expr, fail raise ParseException(instring, loc, self.errmsg, self) # build up return values loc = tmploc skiptext = instring[startloc:loc] skipresult = ParseResults(skiptext) if self.includeMatch: loc, mat = expr_parse(instring,loc,doActions,callPreParse=False) skipresult += mat return loc, skipresult class Forward(ParseElementEnhance): """ Forward declaration of an expression to be defined later - used for recursive grammars, such as algebraic infix notation. When the expression is known, it is assigned to the C{Forward} variable using the '<<' operator. Note: take care when assigning to C{Forward} not to overlook precedence of operators. Specifically, '|' has a lower precedence than '<<', so that:: fwdExpr << a | b | c will actually be evaluated as:: (fwdExpr << a) | b | c thereby leaving b and c out as parseable alternatives. It is recommended that you explicitly group the values inserted into the C{Forward}:: fwdExpr << (a | b | c) Converting to use the '<<=' operator instead will avoid this problem. See L{ParseResults.pprint} for an example of a recursive parser created using C{Forward}. """ def __init__( self, other=None ): super(Forward,self).__init__( other, savelist=False ) def __lshift__( self, other ): if isinstance( other, basestring ): other = ParserElement._literalStringClass(other) self.expr = other self.strRepr = None self.mayIndexError = self.expr.mayIndexError self.mayReturnEmpty = self.expr.mayReturnEmpty self.setWhitespaceChars( self.expr.whiteChars ) self.skipWhitespace = self.expr.skipWhitespace self.saveAsList = self.expr.saveAsList self.ignoreExprs.extend(self.expr.ignoreExprs) return self def __ilshift__(self, other): return self << other def leaveWhitespace( self ): self.skipWhitespace = False return self def streamline( self ): if not self.streamlined: self.streamlined = True if self.expr is not None: self.expr.streamline() return self def validate( self, validateTrace=[] ): if self not in validateTrace: tmp = validateTrace[:]+[self] if self.expr is not None: self.expr.validate(tmp) self.checkRecursion([]) def __str__( self ): if hasattr(self,"name"): return self.name return self.__class__.__name__ + ": ..." # stubbed out for now - creates awful memory and perf issues self._revertClass = self.__class__ self.__class__ = _ForwardNoRecurse try: if self.expr is not None: retString = _ustr(self.expr) else: retString = "None" finally: self.__class__ = self._revertClass return self.__class__.__name__ + ": " + retString def copy(self): if self.expr is not None: return super(Forward,self).copy() else: ret = Forward() ret <<= self return ret class _ForwardNoRecurse(Forward): def __str__( self ): return "..." class TokenConverter(ParseElementEnhance): """ Abstract subclass of C{ParseExpression}, for converting parsed results. """ def __init__( self, expr, savelist=False ): super(TokenConverter,self).__init__( expr )#, savelist ) self.saveAsList = False class Combine(TokenConverter): """ Converter to concatenate all matching tokens to a single string. By default, the matching patterns must also be contiguous in the input string; this can be disabled by specifying C{'adjacent=False'} in the constructor. Example:: real = Word(nums) + '.' + Word(nums) print(real.parseString('3.1416')) # -> ['3', '.', '1416'] # will also erroneously match the following print(real.parseString('3. 1416')) # -> ['3', '.', '1416'] real = Combine(Word(nums) + '.' + Word(nums)) print(real.parseString('3.1416')) # -> ['3.1416'] # no match when there are internal spaces print(real.parseString('3. 1416')) # -> Exception: Expected W:(0123...) """ def __init__( self, expr, joinString="", adjacent=True ): super(Combine,self).__init__( expr ) # suppress whitespace-stripping in contained parse expressions, but re-enable it on the Combine itself if adjacent: self.leaveWhitespace() self.adjacent = adjacent self.skipWhitespace = True self.joinString = joinString self.callPreparse = True def ignore( self, other ): if self.adjacent: ParserElement.ignore(self, other) else: super( Combine, self).ignore( other ) return self def postParse( self, instring, loc, tokenlist ): retToks = tokenlist.copy() del retToks[:] retToks += ParseResults([ "".join(tokenlist._asStringList(self.joinString)) ], modal=self.modalResults) if self.resultsName and retToks.haskeys(): return [ retToks ] else: return retToks class Group(TokenConverter): """ Converter to return the matched tokens as a list - useful for returning tokens of C{L{ZeroOrMore}} and C{L{OneOrMore}} expressions. Example:: ident = Word(alphas) num = Word(nums) term = ident | num func = ident + Optional(delimitedList(term)) print(func.parseString("fn a,b,100")) # -> ['fn', 'a', 'b', '100'] func = ident + Group(Optional(delimitedList(term))) print(func.parseString("fn a,b,100")) # -> ['fn', ['a', 'b', '100']] """ def __init__( self, expr ): super(Group,self).__init__( expr ) self.saveAsList = True def postParse( self, instring, loc, tokenlist ): return [ tokenlist ] class Dict(TokenConverter): """ Converter to return a repetitive expression as a list, but also as a dictionary. Each element can also be referenced using the first token in the expression as its key. Useful for tabular report scraping when the first column can be used as a item key. Example:: data_word = Word(alphas) label = data_word + FollowedBy(':') attr_expr = Group(label + Suppress(':') + OneOrMore(data_word).setParseAction(' '.join)) text = "shape: SQUARE posn: upper left color: light blue texture: burlap" attr_expr = (label + Suppress(':') + OneOrMore(data_word, stopOn=label).setParseAction(' '.join)) # print attributes as plain groups print(OneOrMore(attr_expr).parseString(text).dump()) # instead of OneOrMore(expr), parse using Dict(OneOrMore(Group(expr))) - Dict will auto-assign names result = Dict(OneOrMore(Group(attr_expr))).parseString(text) print(result.dump()) # access named fields as dict entries, or output as dict print(result['shape']) print(result.asDict()) prints:: ['shape', 'SQUARE', 'posn', 'upper left', 'color', 'light blue', 'texture', 'burlap'] [['shape', 'SQUARE'], ['posn', 'upper left'], ['color', 'light blue'], ['texture', 'burlap']] - color: light blue - posn: upper left - shape: SQUARE - texture: burlap SQUARE {'color': 'light blue', 'posn': 'upper left', 'texture': 'burlap', 'shape': 'SQUARE'} See more examples at L{ParseResults} of accessing fields by results name. """ def __init__( self, expr ): super(Dict,self).__init__( expr ) self.saveAsList = True def postParse( self, instring, loc, tokenlist ): for i,tok in enumerate(tokenlist): if len(tok) == 0: continue ikey = tok[0] if isinstance(ikey,int): ikey = _ustr(tok[0]).strip() if len(tok)==1: tokenlist[ikey] = _ParseResultsWithOffset("",i) elif len(tok)==2 and not isinstance(tok[1],ParseResults): tokenlist[ikey] = _ParseResultsWithOffset(tok[1],i) else: dictvalue = tok.copy() #ParseResults(i) del dictvalue[0] if len(dictvalue)!= 1 or (isinstance(dictvalue,ParseResults) and dictvalue.haskeys()): tokenlist[ikey] = _ParseResultsWithOffset(dictvalue,i) else: tokenlist[ikey] = _ParseResultsWithOffset(dictvalue[0],i) if self.resultsName: return [ tokenlist ] else: return tokenlist class Suppress(TokenConverter): """ Converter for ignoring the results of a parsed expression. Example:: source = "a, b, c,d" wd = Word(alphas) wd_list1 = wd + ZeroOrMore(',' + wd) print(wd_list1.parseString(source)) # often, delimiters that are useful during parsing are just in the # way afterward - use Suppress to keep them out of the parsed output wd_list2 = wd + ZeroOrMore(Suppress(',') + wd) print(wd_list2.parseString(source)) prints:: ['a', ',', 'b', ',', 'c', ',', 'd'] ['a', 'b', 'c', 'd'] (See also L{delimitedList}.) """ def postParse( self, instring, loc, tokenlist ): return [] def suppress( self ): return self class OnlyOnce(object): """ Wrapper for parse actions, to ensure they are only called once. """ def __init__(self, methodCall): self.callable = _trim_arity(methodCall) self.called = False def __call__(self,s,l,t): if not self.called: results = self.callable(s,l,t) self.called = True return results raise ParseException(s,l,"") def reset(self): self.called = False def traceParseAction(f): """ Decorator for debugging parse actions. When the parse action is called, this decorator will print C{">> entering I{method-name}(line:I{current_source_line}, I{parse_location}, I{matched_tokens})".} When the parse action completes, the decorator will print C{"<<"} followed by the returned value, or any exception that the parse action raised. Example:: wd = Word(alphas) @traceParseAction def remove_duplicate_chars(tokens): return ''.join(sorted(set(''.join(tokens))) wds = OneOrMore(wd).setParseAction(remove_duplicate_chars) print(wds.parseString("slkdjs sld sldd sdlf sdljf")) prints:: >>entering remove_duplicate_chars(line: 'slkdjs sld sldd sdlf sdljf', 0, (['slkdjs', 'sld', 'sldd', 'sdlf', 'sdljf'], {})) <3: thisFunc = paArgs[0].__class__.__name__ + '.' + thisFunc sys.stderr.write( ">>entering %s(line: '%s', %d, %r)\n" % (thisFunc,line(l,s),l,t) ) try: ret = f(*paArgs) except Exception as exc: sys.stderr.write( "< ['aa', 'bb', 'cc'] delimitedList(Word(hexnums), delim=':', combine=True).parseString("AA:BB:CC:DD:EE") # -> ['AA:BB:CC:DD:EE'] """ dlName = _ustr(expr)+" ["+_ustr(delim)+" "+_ustr(expr)+"]..." if combine: return Combine( expr + ZeroOrMore( delim + expr ) ).setName(dlName) else: return ( expr + ZeroOrMore( Suppress( delim ) + expr ) ).setName(dlName) def countedArray( expr, intExpr=None ): """ Helper to define a counted list of expressions. This helper defines a pattern of the form:: integer expr expr expr... where the leading integer tells how many expr expressions follow. The matched tokens returns the array of expr tokens as a list - the leading count token is suppressed. If C{intExpr} is specified, it should be a pyparsing expression that produces an integer value. Example:: countedArray(Word(alphas)).parseString('2 ab cd ef') # -> ['ab', 'cd'] # in this parser, the leading integer value is given in binary, # '10' indicating that 2 values are in the array binaryConstant = Word('01').setParseAction(lambda t: int(t[0], 2)) countedArray(Word(alphas), intExpr=binaryConstant).parseString('10 ab cd ef') # -> ['ab', 'cd'] """ arrayExpr = Forward() def countFieldParseAction(s,l,t): n = t[0] arrayExpr << (n and Group(And([expr]*n)) or Group(empty)) return [] if intExpr is None: intExpr = Word(nums).setParseAction(lambda t:int(t[0])) else: intExpr = intExpr.copy() intExpr.setName("arrayLen") intExpr.addParseAction(countFieldParseAction, callDuringTry=True) return ( intExpr + arrayExpr ).setName('(len) ' + _ustr(expr) + '...') def _flatten(L): ret = [] for i in L: if isinstance(i,list): ret.extend(_flatten(i)) else: ret.append(i) return ret def matchPreviousLiteral(expr): """ Helper to define an expression that is indirectly defined from the tokens matched in a previous expression, that is, it looks for a 'repeat' of a previous expression. For example:: first = Word(nums) second = matchPreviousLiteral(first) matchExpr = first + ":" + second will match C{"1:1"}, but not C{"1:2"}. Because this matches a previous literal, will also match the leading C{"1:1"} in C{"1:10"}. If this is not desired, use C{matchPreviousExpr}. Do I{not} use with packrat parsing enabled. """ rep = Forward() def copyTokenToRepeater(s,l,t): if t: if len(t) == 1: rep << t[0] else: # flatten t tokens tflat = _flatten(t.asList()) rep << And(Literal(tt) for tt in tflat) else: rep << Empty() expr.addParseAction(copyTokenToRepeater, callDuringTry=True) rep.setName('(prev) ' + _ustr(expr)) return rep def matchPreviousExpr(expr): """ Helper to define an expression that is indirectly defined from the tokens matched in a previous expression, that is, it looks for a 'repeat' of a previous expression. For example:: first = Word(nums) second = matchPreviousExpr(first) matchExpr = first + ":" + second will match C{"1:1"}, but not C{"1:2"}. Because this matches by expressions, will I{not} match the leading C{"1:1"} in C{"1:10"}; the expressions are evaluated first, and then compared, so C{"1"} is compared with C{"10"}. Do I{not} use with packrat parsing enabled. """ rep = Forward() e2 = expr.copy() rep <<= e2 def copyTokenToRepeater(s,l,t): matchTokens = _flatten(t.asList()) def mustMatchTheseTokens(s,l,t): theseTokens = _flatten(t.asList()) if theseTokens != matchTokens: raise ParseException("",0,"") rep.setParseAction( mustMatchTheseTokens, callDuringTry=True ) expr.addParseAction(copyTokenToRepeater, callDuringTry=True) rep.setName('(prev) ' + _ustr(expr)) return rep def _escapeRegexRangeChars(s): #~ escape these chars: ^-] for c in r"\^-]": s = s.replace(c,_bslash+c) s = s.replace("\n",r"\n") s = s.replace("\t",r"\t") return _ustr(s) def oneOf( strs, caseless=False, useRegex=True ): """ Helper to quickly define a set of alternative Literals, and makes sure to do longest-first testing when there is a conflict, regardless of the input order, but returns a C{L{MatchFirst}} for best performance. Parameters: - strs - a string of space-delimited literals, or a collection of string literals - caseless - (default=C{False}) - treat all literals as caseless - useRegex - (default=C{True}) - as an optimization, will generate a Regex object; otherwise, will generate a C{MatchFirst} object (if C{caseless=True}, or if creating a C{Regex} raises an exception) Example:: comp_oper = oneOf("< = > <= >= !=") var = Word(alphas) number = Word(nums) term = var | number comparison_expr = term + comp_oper + term print(comparison_expr.searchString("B = 12 AA=23 B<=AA AA>12")) prints:: [['B', '=', '12'], ['AA', '=', '23'], ['B', '<=', 'AA'], ['AA', '>', '12']] """ if caseless: isequal = ( lambda a,b: a.upper() == b.upper() ) masks = ( lambda a,b: b.upper().startswith(a.upper()) ) parseElementClass = CaselessLiteral else: isequal = ( lambda a,b: a == b ) masks = ( lambda a,b: b.startswith(a) ) parseElementClass = Literal symbols = [] if isinstance(strs,basestring): symbols = strs.split() elif isinstance(strs, collections.Iterable): symbols = list(strs) else: warnings.warn("Invalid argument to oneOf, expected string or iterable", SyntaxWarning, stacklevel=2) if not symbols: return NoMatch() i = 0 while i < len(symbols)-1: cur = symbols[i] for j,other in enumerate(symbols[i+1:]): if ( isequal(other, cur) ): del symbols[i+j+1] break elif ( masks(cur, other) ): del symbols[i+j+1] symbols.insert(i,other) cur = other break else: i += 1 if not caseless and useRegex: #~ print (strs,"->", "|".join( [ _escapeRegexChars(sym) for sym in symbols] )) try: if len(symbols)==len("".join(symbols)): return Regex( "[%s]" % "".join(_escapeRegexRangeChars(sym) for sym in symbols) ).setName(' | '.join(symbols)) else: return Regex( "|".join(re.escape(sym) for sym in symbols) ).setName(' | '.join(symbols)) except Exception: warnings.warn("Exception creating Regex for oneOf, building MatchFirst", SyntaxWarning, stacklevel=2) # last resort, just use MatchFirst return MatchFirst(parseElementClass(sym) for sym in symbols).setName(' | '.join(symbols)) def dictOf( key, value ): """ Helper to easily and clearly define a dictionary by specifying the respective patterns for the key and value. Takes care of defining the C{L{Dict}}, C{L{ZeroOrMore}}, and C{L{Group}} tokens in the proper order. The key pattern can include delimiting markers or punctuation, as long as they are suppressed, thereby leaving the significant key text. The value pattern can include named results, so that the C{Dict} results can include named token fields. Example:: text = "shape: SQUARE posn: upper left color: light blue texture: burlap" attr_expr = (label + Suppress(':') + OneOrMore(data_word, stopOn=label).setParseAction(' '.join)) print(OneOrMore(attr_expr).parseString(text).dump()) attr_label = label attr_value = Suppress(':') + OneOrMore(data_word, stopOn=label).setParseAction(' '.join) # similar to Dict, but simpler call format result = dictOf(attr_label, attr_value).parseString(text) print(result.dump()) print(result['shape']) print(result.shape) # object attribute access works too print(result.asDict()) prints:: [['shape', 'SQUARE'], ['posn', 'upper left'], ['color', 'light blue'], ['texture', 'burlap']] - color: light blue - posn: upper left - shape: SQUARE - texture: burlap SQUARE SQUARE {'color': 'light blue', 'shape': 'SQUARE', 'posn': 'upper left', 'texture': 'burlap'} """ return Dict( ZeroOrMore( Group ( key + value ) ) ) def originalTextFor(expr, asString=True): """ Helper to return the original, untokenized text for a given expression. Useful to restore the parsed fields of an HTML start tag into the raw tag text itself, or to revert separate tokens with intervening whitespace back to the original matching input text. By default, returns astring containing the original parsed text. If the optional C{asString} argument is passed as C{False}, then the return value is a C{L{ParseResults}} containing any results names that were originally matched, and a single token containing the original matched text from the input string. So if the expression passed to C{L{originalTextFor}} contains expressions with defined results names, you must set C{asString} to C{False} if you want to preserve those results name values. Example:: src = "this is test bold text normal text " for tag in ("b","i"): opener,closer = makeHTMLTags(tag) patt = originalTextFor(opener + SkipTo(closer) + closer) print(patt.searchString(src)[0]) prints:: [' bold text '] ['text'] """ locMarker = Empty().setParseAction(lambda s,loc,t: loc) endlocMarker = locMarker.copy() endlocMarker.callPreparse = False matchExpr = locMarker("_original_start") + expr + endlocMarker("_original_end") if asString: extractText = lambda s,l,t: s[t._original_start:t._original_end] else: def extractText(s,l,t): t[:] = [s[t.pop('_original_start'):t.pop('_original_end')]] matchExpr.setParseAction(extractText) matchExpr.ignoreExprs = expr.ignoreExprs return matchExpr def ungroup(expr): """ Helper to undo pyparsing's default grouping of And expressions, even if all but one are non-empty. """ return TokenConverter(expr).setParseAction(lambda t:t[0]) def locatedExpr(expr): """ Helper to decorate a returned token with its starting and ending locations in the input string. This helper adds the following results names: - locn_start = location where matched expression begins - locn_end = location where matched expression ends - value = the actual parsed results Be careful if the input text contains C{} characters, you may want to call C{L{ParserElement.parseWithTabs}} Example:: wd = Word(alphas) for match in locatedExpr(wd).searchString("ljsdf123lksdjjf123lkkjj1222"): print(match) prints:: [[0, 'ljsdf', 5]] [[8, 'lksdjjf', 15]] [[18, 'lkkjj', 23]] """ locator = Empty().setParseAction(lambda s,l,t: l) return Group(locator("locn_start") + expr("value") + locator.copy().leaveWhitespace()("locn_end")) # convenience constants for positional expressions empty = Empty().setName("empty") lineStart = LineStart().setName("lineStart") lineEnd = LineEnd().setName("lineEnd") stringStart = StringStart().setName("stringStart") stringEnd = StringEnd().setName("stringEnd") _escapedPunc = Word( _bslash, r"\[]-*.$+^?()~ ", exact=2 ).setParseAction(lambda s,l,t:t[0][1]) _escapedHexChar = Regex(r"\\0?[xX][0-9a-fA-F]+").setParseAction(lambda s,l,t:unichr(int(t[0].lstrip(r'\0x'),16))) _escapedOctChar = Regex(r"\\0[0-7]+").setParseAction(lambda s,l,t:unichr(int(t[0][1:],8))) _singleChar = _escapedPunc | _escapedHexChar | _escapedOctChar | Word(printables, excludeChars=r'\]', exact=1) | Regex(r"\w", re.UNICODE) _charRange = Group(_singleChar + Suppress("-") + _singleChar) _reBracketExpr = Literal("[") + Optional("^").setResultsName("negate") + Group( OneOrMore( _charRange | _singleChar ) ).setResultsName("body") + "]" def srange(s): r""" Helper to easily define string ranges for use in Word construction. Borrows syntax from regexp '[]' string range definitions:: srange("[0-9]") -> "0123456789" srange("[a-z]") -> "abcdefghijklmnopqrstuvwxyz" srange("[a-z$_]") -> "abcdefghijklmnopqrstuvwxyz$_" The input string must be enclosed in []'s, and the returned string is the expanded character set joined into a single string. The values enclosed in the []'s may be: - a single character - an escaped character with a leading backslash (such as C{\-} or C{\]}) - an escaped hex character with a leading C{'\x'} (C{\x21}, which is a C{'!'} character) (C{\0x##} is also supported for backwards compatibility) - an escaped octal character with a leading C{'\0'} (C{\041}, which is a C{'!'} character) - a range of any of the above, separated by a dash (C{'a-z'}, etc.) - any combination of the above (C{'aeiouy'}, C{'a-zA-Z0-9_$'}, etc.) """ _expanded = lambda p: p if not isinstance(p,ParseResults) else ''.join(unichr(c) for c in range(ord(p[0]),ord(p[1])+1)) try: return "".join(_expanded(part) for part in _reBracketExpr.parseString(s).body) except Exception: return "" def matchOnlyAtCol(n): """ Helper method for defining parse actions that require matching at a specific column in the input text. """ def verifyCol(strg,locn,toks): if col(locn,strg) != n: raise ParseException(strg,locn,"matched token not at column %d" % n) return verifyCol def replaceWith(replStr): """ Helper method for common parse actions that simply return a literal value. Especially useful when used with C{L{transformString}()}. Example:: num = Word(nums).setParseAction(lambda toks: int(toks[0])) na = oneOf("N/A NA").setParseAction(replaceWith(math.nan)) term = na | num OneOrMore(term).parseString("324 234 N/A 234") # -> [324, 234, nan, 234] """ return lambda s,l,t: [replStr] def removeQuotes(s,l,t): """ Helper parse action for removing quotation marks from parsed quoted strings. Example:: # by default, quotation marks are included in parsed results quotedString.parseString("'Now is the Winter of our Discontent'") # -> ["'Now is the Winter of our Discontent'"] # use removeQuotes to strip quotation marks from parsed results quotedString.setParseAction(removeQuotes) quotedString.parseString("'Now is the Winter of our Discontent'") # -> ["Now is the Winter of our Discontent"] """ return t[0][1:-1] def tokenMap(func, *args): """ Helper to define a parse action by mapping a function to all elements of a ParseResults list.If any additional args are passed, they are forwarded to the given function as additional arguments after the token, as in C{hex_integer = Word(hexnums).setParseAction(tokenMap(int, 16))}, which will convert the parsed data to an integer using base 16. Example (compare the last to example in L{ParserElement.transformString}:: hex_ints = OneOrMore(Word(hexnums)).setParseAction(tokenMap(int, 16)) hex_ints.runTests(''' 00 11 22 aa FF 0a 0d 1a ''') upperword = Word(alphas).setParseAction(tokenMap(str.upper)) OneOrMore(upperword).runTests(''' my kingdom for a horse ''') wd = Word(alphas).setParseAction(tokenMap(str.title)) OneOrMore(wd).setParseAction(' '.join).runTests(''' now is the winter of our discontent made glorious summer by this sun of york ''') prints:: 00 11 22 aa FF 0a 0d 1a [0, 17, 34, 170, 255, 10, 13, 26] my kingdom for a horse ['MY', 'KINGDOM', 'FOR', 'A', 'HORSE'] now is the winter of our discontent made glorious summer by this sun of york ['Now Is The Winter Of Our Discontent Made Glorious Summer By This Sun Of York'] """ def pa(s,l,t): return [func(tokn, *args) for tokn in t] try: func_name = getattr(func, '__name__', getattr(func, '__class__').__name__) except Exception: func_name = str(func) pa.__name__ = func_name return pa upcaseTokens = tokenMap(lambda t: _ustr(t).upper()) """(Deprecated) Helper parse action to convert tokens to upper case. Deprecated in favor of L{pyparsing_common.upcaseTokens}""" downcaseTokens = tokenMap(lambda t: _ustr(t).lower()) """(Deprecated) Helper parse action to convert tokens to lower case. Deprecated in favor of L{pyparsing_common.downcaseTokens}""" def _makeTags(tagStr, xml): """Internal helper to construct opening and closing tag expressions, given a tag name""" if isinstance(tagStr,basestring): resname = tagStr tagStr = Keyword(tagStr, caseless=not xml) else: resname = tagStr.name tagAttrName = Word(alphas,alphanums+"_-:") if (xml): tagAttrValue = dblQuotedString.copy().setParseAction( removeQuotes ) openTag = Suppress("<") + tagStr("tag") + \ Dict(ZeroOrMore(Group( tagAttrName + Suppress("=") + tagAttrValue ))) + \ Optional("/",default=[False]).setResultsName("empty").setParseAction(lambda s,l,t:t[0]=='/') + Suppress(">") else: printablesLessRAbrack = "".join(c for c in printables if c not in ">") tagAttrValue = quotedString.copy().setParseAction( removeQuotes ) | Word(printablesLessRAbrack) openTag = Suppress("<") + tagStr("tag") + \ Dict(ZeroOrMore(Group( tagAttrName.setParseAction(downcaseTokens) + \ Optional( Suppress("=") + tagAttrValue ) ))) + \ Optional("/",default=[False]).setResultsName("empty").setParseAction(lambda s,l,t:t[0]=='/') + Suppress(">") closeTag = Combine(_L("") openTag = openTag.setResultsName("start"+"".join(resname.replace(":"," ").title().split())).setName("<%s>" % resname) closeTag = closeTag.setResultsName("end"+"".join(resname.replace(":"," ").title().split())).setName("" % resname) openTag.tag = resname closeTag.tag = resname return openTag, closeTag def makeHTMLTags(tagStr): """ Helper to construct opening and closing tag expressions for HTML, given a tag name. Matches tags in either upper or lower case, attributes with namespaces and with quoted or unquoted values. Example:: text = 'More info at the pyparsing wiki page' # makeHTMLTags returns pyparsing expressions for the opening and closing tags as a 2-tuple a,a_end = makeHTMLTags("A") link_expr = a + SkipTo(a_end)("link_text") + a_end for link in link_expr.searchString(text): # attributes in the tag (like "href" shown here) are also accessible as named results print(link.link_text, '->', link.href) prints:: pyparsing -> http://pyparsing.wikispaces.com """ return _makeTags( tagStr, False ) def makeXMLTags(tagStr): """ Helper to construct opening and closing tag expressions for XML, given a tag name. Matches tags only in the given upper/lower case. Example: similar to L{makeHTMLTags} """ return _makeTags( tagStr, True ) def withAttribute(*args,**attrDict): """ Helper to create a validating parse action to be used with start tags created with C{L{makeXMLTags}} or C{L{makeHTMLTags}}. Use C{withAttribute} to qualify a starting tag with a required attribute value, to avoid false matches on common tags such as C{} or C{
}. Call C{withAttribute} with a series of attribute names and values. Specify the list of filter attributes names and values as: - keyword arguments, as in C{(align="right")}, or - as an explicit dict with C{**} operator, when an attribute name is also a Python reserved word, as in C{**{"class":"Customer", "align":"right"}} - a list of name-value tuples, as in ( ("ns1:class", "Customer"), ("ns2:align","right") ) For attribute names with a namespace prefix, you must use the second form. Attribute names are matched insensitive to upper/lower case. If just testing for C{class} (with or without a namespace), use C{L{withClass}}. To verify that the attribute exists, but without specifying a value, pass C{withAttribute.ANY_VALUE} as the value. Example:: html = '''
Some text
1 4 0 1 0
1,3 2,3 1,1
this has no type
''' div,div_end = makeHTMLTags("div") # only match div tag having a type attribute with value "grid" div_grid = div().setParseAction(withAttribute(type="grid")) grid_expr = div_grid + SkipTo(div | div_end)("body") for grid_header in grid_expr.searchString(html): print(grid_header.body) # construct a match with any div tag having a type attribute, regardless of the value div_any_type = div().setParseAction(withAttribute(type=withAttribute.ANY_VALUE)) div_expr = div_any_type + SkipTo(div | div_end)("body") for div_header in div_expr.searchString(html): print(div_header.body) prints:: 1 4 0 1 0 1 4 0 1 0 1,3 2,3 1,1 """ if args: attrs = args[:] else: attrs = attrDict.items() attrs = [(k,v) for k,v in attrs] def pa(s,l,tokens): for attrName,attrValue in attrs: if attrName not in tokens: raise ParseException(s,l,"no matching attribute " + attrName) if attrValue != withAttribute.ANY_VALUE and tokens[attrName] != attrValue: raise ParseException(s,l,"attribute '%s' has value '%s', must be '%s'" % (attrName, tokens[attrName], attrValue)) return pa withAttribute.ANY_VALUE = object() def withClass(classname, namespace=''): """ Simplified version of C{L{withAttribute}} when matching on a div class - made difficult because C{class} is a reserved word in Python. Example:: html = '''
Some text
1 4 0 1 0
1,3 2,3 1,1
this <div> has no class
''' div,div_end = makeHTMLTags("div") div_grid = div().setParseAction(withClass("grid")) grid_expr = div_grid + SkipTo(div | div_end)("body") for grid_header in grid_expr.searchString(html): print(grid_header.body) div_any_type = div().setParseAction(withClass(withAttribute.ANY_VALUE)) div_expr = div_any_type + SkipTo(div | div_end)("body") for div_header in div_expr.searchString(html): print(div_header.body) prints:: 1 4 0 1 0 1 4 0 1 0 1,3 2,3 1,1 """ classattr = "%s:class" % namespace if namespace else "class" return withAttribute(**{classattr : classname}) opAssoc = _Constants() opAssoc.LEFT = object() opAssoc.RIGHT = object() def infixNotation( baseExpr, opList, lpar=Suppress('('), rpar=Suppress(')') ): """ Helper method for constructing grammars of expressions made up of operators working in a precedence hierarchy. Operators may be unary or binary, left- or right-associative. Parse actions can also be attached to operator expressions. The generated parser will also recognize the use of parentheses to override operator precedences (see example below). Note: if you define a deep operator list, you may see performance issues when using infixNotation. See L{ParserElement.enablePackrat} for a mechanism to potentially improve your parser performance. Parameters: - baseExpr - expression representing the most basic element for the nested - opList - list of tuples, one for each operator precedence level in the expression grammar; each tuple is of the form (opExpr, numTerms, rightLeftAssoc, parseAction), where: - opExpr is the pyparsing expression for the operator; may also be a string, which will be converted to a Literal; if numTerms is 3, opExpr is a tuple of two expressions, for the two operators separating the 3 terms - numTerms is the number of terms for this operator (must be 1, 2, or 3) - rightLeftAssoc is the indicator whether the operator is right or left associative, using the pyparsing-defined constants C{opAssoc.RIGHT} and C{opAssoc.LEFT}. - parseAction is the parse action to be associated with expressions matching this operator expression (the parse action tuple member may be omitted); if the parse action is passed a tuple or list of functions, this is equivalent to calling C{setParseAction(*fn)} (L{ParserElement.setParseAction}) - lpar - expression for matching left-parentheses (default=C{Suppress('(')}) - rpar - expression for matching right-parentheses (default=C{Suppress(')')}) Example:: # simple example of four-function arithmetic with ints and variable names integer = pyparsing_common.signed_integer varname = pyparsing_common.identifier arith_expr = infixNotation(integer | varname, [ ('-', 1, opAssoc.RIGHT), (oneOf('* /'), 2, opAssoc.LEFT), (oneOf('+ -'), 2, opAssoc.LEFT), ]) arith_expr.runTests(''' 5+3*6 (5+3)*6 -2--11 ''', fullDump=False) prints:: 5+3*6 [[5, '+', [3, '*', 6]]] (5+3)*6 [[[5, '+', 3], '*', 6]] -2--11 [[['-', 2], '-', ['-', 11]]] """ ret = Forward() lastExpr = baseExpr | ( lpar + ret + rpar ) for i,operDef in enumerate(opList): opExpr,arity,rightLeftAssoc,pa = (operDef + (None,))[:4] termName = "%s term" % opExpr if arity < 3 else "%s%s term" % opExpr if arity == 3: if opExpr is None or len(opExpr) != 2: raise ValueError("if numterms=3, opExpr must be a tuple or list of two expressions") opExpr1, opExpr2 = opExpr thisExpr = Forward().setName(termName) if rightLeftAssoc == opAssoc.LEFT: if arity == 1: matchExpr = FollowedBy(lastExpr + opExpr) + Group( lastExpr + OneOrMore( opExpr ) ) elif arity == 2: if opExpr is not None: matchExpr = FollowedBy(lastExpr + opExpr + lastExpr) + Group( lastExpr + OneOrMore( opExpr + lastExpr ) ) else: matchExpr = FollowedBy(lastExpr+lastExpr) + Group( lastExpr + OneOrMore(lastExpr) ) elif arity == 3: matchExpr = FollowedBy(lastExpr + opExpr1 + lastExpr + opExpr2 + lastExpr) + \ Group( lastExpr + opExpr1 + lastExpr + opExpr2 + lastExpr ) else: raise ValueError("operator must be unary (1), binary (2), or ternary (3)") elif rightLeftAssoc == opAssoc.RIGHT: if arity == 1: # try to avoid LR with this extra test if not isinstance(opExpr, Optional): opExpr = Optional(opExpr) matchExpr = FollowedBy(opExpr.expr + thisExpr) + Group( opExpr + thisExpr ) elif arity == 2: if opExpr is not None: matchExpr = FollowedBy(lastExpr + opExpr + thisExpr) + Group( lastExpr + OneOrMore( opExpr + thisExpr ) ) else: matchExpr = FollowedBy(lastExpr + thisExpr) + Group( lastExpr + OneOrMore( thisExpr ) ) elif arity == 3: matchExpr = FollowedBy(lastExpr + opExpr1 + thisExpr + opExpr2 + thisExpr) + \ Group( lastExpr + opExpr1 + thisExpr + opExpr2 + thisExpr ) else: raise ValueError("operator must be unary (1), binary (2), or ternary (3)") else: raise ValueError("operator must indicate right or left associativity") if pa: if isinstance(pa, (tuple, list)): matchExpr.setParseAction(*pa) else: matchExpr.setParseAction(pa) thisExpr <<= ( matchExpr.setName(termName) | lastExpr ) lastExpr = thisExpr ret <<= lastExpr return ret operatorPrecedence = infixNotation """(Deprecated) Former name of C{L{infixNotation}}, will be dropped in a future release.""" dblQuotedString = Combine(Regex(r'"(?:[^"\n\r\\]|(?:"")|(?:\\(?:[^x]|x[0-9a-fA-F]+)))*')+'"').setName("string enclosed in double quotes") sglQuotedString = Combine(Regex(r"'(?:[^'\n\r\\]|(?:'')|(?:\\(?:[^x]|x[0-9a-fA-F]+)))*")+"'").setName("string enclosed in single quotes") quotedString = Combine(Regex(r'"(?:[^"\n\r\\]|(?:"")|(?:\\(?:[^x]|x[0-9a-fA-F]+)))*')+'"'| Regex(r"'(?:[^'\n\r\\]|(?:'')|(?:\\(?:[^x]|x[0-9a-fA-F]+)))*")+"'").setName("quotedString using single or double quotes") unicodeString = Combine(_L('u') + quotedString.copy()).setName("unicode string literal") def nestedExpr(opener="(", closer=")", content=None, ignoreExpr=quotedString.copy()): """ Helper method for defining nested lists enclosed in opening and closing delimiters ("(" and ")" are the default). Parameters: - opener - opening character for a nested list (default=C{"("}); can also be a pyparsing expression - closer - closing character for a nested list (default=C{")"}); can also be a pyparsing expression - content - expression for items within the nested lists (default=C{None}) - ignoreExpr - expression for ignoring opening and closing delimiters (default=C{quotedString}) If an expression is not provided for the content argument, the nested expression will capture all whitespace-delimited content between delimiters as a list of separate values. Use the C{ignoreExpr} argument to define expressions that may contain opening or closing characters that should not be treated as opening or closing characters for nesting, such as quotedString or a comment expression. Specify multiple expressions using an C{L{Or}} or C{L{MatchFirst}}. The default is L{quotedString}, but if no expressions are to be ignored, then pass C{None} for this argument. Example:: data_type = oneOf("void int short long char float double") decl_data_type = Combine(data_type + Optional(Word('*'))) ident = Word(alphas+'_', alphanums+'_') number = pyparsing_common.number arg = Group(decl_data_type + ident) LPAR,RPAR = map(Suppress, "()") code_body = nestedExpr('{', '}', ignoreExpr=(quotedString | cStyleComment)) c_function = (decl_data_type("type") + ident("name") + LPAR + Optional(delimitedList(arg), [])("args") + RPAR + code_body("body")) c_function.ignore(cStyleComment) source_code = ''' int is_odd(int x) { return (x%2); } int dec_to_hex(char hchar) { if (hchar >= '0' && hchar <= '9') { return (ord(hchar)-ord('0')); } else { return (10+ord(hchar)-ord('A')); } } ''' for func in c_function.searchString(source_code): print("%(name)s (%(type)s) args: %(args)s" % func) prints:: is_odd (int) args: [['int', 'x']] dec_to_hex (int) args: [['char', 'hchar']] """ if opener == closer: raise ValueError("opening and closing strings cannot be the same") if content is None: if isinstance(opener,basestring) and isinstance(closer,basestring): if len(opener) == 1 and len(closer)==1: if ignoreExpr is not None: content = (Combine(OneOrMore(~ignoreExpr + CharsNotIn(opener+closer+ParserElement.DEFAULT_WHITE_CHARS,exact=1)) ).setParseAction(lambda t:t[0].strip())) else: content = (empty.copy()+CharsNotIn(opener+closer+ParserElement.DEFAULT_WHITE_CHARS ).setParseAction(lambda t:t[0].strip())) else: if ignoreExpr is not None: content = (Combine(OneOrMore(~ignoreExpr + ~Literal(opener) + ~Literal(closer) + CharsNotIn(ParserElement.DEFAULT_WHITE_CHARS,exact=1)) ).setParseAction(lambda t:t[0].strip())) else: content = (Combine(OneOrMore(~Literal(opener) + ~Literal(closer) + CharsNotIn(ParserElement.DEFAULT_WHITE_CHARS,exact=1)) ).setParseAction(lambda t:t[0].strip())) else: raise ValueError("opening and closing arguments must be strings if no content expression is given") ret = Forward() if ignoreExpr is not None: ret <<= Group( Suppress(opener) + ZeroOrMore( ignoreExpr | ret | content ) + Suppress(closer) ) else: ret <<= Group( Suppress(opener) + ZeroOrMore( ret | content ) + Suppress(closer) ) ret.setName('nested %s%s expression' % (opener,closer)) return ret def indentedBlock(blockStatementExpr, indentStack, indent=True): """ Helper method for defining space-delimited indentation blocks, such as those used to define block statements in Python source code. Parameters: - blockStatementExpr - expression defining syntax of statement that is repeated within the indented block - indentStack - list created by caller to manage indentation stack (multiple statementWithIndentedBlock expressions within a single grammar should share a common indentStack) - indent - boolean indicating whether block must be indented beyond the the current level; set to False for block of left-most statements (default=C{True}) A valid block must contain at least one C{blockStatement}. Example:: data = ''' def A(z): A1 B = 100 G = A2 A2 A3 B def BB(a,b,c): BB1 def BBA(): bba1 bba2 bba3 C D def spam(x,y): def eggs(z): pass ''' indentStack = [1] stmt = Forward() identifier = Word(alphas, alphanums) funcDecl = ("def" + identifier + Group( "(" + Optional( delimitedList(identifier) ) + ")" ) + ":") func_body = indentedBlock(stmt, indentStack) funcDef = Group( funcDecl + func_body ) rvalue = Forward() funcCall = Group(identifier + "(" + Optional(delimitedList(rvalue)) + ")") rvalue << (funcCall | identifier | Word(nums)) assignment = Group(identifier + "=" + rvalue) stmt << ( funcDef | assignment | identifier ) module_body = OneOrMore(stmt) parseTree = module_body.parseString(data) parseTree.pprint() prints:: [['def', 'A', ['(', 'z', ')'], ':', [['A1'], [['B', '=', '100']], [['G', '=', 'A2']], ['A2'], ['A3']]], 'B', ['def', 'BB', ['(', 'a', 'b', 'c', ')'], ':', [['BB1'], [['def', 'BBA', ['(', ')'], ':', [['bba1'], ['bba2'], ['bba3']]]]]], 'C', 'D', ['def', 'spam', ['(', 'x', 'y', ')'], ':', [[['def', 'eggs', ['(', 'z', ')'], ':', [['pass']]]]]]] """ def checkPeerIndent(s,l,t): if l >= len(s): return curCol = col(l,s) if curCol != indentStack[-1]: if curCol > indentStack[-1]: raise ParseFatalException(s,l,"illegal nesting") raise ParseException(s,l,"not a peer entry") def checkSubIndent(s,l,t): curCol = col(l,s) if curCol > indentStack[-1]: indentStack.append( curCol ) else: raise ParseException(s,l,"not a subentry") def checkUnindent(s,l,t): if l >= len(s): return curCol = col(l,s) if not(indentStack and curCol < indentStack[-1] and curCol <= indentStack[-2]): raise ParseException(s,l,"not an unindent") indentStack.pop() NL = OneOrMore(LineEnd().setWhitespaceChars("\t ").suppress()) INDENT = (Empty() + Empty().setParseAction(checkSubIndent)).setName('INDENT') PEER = Empty().setParseAction(checkPeerIndent).setName('') UNDENT = Empty().setParseAction(checkUnindent).setName('UNINDENT') if indent: smExpr = Group( Optional(NL) + #~ FollowedBy(blockStatementExpr) + INDENT + (OneOrMore( PEER + Group(blockStatementExpr) + Optional(NL) )) + UNDENT) else: smExpr = Group( Optional(NL) + (OneOrMore( PEER + Group(blockStatementExpr) + Optional(NL) )) ) blockStatementExpr.ignore(_bslash + LineEnd()) return smExpr.setName('indented block') alphas8bit = srange(r"[\0xc0-\0xd6\0xd8-\0xf6\0xf8-\0xff]") punc8bit = srange(r"[\0xa1-\0xbf\0xd7\0xf7]") anyOpenTag,anyCloseTag = makeHTMLTags(Word(alphas,alphanums+"_:").setName('any tag')) _htmlEntityMap = dict(zip("gt lt amp nbsp quot apos".split(),'><& "\'')) commonHTMLEntity = Regex('&(?P' + '|'.join(_htmlEntityMap.keys()) +");").setName("common HTML entity") def replaceHTMLEntity(t): """Helper parser action to replace common HTML entities with their special characters""" return _htmlEntityMap.get(t.entity) # it's easy to get these comment structures wrong - they're very common, so may as well make them available cStyleComment = Combine(Regex(r"/\*(?:[^*]|\*(?!/))*") + '*/').setName("C style comment") "Comment of the form C{/* ... */}" htmlComment = Regex(r"").setName("HTML comment") "Comment of the form C{}" restOfLine = Regex(r".*").leaveWhitespace().setName("rest of line") dblSlashComment = Regex(r"//(?:\\\n|[^\n])*").setName("// comment") "Comment of the form C{// ... (to end of line)}" cppStyleComment = Combine(Regex(r"/\*(?:[^*]|\*(?!/))*") + '*/'| dblSlashComment).setName("C++ style comment") "Comment of either form C{L{cStyleComment}} or C{L{dblSlashComment}}" javaStyleComment = cppStyleComment "Same as C{L{cppStyleComment}}" pythonStyleComment = Regex(r"#.*").setName("Python style comment") "Comment of the form C{# ... (to end of line)}" _commasepitem = Combine(OneOrMore(Word(printables, excludeChars=',') + Optional( Word(" \t") + ~Literal(",") + ~LineEnd() ) ) ).streamline().setName("commaItem") commaSeparatedList = delimitedList( Optional( quotedString.copy() | _commasepitem, default="") ).setName("commaSeparatedList") """(Deprecated) Predefined expression of 1 or more printable words or quoted strings, separated by commas. This expression is deprecated in favor of L{pyparsing_common.comma_separated_list}.""" # some other useful expressions - using lower-case class name since we are really using this as a namespace class pyparsing_common: """ Here are some common low-level expressions that may be useful in jump-starting parser development: - numeric forms (L{integers}, L{reals}, L{scientific notation}) - common L{programming identifiers} - network addresses (L{MAC}, L{IPv4}, L{IPv6}) - ISO8601 L{dates} and L{datetime} - L{UUID} - L{comma-separated list} Parse actions: - C{L{convertToInteger}} - C{L{convertToFloat}} - C{L{convertToDate}} - C{L{convertToDatetime}} - C{L{stripHTMLTags}} - C{L{upcaseTokens}} - C{L{downcaseTokens}} Example:: pyparsing_common.number.runTests(''' # any int or real number, returned as the appropriate type 100 -100 +100 3.14159 6.02e23 1e-12 ''') pyparsing_common.fnumber.runTests(''' # any int or real number, returned as float 100 -100 +100 3.14159 6.02e23 1e-12 ''') pyparsing_common.hex_integer.runTests(''' # hex numbers 100 FF ''') pyparsing_common.fraction.runTests(''' # fractions 1/2 -3/4 ''') pyparsing_common.mixed_integer.runTests(''' # mixed fractions 1 1/2 -3/4 1-3/4 ''') import uuid pyparsing_common.uuid.setParseAction(tokenMap(uuid.UUID)) pyparsing_common.uuid.runTests(''' # uuid 12345678-1234-5678-1234-567812345678 ''') prints:: # any int or real number, returned as the appropriate type 100 [100] -100 [-100] +100 [100] 3.14159 [3.14159] 6.02e23 [6.02e+23] 1e-12 [1e-12] # any int or real number, returned as float 100 [100.0] -100 [-100.0] +100 [100.0] 3.14159 [3.14159] 6.02e23 [6.02e+23] 1e-12 [1e-12] # hex numbers 100 [256] FF [255] # fractions 1/2 [0.5] -3/4 [-0.75] # mixed fractions 1 [1] 1/2 [0.5] -3/4 [-0.75] 1-3/4 [1.75] # uuid 12345678-1234-5678-1234-567812345678 [UUID('12345678-1234-5678-1234-567812345678')] """ convertToInteger = tokenMap(int) """ Parse action for converting parsed integers to Python int """ convertToFloat = tokenMap(float) """ Parse action for converting parsed numbers to Python float """ integer = Word(nums).setName("integer").setParseAction(convertToInteger) """expression that parses an unsigned integer, returns an int""" hex_integer = Word(hexnums).setName("hex integer").setParseAction(tokenMap(int,16)) """expression that parses a hexadecimal integer, returns an int""" signed_integer = Regex(r'[+-]?\d+').setName("signed integer").setParseAction(convertToInteger) """expression that parses an integer with optional leading sign, returns an int""" fraction = (signed_integer().setParseAction(convertToFloat) + '/' + signed_integer().setParseAction(convertToFloat)).setName("fraction") """fractional expression of an integer divided by an integer, returns a float""" fraction.addParseAction(lambda t: t[0]/t[-1]) mixed_integer = (fraction | signed_integer + Optional(Optional('-').suppress() + fraction)).setName("fraction or mixed integer-fraction") """mixed integer of the form 'integer - fraction', with optional leading integer, returns float""" mixed_integer.addParseAction(sum) real = Regex(r'[+-]?\d+\.\d*').setName("real number").setParseAction(convertToFloat) """expression that parses a floating point number and returns a float""" sci_real = Regex(r'[+-]?\d+([eE][+-]?\d+|\.\d*([eE][+-]?\d+)?)').setName("real number with scientific notation").setParseAction(convertToFloat) """expression that parses a floating point number with optional scientific notation and returns a float""" # streamlining this expression makes the docs nicer-looking number = (sci_real | real | signed_integer).streamline() """any numeric expression, returns the corresponding Python type""" fnumber = Regex(r'[+-]?\d+\.?\d*([eE][+-]?\d+)?').setName("fnumber").setParseAction(convertToFloat) """any int or real number, returned as float""" identifier = Word(alphas+'_', alphanums+'_').setName("identifier") """typical code identifier (leading alpha or '_', followed by 0 or more alphas, nums, or '_')""" ipv4_address = Regex(r'(25[0-5]|2[0-4][0-9]|1?[0-9]{1,2})(\.(25[0-5]|2[0-4][0-9]|1?[0-9]{1,2})){3}').setName("IPv4 address") "IPv4 address (C{0.0.0.0 - 255.255.255.255})" _ipv6_part = Regex(r'[0-9a-fA-F]{1,4}').setName("hex_integer") _full_ipv6_address = (_ipv6_part + (':' + _ipv6_part)*7).setName("full IPv6 address") _short_ipv6_address = (Optional(_ipv6_part + (':' + _ipv6_part)*(0,6)) + "::" + Optional(_ipv6_part + (':' + _ipv6_part)*(0,6))).setName("short IPv6 address") _short_ipv6_address.addCondition(lambda t: sum(1 for tt in t if pyparsing_common._ipv6_part.matches(tt)) < 8) _mixed_ipv6_address = ("::ffff:" + ipv4_address).setName("mixed IPv6 address") ipv6_address = Combine((_full_ipv6_address | _mixed_ipv6_address | _short_ipv6_address).setName("IPv6 address")).setName("IPv6 address") "IPv6 address (long, short, or mixed form)" mac_address = Regex(r'[0-9a-fA-F]{2}([:.-])[0-9a-fA-F]{2}(?:\1[0-9a-fA-F]{2}){4}').setName("MAC address") "MAC address xx:xx:xx:xx:xx (may also have '-' or '.' delimiters)" @staticmethod def convertToDate(fmt="%Y-%m-%d"): """ Helper to create a parse action for converting parsed date string to Python datetime.date Params - - fmt - format to be passed to datetime.strptime (default=C{"%Y-%m-%d"}) Example:: date_expr = pyparsing_common.iso8601_date.copy() date_expr.setParseAction(pyparsing_common.convertToDate()) print(date_expr.parseString("1999-12-31")) prints:: [datetime.date(1999, 12, 31)] """ def cvt_fn(s,l,t): try: return datetime.strptime(t[0], fmt).date() except ValueError as ve: raise ParseException(s, l, str(ve)) return cvt_fn @staticmethod def convertToDatetime(fmt="%Y-%m-%dT%H:%M:%S.%f"): """ Helper to create a parse action for converting parsed datetime string to Python datetime.datetime Params - - fmt - format to be passed to datetime.strptime (default=C{"%Y-%m-%dT%H:%M:%S.%f"}) Example:: dt_expr = pyparsing_common.iso8601_datetime.copy() dt_expr.setParseAction(pyparsing_common.convertToDatetime()) print(dt_expr.parseString("1999-12-31T23:59:59.999")) prints:: [datetime.datetime(1999, 12, 31, 23, 59, 59, 999000)] """ def cvt_fn(s,l,t): try: return datetime.strptime(t[0], fmt) except ValueError as ve: raise ParseException(s, l, str(ve)) return cvt_fn iso8601_date = Regex(r'(?P\d{4})(?:-(?P\d\d)(?:-(?P\d\d))?)?').setName("ISO8601 date") "ISO8601 date (C{yyyy-mm-dd})" iso8601_datetime = Regex(r'(?P\d{4})-(?P\d\d)-(?P\d\d)[T ](?P\d\d):(?P\d\d)(:(?P\d\d(\.\d*)?)?)?(?PZ|[+-]\d\d:?\d\d)?').setName("ISO8601 datetime") "ISO8601 datetime (C{yyyy-mm-ddThh:mm:ss.s(Z|+-00:00)}) - trailing seconds, milliseconds, and timezone optional; accepts separating C{'T'} or C{' '}" uuid = Regex(r'[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}').setName("UUID") "UUID (C{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx})" _html_stripper = anyOpenTag.suppress() | anyCloseTag.suppress() @staticmethod def stripHTMLTags(s, l, tokens): """ Parse action to remove HTML tags from web page HTML source Example:: # strip HTML links from normal text text = 'More info at the
pyparsing wiki page' td,td_end = makeHTMLTags("TD") table_text = td + SkipTo(td_end).setParseAction(pyparsing_common.stripHTMLTags)("body") + td_end print(table_text.parseString(text).body) # -> 'More info at the pyparsing wiki page' """ return pyparsing_common._html_stripper.transformString(tokens[0]) _commasepitem = Combine(OneOrMore(~Literal(",") + ~LineEnd() + Word(printables, excludeChars=',') + Optional( White(" \t") ) ) ).streamline().setName("commaItem") comma_separated_list = delimitedList( Optional( quotedString.copy() | _commasepitem, default="") ).setName("comma separated list") """Predefined expression of 1 or more printable words or quoted strings, separated by commas.""" upcaseTokens = staticmethod(tokenMap(lambda t: _ustr(t).upper())) """Parse action to convert tokens to upper case.""" downcaseTokens = staticmethod(tokenMap(lambda t: _ustr(t).lower())) """Parse action to convert tokens to lower case.""" if __name__ == "__main__": selectToken = CaselessLiteral("select") fromToken = CaselessLiteral("from") ident = Word(alphas, alphanums + "_$") columnName = delimitedList(ident, ".", combine=True).setParseAction(upcaseTokens) columnNameList = Group(delimitedList(columnName)).setName("columns") columnSpec = ('*' | columnNameList) tableName = delimitedList(ident, ".", combine=True).setParseAction(upcaseTokens) tableNameList = Group(delimitedList(tableName)).setName("tables") simpleSQL = selectToken("command") + columnSpec("columns") + fromToken + tableNameList("tables") # demo runTests method, including embedded comments in test string simpleSQL.runTests(""" # '*' as column list and dotted table name select * from SYS.XYZZY # caseless match on "SELECT", and casts back to "select" SELECT * from XYZZY, ABC # list of column names, and mixed case SELECT keyword Select AA,BB,CC from Sys.dual # multiple tables Select A, B, C from Sys.dual, Table2 # invalid SELECT keyword - should fail Xelect A, B, C from Sys.dual # incomplete command - should fail Select # invalid column name - should fail Select ^^^ frox Sys.dual """) pyparsing_common.number.runTests(""" 100 -100 +100 3.14159 6.02e23 1e-12 """) # any int or real number, returned as float pyparsing_common.fnumber.runTests(""" 100 -100 +100 3.14159 6.02e23 1e-12 """) pyparsing_common.hex_integer.runTests(""" 100 FF """) import uuid pyparsing_common.uuid.setParseAction(tokenMap(uuid.UUID)) pyparsing_common.uuid.runTests(""" 12345678-1234-5678-1234-567812345678 """) pyparsing-2.2.0+dfsg1/robots.txt0000644000175000017500000000004310426670530015302 0ustar zigozigoUser-agent: * Disallow: /htmldoc pyparsing-2.2.0+dfsg1/MANIFEST.in0000644000175000017500000000037612466013312014773 0ustar zigozigoinclude pyparsing.py include HowToUsePyparsing.html pyparsingClassDiagram.* include README CHANGES LICENSE include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html include htmldoc/*.* include docs/*.* include robots.txt pyparsing-2.2.0+dfsg1/HowToUsePyparsing.html0000644000175000017500000020762412171434766017557 0ustar zigozigo Using the pyparsing module

Using the pyparsing module

Author: Paul McGuire
Address:
ptmcg@users.sourceforge.net
Revision: 2.0.1
Date: July, 2013
Copyright: Copyright © 2003-2013 Paul McGuire.
abstract:This document provides how-to instructions for the pyparsing library, an easy-to-use Python module for constructing and executing basic text parsers. The pyparsing module is useful for evaluating user-definable expressions, processing custom application language commands, or extracting data from formatted reports.

1   Steps to follow

To parse an incoming data string, the client code must follow these steps:

  1. First define the tokens and patterns to be matched, and assign this to a program variable. Optional results names or parsing actions can also be defined at this time.
  2. Call parseString() or scanString() on this variable, passing in the string to be parsed. During the matching process, whitespace between tokens is skipped by default (although this can be changed). When token matches occur, any defined parse action methods are called.
  3. Process the parsed results, returned as a list of strings. Matching results may also be accessed as named attributes of the returned results, if names are defined in the definition of the token pattern, using setResultsName().

1.1   Hello, World!

The following complete Python program will parse the greeting "Hello, World!", or any other greeting of the form "<salutation>, <addressee>!":

from pyparsing import Word, alphas

greet = Word( alphas ) + "," + Word( alphas ) + "!"
greeting = greet.parseString( "Hello, World!" )
print greeting

The parsed tokens are returned in the following form:

['Hello', ',', 'World', '!']

1.2   Usage notes

  • The pyparsing module can be used to interpret simple command strings or algebraic expressions, or can be used to extract data from text reports with complicated format and structure ("screen or report scraping"). However, it is possible that your defined matching patterns may accept invalid inputs. Use pyparsing to extract data from strings assumed to be well-formatted.

  • To keep up the readability of your code, use operators such as +, |, ^, and ~ to combine expressions. You can also combine string literals with ParseExpressions - they will be automatically converted to Literal objects. For example:

    integer  = Word( nums )            # simple unsigned integer
    variable = Word( alphas, max=1 )   # single letter variable, such as x, z, m, etc.
    arithOp  = Word( "+-*/", max=1 )   # arithmetic operators
    equation = variable + "=" + integer + arithOp + integer    # will match "x=2+2", etc.
    

    In the definition of equation, the string "=" will get added as a Literal("="), but in a more readable way.

  • The pyparsing module's default behavior is to ignore whitespace. This is the case for 99% of all parsers ever written. This allows you to write simple, clean, grammars, such as the above equation, without having to clutter it up with extraneous ws markers. The equation grammar will successfully parse all of the following statements:

    x=2+2
    x = 2+2
    a = 10   *   4
    r= 1234/ 100000
    

    Of course, it is quite simple to extend this example to support more elaborate expressions, with nesting with parentheses, floating point numbers, scientific notation, and named constants (such as e or pi). See fourFn.py, included in the examples directory.

  • To modify pyparsing's default whitespace skipping, you can use one or more of the following methods:

    • use the static method ParserElement.setDefaultWhitespaceChars to override the normal set of whitespace chars (' tn'). For instance when defining a grammar in which newlines are significant, you should call ParserElement.setDefaultWhitespaceChars(' \t') to remove newline from the set of skippable whitespace characters. Calling this method will affect all pyparsing expressions defined afterward.

    • call leaveWhitespace() on individual expressions, to suppress the skipping of whitespace before trying to match the expression

    • use Combine to require that successive expressions must be adjacent in the input string. For instance, this expression:

      real = Word(nums) + '.' + Word(nums)
      

      will match "3.14159", but will also match "3 . 12". It will also return the matched results as ['3', '.', '14159']. By changing this expression to:

      real = Combine( Word(nums) + '.' + Word(nums) )
      

      it will not match numbers with embedded spaces, and it will return a single concatenated string '3.14159' as the parsed token.

  • Repetition of expressions can be indicated using the '*' operator. An expression may be multiplied by an integer value (to indicate an exact repetition count), or by a tuple containing two integers, or None and an integer, representing min and max repetitions (with None representing no min or no max, depending whether it is the first or second tuple element). See the following examples, where n is used to indicate an integer value:

    • expr*3 is equivalent to expr + expr + expr
    • expr*(2,3) is equivalent to expr + expr + Optional(expr)
    • expr*(n,None) or expr*(n,) is equivalent to expr*n + ZeroOrMore(expr) (read as "at least n instances of expr")
    • expr*(None,n) is equivalent to expr*(0,n) (read as "0 to n instances of expr")
    • expr*(None,None) is equivalent to ZeroOrMore(expr)
    • expr*(1,None) is equivalent to OneOrMore(expr)

    Note that expr*(None,n) does not raise an exception if more than n exprs exist in the input stream; that is, expr*(None,n) does not enforce a maximum number of expr occurrences. If this behavior is desired, then write expr*(None,n) + ~expr.

  • MatchFirst expressions are matched left-to-right, and the first match found will skip all later expressions within, so be sure to define less-specific patterns after more-specific patterns. If you are not sure which expressions are most specific, use Or expressions (defined using the ^ operator) - they will always match the longest expression, although they are more compute-intensive.

  • Or expressions will evaluate all of the specified subexpressions to determine which is the "best" match, that is, which matches the longest string in the input data. In case of a tie, the left-most expression in the Or list will win.

  • If parsing the contents of an entire file, pass it to the parseFile method using:

    expr.parseFile( sourceFile )
    
  • ParseExceptions will report the location where an expected token or expression failed to match. For example, if we tried to use our "Hello, World!" parser to parse "Hello World!" (leaving out the separating comma), we would get an exception, with the message:

    pyparsing.ParseException: Expected "," (6), (1,7)
    

    In the case of complex expressions, the reported location may not be exactly where you would expect. See more information under ParseException .

  • Use the Group class to enclose logical groups of tokens within a sublist. This will help organize your results into more hierarchical form (the default behavior is to return matching tokens as a flat list of matching input strings).

  • Punctuation may be significant for matching, but is rarely of much interest in the parsed results. Use the suppress() method to keep these tokens from cluttering up your returned lists of tokens. For example, delimitedList() matches a succession of one or more expressions, separated by delimiters (commas by default), but only returns a list of the actual expressions - the delimiters are used for parsing, but are suppressed from the returned output.

  • Parse actions can be used to convert values from strings to other data types (ints, floats, booleans, etc.).

  • Results names are recommended for retrieving tokens from complex expressions. It is much easier to access a token using its field name than using a positional index, especially if the expression contains optional elements. You can also shortcut the setResultsName call:

    stats = "AVE:" + realNum.setResultsName("average") + \
            "MIN:" + realNum.setResultsName("min") + \
            "MAX:" + realNum.setResultsName("max")
    

    can now be written as this:

    stats = "AVE:" + realNum("average") + \
            "MIN:" + realNum("min") + \
            "MAX:" + realNum("max")
    
  • Be careful when defining parse actions that modify global variables or data structures (as in fourFn.py), especially for low level tokens or expressions that may occur within an And expression; an early element of an And may match, but the overall expression may fail.

  • Performance of pyparsing may be slow for complex grammars and/or large input strings. The psyco package can be used to improve the speed of the pyparsing module with no changes to grammar or program logic - observed improvments have been in the 20-50% range.

2   Classes

2.1   Classes in the pyparsing module

ParserElement - abstract base class for all pyparsing classes; methods for code to use are:

  • parseString( sourceString, parseAll=False ) - only called once, on the overall matching pattern; returns a ParseResults object that makes the matched tokens available as a list, and optionally as a dictionary, or as an object with named attributes; if parseAll is set to True, then parseString will raise a ParseException if the grammar does not process the complete input string.

  • parseFile( sourceFile ) - a convenience function, that accepts an input file object or filename. The file contents are passed as a string to parseString(). parseFile also supports the parseAll argument.

  • scanString( sourceString ) - generator function, used to find and extract matching text in the given source string; for each matched text, returns a tuple of:

    • matched tokens (packaged as a ParseResults object)
    • start location of the matched text in the given source string
    • end location in the given source string

    scanString allows you to scan through the input source string for random matches, instead of exhaustively defining the grammar for the entire source text (as would be required with parseString).

  • transformString( sourceString ) - convenience wrapper function for scanString, to process the input source string, and replace matching text with the tokens returned from parse actions defined in the grammar (see setParseAction).

  • searchString( sourceString ) - another convenience wrapper function for scanString, returns a list of the matching tokens returned from each call to scanString.

  • setName( name ) - associate a short descriptive name for this element, useful in displaying exceptions and trace information

  • setResultsName( string, listAllMatches=False ) - name to be given to tokens matching the element; if multiple tokens within a repetition group (such as ZeroOrMore or delimitedList) the default is to return only the last matching token - if listAllMatches is set to True, then a list of all the matching tokens is returned. (New in 1.5.6 - a results name with a trailing '*' character will be interpreted as setting listAllMatches to True.) Note: setResultsName returns a copy of the element so that a single basic element can be referenced multiple times and given different names within a complex grammar.

  • setParseAction( *fn ) - specify one or more functions to call after successful matching of the element; each function is defined as fn( s, loc, toks ), where:

    • s is the original parse string
    • loc is the location in the string where matching started
    • toks is the list of the matched tokens, packaged as a ParseResults object

    Multiple functions can be attached to a ParserElement by specifying multiple arguments to setParseAction, or by calling setParseAction multiple times.

    Each parse action function can return a modified toks list, to perform conversion, or string modifications. For brevity, fn may also be a lambda - here is an example of using a parse action to convert matched integer tokens from strings to integers:

    intNumber = Word(nums).setParseAction( lambda s,l,t: [ int(t[0]) ] )
    

    If fn does not modify the toks list, it does not need to return anything at all.

  • setBreak( breakFlag=True ) - if breakFlag is True, calls pdb.set_break() as this expression is about to be parsed

  • copy() - returns a copy of a ParserElement; can be used to use the same parse expression in different places in a grammar, with different parse actions attached to each

  • leaveWhitespace() - change default behavior of skipping whitespace before starting matching (mostly used internally to the pyparsing module, rarely used by client code)

  • setWhitespaceChars( chars ) - define the set of chars to be ignored as whitespace before trying to match a specific ParserElement, in place of the default set of whitespace (space, tab, newline, and return)

  • setDefaultWhitespaceChars( chars ) - class-level method to override the default set of whitespace chars for all subsequently created ParserElements (including copies); useful when defining grammars that treat one or more of the default whitespace characters as significant (such as a line-sensitive grammar, to omit newline from the list of ignorable whitespace)

  • suppress() - convenience function to suppress the output of the given element, instead of wrapping it with a Suppress object.

  • ignore( expr ) - function to specify parse expression to be ignored while matching defined patterns; can be called repeatedly to specify multiple expressions; useful to specify patterns of comment syntax, for example

  • setDebug( dbgFlag=True ) - function to enable/disable tracing output when trying to match this element

  • validate() - function to verify that the defined grammar does not contain infinitely recursive constructs

  • parseWithTabs() - function to override default behavior of converting tabs to spaces before parsing the input string; rarely used, except when specifying whitespace-significant grammars using the White class.
  • enablePackrat() - a class-level static method to enable a memoizing performance enhancement, known as "packrat parsing". packrat parsing is disabled by default, since it may conflict with some user programs that use parse actions. To activate the packrat feature, your program must call the class method ParserElement.enablePackrat(). If your program uses psyco to "compile as you go", you must call enablePackrat before calling psyco.full(). If you do not do this, Python will crash. For best results, call enablePackrat() immediately after importing pyparsing.

2.2   Basic ParserElement subclasses

  • Literal - construct with a string to be matched exactly
  • CaselessLiteral - construct with a string to be matched, but without case checking; results are always returned as the defining literal, NOT as they are found in the input string
  • Keyword - similar to Literal, but must be immediately followed by whitespace, punctuation, or other non-keyword characters; prevents accidental matching of a non-keyword that happens to begin with a defined keyword
  • CaselessKeyword - similar to Keyword, but with caseless matching behavior
  • Word - one or more contiguous characters; construct with a string containing the set of allowed initial characters, and an optional second string of allowed body characters; for instance, a common Word construct is to match a code identifier - in C, a valid identifier must start with an alphabetic character or an underscore ('_'), followed by a body that can also include numeric digits. That is, a, i, MAX_LENGTH, _a1, b_109_, and plan9FromOuterSpace are all valid identifiers; 9b7z, $a, .section, and 0debug are not. To define an identifier using a Word, use either of the following:

    - Word( alphas+"_", alphanums+"_" )
    - Word( srange("[a-zA-Z_]"), srange("[a-zA-Z0-9_]") )
    

    If only one string given, it specifies that the same character set defined for the initial character is used for the word body; for instance, to define an identifier that can only be composed of capital letters and underscores, use:

    - Word( "ABCDEFGHIJKLMNOPQRSTUVWXYZ_" )
    - Word( srange("[A-Z_]") )
    

    A Word may also be constructed with any of the following optional parameters:

    • min - indicating a minimum length of matching characters
    • max - indicating a maximum length of matching characters
    • exact - indicating an exact length of matching characters

    If exact is specified, it will override any values for min or max.

    New in 1.5.6 - Sometimes you want to define a word using all characters in a range except for one or two of them; you can do this with the new excludeChars argument. This is helpful if you want to define a word with all printables except for a single delimiter character, such as '.'. Previously, you would have to create a custom string to pass to Word. With this change, you can just create Word(printables, excludeChars='.').

  • CharsNotIn - similar to Word, but matches characters not in the given constructor string (accepts only one string for both initial and body characters); also supports min, max, and exact optional parameters.

  • Regex - a powerful construct, that accepts a regular expression to be matched at the current parse position; accepts an optional flags parameter, corresponding to the flags parameter in the re.compile method; if the expression includes named sub-fields, they will be represented in the returned ParseResults

  • QuotedString - supports the definition of custom quoted string formats, in addition to pyparsing's built-in dblQuotedString and sglQuotedString. QuotedString allows you to specify the following parameters:

    • quoteChar - string of one or more characters defining the quote delimiting string
    • escChar - character to escape quotes, typically backslash (default=None)
    • escQuote - special quote sequence to escape an embedded quote string (such as SQL's "" to escape an embedded ") (default=None)
    • multiline - boolean indicating whether quotes can span multiple lines (default=False)
    • unquoteResults - boolean indicating whether the matched text should be unquoted (default=True)
    • endQuoteChar - string of one or more characters defining the end of the quote delimited string (default=None => same as quoteChar)
  • SkipTo - skips ahead in the input string, accepting any characters up to the specified pattern; may be constructed with the following optional parameters:

    • include - if set to true, also consumes the match expression (default is False)
    • ignore - allows the user to specify patterns to not be matched, to prevent false matches
    • failOn - if a literal string or expression is given for this argument, it defines an expression that should cause the SkipTo expression to fail, and not skip over that expression
  • White - also similar to Word, but matches whitespace characters. Not usually needed, as whitespace is implicitly ignored by pyparsing. However, some grammars are whitespace-sensitive, such as those that use leading tabs or spaces to indicating grouping or hierarchy. (If matching on tab characters, be sure to call parseWithTabs on the top-level parse element.)
  • Empty - a null expression, requiring no characters - will always match; useful for debugging and for specialized grammars
  • NoMatch - opposite of Empty, will never match; useful for debugging and for specialized grammars

2.3   Expression subclasses

  • And - construct with a list of ParserElements, all of which must match for And to match; can also be created using the '+' operator; multiple expressions can be Anded together using the '*' operator as in:

    ipAddress = Word(nums) + ('.'+Word(nums))*3
    

    A tuple can be used as the multiplier, indicating a min/max:

    usPhoneNumber = Word(nums) + ('-'+Word(nums))*(1,2)
    

    A special form of And is created if the '-' operator is used instead of the '+' operator. In the ipAddress example above, if no trailing '.' and Word(nums) are found after matching the initial Word(nums), then pyparsing will back up in the grammar and try other alternatives to ipAddress. However, if ipAddress is defined as:

    strictIpAddress = Word(nums) - ('.'+Word(nums))*3
    

    then no backing up is done. If the first Word(nums) of strictIpAddress is matched, then any mismatch after that will raise a ParseSyntaxException, which will halt the parsing process immediately. By careful use of the '-' operator, grammars can provide meaningful error messages close to the location where the incoming text does not match the specified grammar.

  • Or - construct with a list of ParserElements, any of which must match for Or to match; if more than one expression matches, the expression that makes the longest match will be used; can also be created using the '^' operator

  • MatchFirst - construct with a list of ParserElements, any of which must match for MatchFirst to match; matching is done left-to-right, taking the first expression that matches; can also be created using the '|' operator

  • Each - similar to And, in that all of the provided expressions must match; however, Each permits matching to be done in any order; can also be created using the '&' operator

  • Optional - construct with a ParserElement, but this element is not required to match; can be constructed with an optional default argument, containing a default string or object to be supplied if the given optional parse element is not found in the input string; parse action will only be called if a match is found, or if a default is specified

  • ZeroOrMore - similar to Optional, but can be repeated

  • OneOrMore - similar to ZeroOrMore, but at least one match must be present

  • FollowedBy - a lookahead expression, requires matching of the given expressions, but does not advance the parsing position within the input string

  • NotAny - a negative lookahead expression, prevents matching of named expressions, does not advance the parsing position within the input string; can also be created using the unary '~' operator

2.4   Expression operators

  • ~ - creates NotAny using the expression after the operator
  • + - creates And using the expressions before and after the operator
  • | - creates MatchFirst (first left-to-right match) using the expressions before and after the operator
  • ^ - creates Or (longest match) using the expressions before and after the operator
  • & - creates Each using the expressions before and after the operator
  • * - creates And by multiplying the expression by the integer operand; if expression is multiplied by a 2-tuple, creates an And of (min,max) expressions (similar to "{min,max}" form in regular expressions); if min is None, intepret as (0,max); if max is None, interpret as expr*min + ZeroOrMore(expr)
  • - - like + but with no backup and retry of alternatives
  • * - repetition of expression
  • == - matching expression to string; returns True if the string matches the given expression
  • <<= - inserts the expression following the operator as the body of the Forward expression before the operator (formerly <<, which is now deprecated)

2.5   Positional subclasses

  • StringStart - matches beginning of the text
  • StringEnd - matches the end of the text
  • LineStart - matches beginning of a line (lines delimited by \n characters)
  • LineEnd - matches the end of a line
  • WordStart - matches a leading word boundary
  • WordEnd - matches a trailing word boundary

2.6   Converter subclasses

  • Upcase - converts matched tokens to uppercase (deprecated - use upcaseTokens parse action instead)
  • Combine - joins all matched tokens into a single string, using specified joinString (default joinString=""); expects all matching tokens to be adjacent, with no intervening whitespace (can be overridden by specifying adjacent=False in constructor)
  • Suppress - clears matched tokens; useful to keep returned results from being cluttered with required but uninteresting tokens (such as list delimiters)

2.7   Special subclasses

  • Group - causes the matched tokens to be enclosed in a list; useful in repeated elements like ZeroOrMore and OneOrMore to break up matched tokens into groups for each repeated pattern
  • Dict - like Group, but also constructs a dictionary, using the [0]'th elements of all enclosed token lists as the keys, and each token list as the value
  • SkipTo - catch-all matching expression that accepts all characters up until the given pattern is found to match; useful for specifying incomplete grammars
  • Forward - placeholder token used to define recursive token patterns; when defining the actual expression later in the program, insert it into the Forward object using the <<= operator (see fourFn.py for an example).

2.8   Other classes

  • ParseResults - class used to contain and manage the lists of tokens created from parsing the input using the user-defined parse expression. ParseResults can be accessed in a number of ways:

    • as a list
      • total list of elements can be found using len()
      • individual elements can be found using [0], [1], [-1], etc.
      • elements can be deleted using del
      • the -1th element can be extracted and removed in a single operation using pop(), or any element can be extracted and removed using pop(n)
    • as a dictionary
      • if setResultsName() is used to name elements within the overall parse expression, then these fields can be referenced as dictionary elements or as attributes
      • the Dict class generates dictionary entries using the data of the input text - in addition to ParseResults listed as [ [ a1, b1, c1, ...], [ a2, b2, c2, ...]  ] it also acts as a dictionary with entries defined as { a1 : [ b1, c1, ... ] }, { a2 : [ b2, c2, ... ] }; this is especially useful when processing tabular data where the first column contains a key value for that line of data
      • list elements that are deleted using del will still be accessible by their dictionary keys
      • supports get(), items() and keys() methods, similar to a dictionary
      • a keyed item can be extracted and removed using pop(key). Here key must be non-numeric (such as a string), in order to use dict extraction instead of list extraction.
      • new named elements can be added (in a parse action, for instance), using the same syntax as adding an item to a dict (parseResults["X"]="new item"); named elements can be removed using del parseResults["X"]
    • as a nested list
      • results returned from the Group class are encapsulated within their own list structure, so that the tokens can be handled as a hierarchical tree

    ParseResults can also be converted to an ordinary list of strings by calling asList(). Note that this will strip the results of any field names that have been defined for any embedded parse elements. (The pprint module is especially good at printing out the nested contents given by asList().)

    Finally, ParseResults can be converted to an XML string by calling asXML(). Where possible, results will be tagged using the results names defined for the respective ParseExpressions. asXML() takes two optional arguments:

    • doctagname - for ParseResults that do not have a defined name, this argument will wrap the resulting XML in a set of opening and closing tags <doctagname> and </doctagname>.
    • namedItemsOnly (default=False) - flag to indicate if the generated XML should skip items that do not have defined names. If a nested group item is named, then all embedded items will be included, whether they have names or not.

2.9   Exception classes and Troubleshooting

  • ParseException - exception returned when a grammar parse fails; ParseExceptions have attributes loc, msg, line, lineno, and column; to view the text line and location where the reported ParseException occurs, use:

    except ParseException, err:
        print err.line
        print " "*(err.column-1) + "^"
        print err
    
  • RecursiveGrammarException - exception returned by validate() if the grammar contains a recursive infinite loop, such as:

    badGrammar = Forward()
    goodToken = Literal("A")
    badGrammar <<= Optional(goodToken) + badGrammar
    
  • ParseFatalException - exception that parse actions can raise to stop parsing immediately. Should be used when a semantic error is found in the input text, such as a mismatched XML tag.

  • ParseSyntaxException - subclass of ParseFatalException raised when a syntax error is found, based on the use of the '-' operator when defining a sequence of expressions in an And expression.

You can also get some insights into the parsing logic using diagnostic parse actions, and setDebug(), or test the matching of expression fragments by testing them using scanString().

3   Miscellaneous attributes and methods

3.1   Helper methods

  • delimitedList( expr, delim=',') - convenience function for matching one or more occurrences of expr, separated by delim. By default, the delimiters are suppressed, so the returned results contain only the separate list elements. Can optionally specify combine=True, indicating that the expressions and delimiters should be returned as one combined value (useful for scoped variables, such as "a.b.c", or "a::b::c", or paths such as "a/b/c").

  • countedArray( expr ) - convenience function for a pattern where an list of instances of the given expression are preceded by an integer giving the count of elements in the list. Returns an expression that parses the leading integer, reads exactly that many expressions, and returns the array of expressions in the parse results - the leading integer is suppressed from the results (although it is easily reconstructed by using len on the returned array).

  • oneOf( string, caseless=False ) - convenience function for quickly declaring an alternative set of Literal tokens, by splitting the given string on whitespace boundaries. The tokens are sorted so that longer matches are attempted first; this ensures that a short token does not mask a longer one that starts with the same characters. If caseless=True, will create an alternative set of CaselessLiteral tokens.

  • dictOf( key, value ) - convenience function for quickly declaring a dictionary pattern of Dict( ZeroOrMore( Group( key + value ) ) ).

  • makeHTMLTags( tagName ) and makeXMLTags( tagName ) - convenience functions to create definitions of opening and closing tag expressions. Returns a pair of expressions, for the corresponding <tag> and </tag> strings. Includes support for attributes in the opening tag, such as <tag attr1="abc"> - attributes are returned as keyed tokens in the returned ParseResults. makeHTMLTags is less restrictive than makeXMLTags, especially with respect to case sensitivity.

  • infixNotation(baseOperand, operatorList) - (formerly named operatorPrecedence) convenience function to define a grammar for parsing infix notation expressions with a hierarchical precedence of operators. To use the infixNotation helper:

    1. Define the base "atom" operand term of the grammar. For this simple grammar, the smallest operand is either and integer or a variable. This will be the first argument to the infixNotation method.
    2. Define a list of tuples for each level of operator precendence. Each tuple is of the form (opExpr, numTerms, rightLeftAssoc, parseAction), where:
      • opExpr is the pyparsing expression for the operator; may also be a string, which will be converted to a Literal; if None, indicates an empty operator, such as the implied multiplication operation between 'm' and 'x' in "y = mx + b". If numTerms parameter is 3, this must be a 2-tuple containing the 2 delimiting operators.
      • numTerms is the number of terms for this operator (must be 1,2, or 3)
      • rightLeftAssoc is the indicator whether the operator is right or left associative, using the pyparsing-defined constants opAssoc.RIGHT and opAssoc.LEFT.
      • parseAction is the parse action to be associated with expressions matching this operator expression (the parse action tuple member may be omitted)
    3. Call infixNotation passing the operand expression and the operator precedence list, and save the returned value as the generated pyparsing expression. You can then use this expression to parse input strings, or incorporate it into a larger, more complex grammar.
  • matchPreviousLiteral and matchPreviousExpr - function to define and expression that matches the same content as was parsed in a previous parse expression. For instance:

    first = Word(nums)
    matchExpr = first + ":" + matchPreviousLiteral(first)
    

    will match "1:1", but not "1:2". Since this matches at the literal level, this will also match the leading "1:1" in "1:10".

    In contrast:

    first = Word(nums)
    matchExpr = first + ":" + matchPreviousExpr(first)
    

    will not match the leading "1:1" in "1:10"; the expressions are evaluated first, and then compared, so "1" is compared with "10".

  • nestedExpr(opener, closer, content=None, ignoreExpr=quotedString) - method for defining nested lists enclosed in opening and closing delimiters.

    • opener - opening character for a nested list (default="("); can also be a pyparsing expression
    • closer - closing character for a nested list (default=")"); can also be a pyparsing expression
    • content - expression for items within the nested lists (default=None)
    • ignoreExpr - expression for ignoring opening and closing delimiters (default=quotedString)

    If an expression is not provided for the content argument, the nested expression will capture all whitespace-delimited content between delimiters as a list of separate values.

    Use the ignoreExpr argument to define expressions that may contain opening or closing characters that should not be treated as opening or closing characters for nesting, such as quotedString or a comment expression. Specify multiple expressions using an Or or MatchFirst. The default is quotedString, but if no expressions are to be ignored, then pass None for this argument.

  • indentedBlock( statementExpr, indentationStackVar, indent=True) - function to define an indented block of statements, similar to indentation-based blocking in Python source code:

    • statementExpr - the expression defining a statement that will be found in the indented block; a valid indentedBlock must contain at least 1 matching statementExpr
    • indentationStackVar - a Python list variable; this variable should be common to all indentedBlock expressions defined within the same grammar, and should be reinitialized to [1] each time the grammar is to be used
    • indent - a boolean flag indicating whether the expressions within the block must be indented from the current parse location; if using indentedBlock to define the left-most statements (all starting in column 1), set indent to False
  • originalTextFor( expr ) - helper function to preserve the originally parsed text, regardless of any token processing or conversion done by the contained expression. For instance, the following expression:

    fullName = Word(alphas) + Word(alphas)
    

    will return the parse of "John Smith" as ['John', 'Smith']. In some applications, the actual name as it was given in the input string is what is desired. To do this, use originalTextFor:

    fullName = originalTextFor(Word(alphas) + Word(alphas))
    
  • ungroup( expr ) - function to "ungroup" returned tokens; useful to undo the default behavior of And to always group the returned tokens, even if there is only one in the list. (New in 1.5.6)

  • lineno( loc, string ) - function to give the line number of the location within the string; the first line is line 1, newlines start new rows

  • col( loc, string ) - function to give the column number of the location within the string; the first column is column 1, newlines reset the column number to 1

  • line( loc, string ) - function to retrieve the line of text representing lineno( loc, string ); useful when printing out diagnostic messages for exceptions

  • srange( rangeSpec ) - function to define a string of characters, given a string of the form used by regexp string ranges, such as "[0-9]" for all numeric digits, "[A-Z_]" for uppercase characters plus underscore, and so on (note that rangeSpec does not include support for generic regular expressions, just string range specs)

  • getTokensEndLoc() - function to call from within a parse action to get the ending location for the matched tokens

  • traceParseAction(fn) - decorator function to debug parse actions. Lists each call, called arguments, and return value or exception

3.2   Helper parse actions

  • removeQuotes - removes the first and last characters of a quoted string; useful to remove the delimiting quotes from quoted strings

  • replaceWith(replString) - returns a parse action that simply returns the replString; useful when using transformString, or converting HTML entities, as in:

    nbsp = Literal("&nbsp;").setParseAction( replaceWith("<BLANK>") )
    
  • keepOriginalText- (deprecated, use originalTextFor instead) restores any internal whitespace or suppressed text within the tokens for a matched parse expression. This is especially useful when defining expressions for scanString or transformString applications.

  • withAttribute( *args, **kwargs ) - helper to create a validating parse action to be used with start tags created with makeXMLTags or makeHTMLTags. Use withAttribute to qualify a starting tag with a required attribute value, to avoid false matches on common tags such as <TD> or <DIV>.

    withAttribute can be called with:

    • keyword arguments, as in (class="Customer",align="right"), or
    • a list of name-value tuples, as in ( ("ns1:class", "Customer"), ("ns2:align","right") )

    An attribute can be specified to have the special value withAttribute.ANY_VALUE, which will match any value - use this to ensure that an attribute is present but any attribute value is acceptable.

  • downcaseTokens - converts all matched tokens to lowercase

  • upcaseTokens - converts all matched tokens to uppercase

  • matchOnlyAtCol( columnNumber ) - a parse action that verifies that an expression was matched at a particular column, raising a ParseException if matching at a different column number; useful when parsing tabular data

3.3   Common string and token constants

  • alphas - same as string.letters

  • nums - same as string.digits

  • alphanums - a string containing alphas + nums

  • alphas8bit - a string containing alphabetic 8-bit characters:

    ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþ
    
  • printables - same as string.printable, minus the space (' ') character

  • empty - a global Empty(); will always match

  • sglQuotedString - a string of characters enclosed in 's; may include whitespace, but not newlines

  • dblQuotedString - a string of characters enclosed in "s; may include whitespace, but not newlines

  • quotedString - sglQuotedString | dblQuotedString

  • cStyleComment - a comment block delimited by '/*' and '*/' sequences; can span multiple lines, but does not support nesting of comments

  • htmlComment - a comment block delimited by '<!--' and '-->' sequences; can span multiple lines, but does not support nesting of comments

  • commaSeparatedList - similar to delimitedList, except that the list expressions can be any text value, or a quoted string; quoted strings can safely include commas without incorrectly breaking the string into two tokens

  • restOfLine - all remaining printable characters up to but not including the next newline

pyparsing-2.2.0+dfsg1/examples/0000755000175000017500000000000013057145333015053 5ustar zigozigopyparsing-2.2.0+dfsg1/examples/removeLineBreaks.py0000644000175000017500000000276412466013312020665 0ustar zigozigo# removeLineBreaks.py # # Demonstration of the pyparsing module, converting text files # with hard line-breaks to text files with line breaks only # between paragraphs. (Helps when converting downloads from Project # Gutenberg - http://www.gutenberg.org - to import to word processing apps # that can reformat paragraphs once hard line-breaks are removed.) # # Uses parse actions and transformString to remove unwanted line breaks, # and to double up line breaks between paragraphs. # # Copyright 2006, by Paul McGuire # from pyparsing import * # define an expression for the body of a line of text - use a parse action to reject any # empty lines def mustBeNonBlank(s,l,t): if not t[0]: raise ParseException(s,l,"line body can't be empty") lineBody = SkipTo(lineEnd).setParseAction(mustBeNonBlank) # now define a line with a trailing lineEnd, to be replaced with a space character textLine = lineBody + Suppress(lineEnd).setParseAction(replaceWith(" ")) # define a paragraph, with a separating lineEnd, to be replaced with a double newline para = OneOrMore(textLine) + Suppress(lineEnd).setParseAction(replaceWith("\n\n")) # run a test test = """ Now is the time for all good men to come to the aid of their country. """ print(para.transformString(test)) # process an entire file z = para.transformString(file("Successful Methods of Public Speaking.txt").read()) file("Successful Methods of Public Speaking(2).txt","w").write(z) pyparsing-2.2.0+dfsg1/examples/AcManForm.dfm0000644000175000017500000011434112466013312017344 0ustar zigozigoobject Form1: TForm1 Left = 193 Top = 105 Width = 696 Height = 480 Caption = 'AcManTest' Color = clBtnFace Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -11 Font.Name = 'MS Sans Serif' Font.Style = [] OldCreateOrder = False OnCreate = FormCreate PixelsPerInch = 96 TextHeight = 13 object RichEdit1: TRichEdit Left = 0 Top = 107 Width = 688 Height = 346 Align = alClient Lines.Strings = ( 'RichEdit1') TabOrder = 0 end object ActionToolBar1: TActionToolBar Left = 0 Top = 25 Width = 688 Height = 28 ActionManager = ActionManager1 Caption = 'ActionToolBar1' ColorMap.HighlightColor = 14410210 ColorMap.BtnSelectedColor = clBtnFace ColorMap.UnusedColor = 14410210 EdgeBorders = [ebTop, ebBottom] Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -11 Font.Name = 'MS Sans Serif' Font.Style = [] ParentFont = False ParentShowHint = False ShowHint = True Spacing = 0 end object ActionMainMenuBar1: TActionMainMenuBar Left = 0 Top = 0 Width = 688 Height = 25 UseSystemFont = False ActionManager = ActionManager1 AnimationStyle = asSlide Caption = 'ActionMainMenuBar1' ColorMap.HighlightColor = 14410210 ColorMap.BtnSelectedColor = clBtnFace ColorMap.UnusedColor = 14410210 EdgeBorders = [ebTop, ebBottom] EdgeOuter = esNone Font.Charset = ANSI_CHARSET Font.Color = clWindowText Font.Height = -11 Font.Name = 'Tahoma' Font.Style = [] ParentShowHint = False ShowHint = True Spacing = 0 end object ActionToolBar2: TActionToolBar Left = 0 Top = 53 Width = 688 Height = 28 ActionManager = ActionManager1 Caption = 'ActionToolBar2' ColorMap.HighlightColor = 14410210 ColorMap.BtnSelectedColor = clBtnFace ColorMap.UnusedColor = 14410210 EdgeBorders = [ebTop, ebBottom] Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -11 Font.Name = 'MS Sans Serif' Font.Style = [] ParentFont = False ParentShowHint = False ShowHint = True Spacing = 0 end object ActionToolBar3: TActionToolBar Left = 0 Top = 81 Width = 688 Height = 26 ActionManager = ActionManager1 Caption = 'ActionToolBar3' ColorMap.HighlightColor = 14410210 ColorMap.BtnSelectedColor = clBtnFace ColorMap.UnusedColor = 14410210 Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -11 Font.Name = 'MS Sans Serif' Font.Style = [] ParentFont = False Spacing = 0 end object ActionManager1: TActionManager FileName = 'settings' ActionBars.SessionCount = 4 ActionBars = < item Items = < item Action = EditUndo1 ImageIndex = 3 ShortCut = 16474 end item Action = EditCut1 ImageIndex = 0 ShortCut = 16472 end item Action = EditCopy1 ImageIndex = 1 ShortCut = 16451 end item Action = EditPaste1 ImageIndex = 2 ShortCut = 16470 end item Action = SearchFind1 ImageIndex = 15 ShortCut = 16454 end item Action = SearchReplace1 ImageIndex = 17 end> ActionBar = ActionToolBar1 AutoSize = False end item Items = < item Items = < item Action = FileOpen1 ImageIndex = 12 ShortCut = 16463 end item Action = FileSaveAs1 ImageIndex = 13 end item Action = FilePrintSetup1 end item Action = FileRun1 end item Action = FileExit1 ImageIndex = 14 LastSession = -1 UsageCount = -1 end> Caption = '&File' end item Items = < item Action = EditCut1 ImageIndex = 0 ShortCut = 16472 end item Action = EditCopy1 ImageIndex = 1 ShortCut = 16451 end item Action = EditPaste1 ImageIndex = 2 ShortCut = 16470 end item Action = EditSelectAll1 ShortCut = 16449 end item Action = EditUndo1 ImageIndex = 3 ShortCut = 16474 end item Action = EditDelete1 ImageIndex = 4 ShortCut = 46 end> Caption = '&Edit' end item Items = < item Action = RichEditBold1 ImageIndex = 5 ShortCut = 16450 end item Action = RichEditItalic1 ImageIndex = 6 ShortCut = 16457 end item Action = RichEditUnderline1 ImageIndex = 7 ShortCut = 16469 end item Action = RichEditStrikeOut1 end item Action = RichEditBullets1 ImageIndex = 8 end item Action = RichEditAlignLeft1 ImageIndex = 9 end item Action = RichEditAlignRight1 ImageIndex = 10 end item Action = RichEditAlignCenter1 ImageIndex = 11 end> Caption = 'F&ormat' end item Items = < item Action = SearchFind1 ImageIndex = 15 ShortCut = 16454 end item Action = SearchFindNext1 ImageIndex = 16 ShortCut = 114 end item Action = SearchReplace1 ImageIndex = 17 end item Action = SearchFindFirst1 end> Caption = '&Search' end item Items = < item Action = CustomizeActionBars1 end> Caption = '&Tools' end item Items = < item Action = HelpContents1 ImageIndex = 18 end> Caption = '&Help' end> ActionBar = ActionMainMenuBar1 AutoSize = False end item Items = < item Action = RichEditBold1 ImageIndex = 5 ShortCut = 16450 end item Action = RichEditItalic1 ImageIndex = 6 ShortCut = 16457 end item Action = RichEditUnderline1 ImageIndex = 7 ShortCut = 16469 end item Action = RichEditBullets1 Caption = 'Bull&ets' ImageIndex = 8 end item Action = RichEditAlignLeft1 ImageIndex = 9 end item Action = RichEditAlignRight1 ImageIndex = 10 end item Action = RichEditAlignCenter1 ImageIndex = 11 end> ActionBar = ActionToolBar2 AutoSize = False end item AutoSize = False end item AutoSize = False end item Items = < item Action = FileSaveAs1 ImageIndex = 13 LastSession = 2 end item Action = CustomizeActionBars1 end item Action = FileExit1 ImageIndex = 14 end item Action = HelpContents1 Caption = 'C&ontents' ImageIndex = 18 end item Action = ActionShowStatus Caption = '&ShowStatus' end> ActionBar = ActionToolBar3 AutoSize = False end> Images = ImageList1 Left = 88 Top = 136 StyleName = 'XP Style' object EditCut1: TEditCut Category = 'Edit' Caption = 'Cu&t' Hint = 'Cut|Cuts the selection and puts it on the Clipboard' ImageIndex = 0 ShortCut = 16472 end object EditCopy1: TEditCopy Category = 'Edit' Caption = '&Copy' Hint = 'Copy|Copies the selection and puts it on the Clipboard' ImageIndex = 1 ShortCut = 16451 end object EditPaste1: TEditPaste Category = 'Edit' Caption = '&Paste' Hint = 'Paste|Inserts Clipboard contents' ImageIndex = 2 ShortCut = 16470 end object EditSelectAll1: TEditSelectAll Category = 'Edit' Caption = 'Select &All' Hint = 'Select All|Selects the entire document' ShortCut = 16449 end object EditUndo1: TEditUndo Category = 'Edit' Caption = '&Undo' Hint = 'Undo|Reverts the last action' ImageIndex = 3 ShortCut = 16474 end object EditDelete1: TEditDelete Category = 'Edit' Caption = '&Delete' Hint = 'Delete|Erases the selection' ImageIndex = 4 ShortCut = 46 end object RichEditBold1: TRichEditBold Category = 'Format' AutoCheck = True Caption = '&Bold' Hint = 'Bold' ImageIndex = 5 ShortCut = 16450 end object RichEditItalic1: TRichEditItalic Category = 'Format' AutoCheck = True Caption = '&Italic' Hint = 'Italic' ImageIndex = 6 ShortCut = 16457 end object RichEditUnderline1: TRichEditUnderline Category = 'Format' AutoCheck = True Caption = '&Underline' Hint = 'Underline' ImageIndex = 7 ShortCut = 16469 end object RichEditStrikeOut1: TRichEditStrikeOut Category = 'Format' AutoCheck = True Caption = '&Strikeout' Hint = 'Strikeout' end object RichEditBullets1: TRichEditBullets Category = 'Format' AutoCheck = True Caption = '&Bullets' Hint = 'Bullets|Inserts a bullet on the current line' ImageIndex = 8 end object RichEditAlignLeft1: TRichEditAlignLeft Category = 'Format' AutoCheck = True Caption = 'Align &Left' Hint = 'Align Left|Aligns text at the left indent' ImageIndex = 9 end object RichEditAlignRight1: TRichEditAlignRight Category = 'Format' AutoCheck = True Caption = 'Align &Right' Hint = 'Align Right|Aligns text at the right indent' ImageIndex = 10 end object RichEditAlignCenter1: TRichEditAlignCenter Category = 'Format' AutoCheck = True Caption = '&Center' Hint = 'Center|Centers text between margins' ImageIndex = 11 end object FileOpen1: TFileOpen Category = 'File' Caption = '&Open...' Hint = 'Open|Opens an existing file' ImageIndex = 12 ShortCut = 16463 end object FileSaveAs1: TFileSaveAs Category = 'File' Caption = 'Save &As...' Hint = 'Save As|Saves the active file with a new name' ImageIndex = 13 end object FilePrintSetup1: TFilePrintSetup Category = 'File' Caption = 'Print Set&up...' Hint = 'Print Setup' end object FileRun1: TFileRun Category = 'File' Browse = False BrowseDlg.Title = 'Run' Caption = '&Run...' Hint = 'Run|Runs an application' Operation = 'open' ShowCmd = scShowNormal end object FileExit1: TFileExit Category = 'File' Caption = 'E&xit' Hint = 'Exit|Quits the application' ImageIndex = 14 end object SearchFind1: TSearchFind Category = 'Search' Caption = '&Find...' Hint = 'Find|Finds the specified text' ImageIndex = 15 ShortCut = 16454 end object SearchFindNext1: TSearchFindNext Category = 'Search' Caption = 'Find &Next' Enabled = False Hint = 'Find Next|Repeats the last find' ImageIndex = 16 ShortCut = 114 end object SearchReplace1: TSearchReplace Category = 'Search' Caption = '&Replace' Hint = 'Replace|Replaces specific text with different text' ImageIndex = 17 end object SearchFindFirst1: TSearchFindFirst Category = 'Search' Caption = 'F&ind First' Hint = 'Find First|Finds the first occurance of specified text' end object CustomizeActionBars1: TCustomizeActionBars Category = 'Tools' Caption = '&Customize' CustomizeDlg.StayOnTop = False end object HelpContents1: THelpContents Category = 'Help' Caption = '&Contents' Enabled = False Hint = 'Help Contents' ImageIndex = 18 end object ActionShowStatus: TAction Category = 'Tools' Caption = 'ShowStatus' OnExecute = ActionShowStatusExecute end end object ImageList1: TImageList Left = 168 Top = 136 Bitmap = { 494C010113001400040010001000FFFFFFFFFF10FFFFFFFFFFFFFFFF424D3600 0000000000003600000028000000400000005000000001001000000000000028 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 1040104010420000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000010401040 FF7FFF7F18631042000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000010401040FF7FFF7F 0000000018631863104200000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000104210401040FF7FFF7F00000000 1040104000001863186310420000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000001863000000000000 0000000000000000186300000000000000000000000000000000000000000000 00000000000000000000000000000000000010421040FF7F0000000010401040 1040104010400000186318631042000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000010420000 0000000010420000000000000000000000000000000000001863000000000000 0000000000000000186300000000000000001042000000001040104010400042 E07F104010401040000018631863104200000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000010420000 0000000010420000000000000000000000001042104010401040104010401040 0042104010401040104000001863000000000000000000000000000000000000 0000000000000000000000000000000000000000000000001863000000000000 0000186300000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000001040FF7F1040104010401040 1040E07FE07F1040104010400000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000001863000000000000 0000186300000000000000000000000000000000000000001863000000000000 000018630000000000000000000000000000000000001040FF7F104010401040 104010400042E07FE07F10401040000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000001863000000000000 0000186300000000000000000000000000000000000000001040FF7F10401040 104000421040E07FE07F10401040104000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 1042000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000001040FF7F1040 1040E07FE07FE07F104010401040000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 104200000000000000000000000000000000000000000000000000001040FF7F 1040104010401040104000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000001040 FF7F104010400000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 1040104000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000001042104210421042104210421042 104210421042FF7F186310421863FF7F18630000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000001042104210421042104210421042 1042104210421042FF7F1042FF7F104210420000000000000000000000000000 0000000000000000000000000000000000000000000000420042000000000000 0000000000000000000000000042000000000000000000000000000000000000 0000000000000000000000000000000000001000100010001000000000001042 10421042FF7FFF7FFF7F10001000100010000000000000000000000000000000 0000000000000000000000000000000000000000000000420042000000000000 0000000000000000000000000042000000000000000000000000004200420000 00000000000018630000004200000000000000000000000010001F0010000000 00001042FF7FFF7FFF7F10000000000000000000FF7F00000000000000000000 0000000000000000FF7F00000000000000000000000000420042000000000000 0000000000000000000000000042000000000000000000000000004200420000 000000000000186300000042000000000000000000000000100010001F001000 0000FF7FFF7FFF7FFF7F10000000000000000000FF7F00000000000000000000 0000000000000000FF7F00000000000000000000000000420042000000000000 0000000000000000000000000042000000000000000000000000004200420000 00000000000000000000004200000000000000000000000010001F0010001F00 0000FF7FFF7FFF7FFF7F10000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000420042004200420042 0042004200420042004200420042000000000000000000000000004200420042 004200420042004200420042000000000000000000000000100010001F001000 0000FF7FFF03FF7FFF03100000000000000000000000FF7F0000000000000000 00000000FF7F0000000000000000000000000000000000420042000000000000 0000000000000000000000420042000000000000000000000000004200420000 00000000000000000042004200000000000000000000000010001F0010001F00 0000FF03FF7FFF03FF7F100000000000000000000000FF7F0000000000001863 00000000FF7F0000000000000000000000000000000000420000000000000000 0000000000000000000000000042000000000000000000000000004200001863 186318631863186300000042000000000000000000000000100010001F001000 0000FF7FFF03FF7FFF03100000000000000000000000FF7F0000000000001863 00000000FF7F0000000000000000000000000000000000420000000000000000 0000000000000000000000000042000000000000000000000000004200001863 18631863186318630000004200000000000000000000000010001F0010001F00 0000FF03FF7FFF03FF7F10000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000420000000000000000 0000000000000000000000000042000000000000000000000000004200001863 1863186318631863000000000000000000000000000000001000100010001000 100010001000100010001000000000000000000000000000FF7F000000000000 00000000FF7F0000000000000000000000000000000000420000000000000000 0000000000000000000000000042000000000000000000000000004200001863 1863186318631863000018630000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000420000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000420000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000002 0002000200020000000000000000000000000000000000000000FF7F00000000 000000000000FF7F000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000100010001000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000100010001000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000100010001000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000100010001000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000100010001000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000100010001000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000100010001000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000100010001000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000100010001000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000010001000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000001000 1000100010001000100010001000100010000000000000000000000000000000 0000000000000000000000000000000000000000000000000000100000000000 1000000000001000100000000000000000000000000000000000000000000000 1000100010001000100010001000100010000000000000000000000000001000 FF7FFF7FFF7FFF7FFF7FFF7FFF7FFF7F10000000000000000000000000000000 0000000000000000000000000000000000000000000000000000100000000000 1000000010000000000010000000000000000000000000000000000000000000 1000FF7FFF7FFF7FFF7FFF7FFF7FFF7F10000000104200421042004210421000 FF7F000000000000000000000000FF7F10000000000000000000000000000000 0000000000000000000000000000000000000000000000000000100000000000 1000000010000000000010000000000000000000000000000000000000000000 1000FF7F00000000000000000000FF7F10000000004210420042104200421000 FF7FFF7FFF7FFF7FFF7FFF7FFF7FFF7F10000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000010001000 1000000010000000000010000000000000000000000000000000000000000000 1000FF7FFF7FFF7FFF7FFF7FFF7FFF7F10000000104200421042004210421000 FF7F000000000000FF7F10001000100010000000000000000000000000000000 0000000000000000000010000000000000000000000000000000000000000000 10000000100010001000000000000000000000000000FF7FFF7FFF7FFF7FFF7F 1000FF7F00000000000000000000FF7F10000000004210420042104200421000 FF7FFF7FFF7FFF7FFF7F1000FF7F100000000000000010001000100010001000 0000000000000000000010000000000000000000000000000000000000000000 10000000100000000000000000000000000000000000FF7F0000000000000000 1000FF7FFF7FFF7FFF7FFF7FFF7FFF7F10000000104200421042004210421000 FF7FFF7FFF7FFF7FFF7F10001000000000000000000010001000100010000000 0000000000000000000000001000000000000000000000000000000000000000 00000000000000000000000000000000000000000000FF7FFF7FFF7FFF7FFF7F 1000FF7F00000000FF7F10001000100010000000004210420042104200421000 1000100010001000100010000000000000000000000010001000100000000000 0000000000000000000000001000000000000000000000000000000000000000 00000000000000000000000000000000000000000000FF7F0000000000000000 1000FF7FFF7FFF7FFF7F1000FF7F100000000000104200421042004210420042 1042004210420042104200420000000000000000000010001000000010000000 0000000000000000000000001000000000000000000000000000000000000000 00000000000000000000000000000000000000000000FF7FFF7FFF7FFF7FFF7F 1000FF7FFF7FFF7FFF7F10001000000000000000004210420000000000000000 0000000000000000104210420000000000000000000010000000000000001000 1000000000000000000010000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000FF7F00000000FF7F0000 1000100010001000100010000000000000000000104210420000000000000000 0000000000000000104200420000000000000000000000000000000000000000 0000100010001000100000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000FF7FFF7FFF7FFF7F0000 FF7F0000000000000000000000000000000000000042104200420000E07F0000 0000E07F00001042004210420000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000FF7FFF7FFF7FFF7F0000 000000000000000000000000000000000000000000000000000000000000E07F E07F000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000424D3E000000000000003E000000 2800000040000000500000000100010000000000800200000000000000000000 000000000000000000000000FFFFFF00FFFFB6E7FFFF0000FE49B76BFE3F0000 FE498427F81F0000FFFFB76BE00F0000FFFFCEE780070000C7C7FFFF00030000 C7C7C7C700010000C387C7C700000000C007C38700010000C007C00780010000 C007C007C0010000C007C007E0000000C007C007F0000000F39FC007F8030000 F39FF39FFC0F0000F39FF39FFE3F0000FFFFFF7E0000FFFFC001BFFF0000FFFF 8031F003000007C18031E003E00707C18031E003E00707C18001E003E0070101 8001E003E007000180012003E00700018FF1E002E00700018FF1E003E0078003 8FF1E003E007C1078FF1E003FFFFC1078FF1E003F81FE38F8FF5FFFFF81FE38F 8001BF7DF81FE38FFFFF7F7EFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 8FFFFFFFFFFFFFFF8C03C007C007C0078FFFFFFFFFFFFFFFFFFFC03FF807F83F FFFFFFFFFFFFFFFF8FFFC007C007C0078C03FFFFFFFFFFFF8FFFC03FF807F01F FFFFFFFFFFFFFFFFFFFFC007C007C0078FFFFFFFFFFFFFFF8C03C03FF807F83F 8FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF EFFDFFFFFFFFE00FC7FFFFFFFFFFFFFFC3FBF00F81FFF83FE3F7F8C7E3FFF39F F1E7F8C7F1FFF39FF8CFF8C7F8FFF39FFC1FF80FFC7FF39FFE3FF8C7FE3FF39F FC1FF8C7FF1FF39FF8CFF8C7FF8FF39FE1E7F00FFF03E10FC3F3FFFFFFFFFFFF C7FDFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9FFFFFFFC00FFFF F6CFFE008000FFFFF6B7FE000000FFFFF6B7FE000000FFFFF8B780000000FFF7 FE8F80000001C1F7FE3F80000003C3FBFF7F80000003C7FBFE3F80010003CBFB FEBF80030003DCF7FC9F80070FC3FF0FFDDF807F0003FFFFFDDF80FF8007FFFF FDDF81FFF87FFFFFFFFFFFFFFFFFFFFF00000000000000000000000000000000 000000000000} end end pyparsing-2.2.0+dfsg1/examples/btpyparse.py0000644000175000017500000001045313056136061017436 0ustar zigozigo""" Pyparsing parser for BibTeX files A standalone parser using pyparsing. pyparsing has a simple and expressive syntax so the grammar is easy to read and write. Submitted by Matthew Brett, 2010 Simplified BSD license """ from pyparsing import (Regex, Suppress, ZeroOrMore, Group, Optional, Forward, SkipTo, CaselessLiteral, Dict) class Macro(object): """ Class to encapsulate undefined macro references """ def __init__(self, name): self.name = name def __repr__(self): return 'Macro("%s")' % self.name def __eq__(self, other): return self.name == other.name def __ne__(self, other): return self.name != other.name # Character literals LCURLY,RCURLY,LPAREN,RPAREN,QUOTE,COMMA,AT,EQUALS,HASH = map(Suppress,'{}()",@=#') def bracketed(expr): """ Return matcher for `expr` between curly brackets or parentheses """ return (LPAREN + expr + RPAREN) | (LCURLY + expr + RCURLY) # Define parser components for strings (the hard bit) chars_no_curly = Regex(r"[^{}]+") chars_no_curly.leaveWhitespace() chars_no_quotecurly = Regex(r'[^"{}]+') chars_no_quotecurly.leaveWhitespace() # Curly string is some stuff without curlies, or nested curly sequences curly_string = Forward() curly_item = Group(curly_string) | chars_no_curly curly_string << LCURLY + ZeroOrMore(curly_item) + RCURLY # quoted string is either just stuff within quotes, or stuff within quotes, within # which there is nested curliness quoted_item = Group(curly_string) | chars_no_quotecurly quoted_string = QUOTE + ZeroOrMore(quoted_item) + QUOTE # Numbers can just be numbers. Only integers though. number = Regex('[0-9]+') # Basis characters (by exclusion) for variable / field names. The following # list of characters is from the btparse documentation any_name = Regex('[^\\s"#%\'(),={}]+') # btparse says, and the test bibs show by experiment, that macro and field names # cannot start with a digit. In fact entry type names cannot start with a digit # either (see tests/bibs). Cite keys can start with a digit not_digname = Regex('[^\\d\\s"#%\'(),={}][^\\s"#%\'(),={}]*') # Comment comments out to end of line comment = (AT + CaselessLiteral('comment') + Regex(r"[\s{(].*").leaveWhitespace()) # The name types with their digiteyness not_dig_lower = not_digname.copy().setParseAction(lambda t: t[0].lower()) macro_def = not_dig_lower.copy() macro_ref = not_dig_lower.copy().setParseAction(lambda t : Macro(t[0].lower())) field_name = not_dig_lower.copy() # Spaces in names mean they cannot clash with field names entry_type = not_dig_lower('entry_type') cite_key = any_name('cite_key') # Number has to be before macro name string = (number | macro_ref | quoted_string | curly_string) # There can be hash concatenation field_value = string + ZeroOrMore(HASH + string) field_def = Group(field_name + EQUALS + field_value) entry_contents = Dict(ZeroOrMore(field_def + COMMA) + Optional(field_def)) # Entry is surrounded either by parentheses or curlies entry = (AT + entry_type + bracketed(cite_key + COMMA + entry_contents)) # Preamble is a macro-like thing with no name preamble = AT + CaselessLiteral('preamble') + bracketed(field_value) # Macros (aka strings) macro_contents = macro_def + EQUALS + field_value macro = AT + CaselessLiteral('string') + bracketed(macro_contents) # Implicit comments icomment = SkipTo('@').setParseAction(lambda t : t.insert(0, 'icomment')) # entries are last in the list (other than the fallback) because they have # arbitrary start patterns that would match comments, preamble or macro definitions = Group(comment | preamble | macro | entry | icomment) # Start symbol bibfile = ZeroOrMore(definitions) def parse_str(str): return bibfile.parseString(str) if __name__ == '__main__': # Run basic test txt = """ Some introductory text (implicit comment) @ARTICLE{Authors2011, author = {First Author and Second Author and Third Author}, title = {An article about {S}omething}, journal = "Journal of Articles", year = {2011}, volume = {16}, pages = {1140--1141}, number = {2} } """ print('\n\n'.join(defn.dump() for defn in parse_str(txt))) pyparsing-2.2.0+dfsg1/examples/eval_arith.py0000644000175000017500000001565212655554570017566 0ustar zigozigo# eval_arith.py # # Copyright 2009, 2011 Paul McGuire # # Expansion on the pyparsing example simpleArith.py, to include evaluation # of the parsed tokens. # # Added support for exponentiation, using right-to-left evaluation of # operands # from pyparsing import Word, nums, alphas, Combine, oneOf, \ opAssoc, infixNotation, Literal class EvalConstant(object): "Class to evaluate a parsed constant or variable" vars_ = {} def __init__(self, tokens): self.value = tokens[0] def eval(self): if self.value in EvalConstant.vars_: return EvalConstant.vars_[self.value] else: return float(self.value) class EvalSignOp(object): "Class to evaluate expressions with a leading + or - sign" def __init__(self, tokens): self.sign, self.value = tokens[0] def eval(self): mult = {'+':1, '-':-1}[self.sign] return mult * self.value.eval() def operatorOperands(tokenlist): "generator to extract operators and operands in pairs" it = iter(tokenlist) while 1: try: yield (next(it), next(it)) except StopIteration: break class EvalPowerOp(object): "Class to evaluate multiplication and division expressions" def __init__(self, tokens): self.value = tokens[0] def eval(self): res = self.value[-1].eval() for val in self.value[-3::-2]: res = val.eval()**res return res class EvalMultOp(object): "Class to evaluate multiplication and division expressions" def __init__(self, tokens): self.value = tokens[0] def eval(self): prod = self.value[0].eval() for op,val in operatorOperands(self.value[1:]): if op == '*': prod *= val.eval() if op == '/': prod /= val.eval() return prod class EvalAddOp(object): "Class to evaluate addition and subtraction expressions" def __init__(self, tokens): self.value = tokens[0] def eval(self): sum = self.value[0].eval() for op,val in operatorOperands(self.value[1:]): if op == '+': sum += val.eval() if op == '-': sum -= val.eval() return sum class EvalComparisonOp(object): "Class to evaluate comparison expressions" opMap = { "<" : lambda a,b : a < b, "<=" : lambda a,b : a <= b, ">" : lambda a,b : a > b, ">=" : lambda a,b : a >= b, "!=" : lambda a,b : a != b, "=" : lambda a,b : a == b, "LT" : lambda a,b : a < b, "LE" : lambda a,b : a <= b, "GT" : lambda a,b : a > b, "GE" : lambda a,b : a >= b, "NE" : lambda a,b : a != b, "EQ" : lambda a,b : a == b, "<>" : lambda a,b : a != b, } def __init__(self, tokens): self.value = tokens[0] def eval(self): val1 = self.value[0].eval() for op,val in operatorOperands(self.value[1:]): fn = EvalComparisonOp.opMap[op] val2 = val.eval() if not fn(val1,val2): break val1 = val2 else: return True return False # define the parser integer = Word(nums) real = Combine(Word(nums) + "." + Word(nums)) variable = Word(alphas,exact=1) operand = real | integer | variable signop = oneOf('+ -') multop = oneOf('* /') plusop = oneOf('+ -') expop = Literal('**') # use parse actions to attach EvalXXX constructors to sub-expressions operand.setParseAction(EvalConstant) arith_expr = infixNotation(operand, [ (signop, 1, opAssoc.RIGHT, EvalSignOp), (expop, 2, opAssoc.LEFT, EvalPowerOp), (multop, 2, opAssoc.LEFT, EvalMultOp), (plusop, 2, opAssoc.LEFT, EvalAddOp), ]) comparisonop = oneOf("< <= > >= != = <> LT GT LE GE EQ NE") comp_expr = infixNotation(arith_expr, [ (comparisonop, 2, opAssoc.LEFT, EvalComparisonOp), ]) def main(): # sample expressions posted on comp.lang.python, asking for advice # in safely evaluating them rules=[ '( A - B ) = 0', '(A + B + C + D + E + F + G + H + I) = J', '(A + B + C + D + E + F + G + H) = I', '(A + B + C + D + E + F) = G', '(A + B + C + D + E) = (F + G + H + I + J)', '(A + B + C + D + E) = (F + G + H + I)', '(A + B + C + D + E) = F', '(A + B + C + D) = (E + F + G + H)', '(A + B + C) = (D + E + F)', '(A + B) = (C + D + E + F)', '(A + B) = (C + D)', '(A + B) = (C - D + E - F - G + H + I + J)', '(A + B) = C', '(A + B) = 0', '(A+B+C+D+E) = (F+G+H+I+J)', '(A+B+C+D) = (E+F+G+H)', '(A+B+C+D)=(E+F+G+H)', '(A+B+C)=(D+E+F)', '(A+B)=(C+D)', '(A+B)=C', '(A-B)=C', '(A/(B+C))', '(B/(C+D))', '(G + H) = I', '-0.99 LE ((A+B+C)-(D+E+F+G)) LE 0.99', '-0.99 LE (A-(B+C)) LE 0.99', '-1000.00 LE A LE 0.00', '-5000.00 LE A LE 0.00', 'A < B', 'A < 7000', 'A = -(B)', 'A = C', 'A = 0', 'A GT 0', 'A GT 0.00', 'A GT 7.00', 'A LE B', 'A LT -1000.00', 'A LT -5000', 'A LT 0', 'A=(B+C+D)', 'A=B', 'I = (G + H)', '0.00 LE A LE 4.00', '4.00 LT A LE 7.00', '0.00 LE A LE 4.00 LE E > D', '2**2**(A+3)', ] vars_={'A': 0, 'B': 1.1, 'C': 2.2, 'D': 3.3, 'E': 4.4, 'F': 5.5, 'G': 6.6, 'H':7.7, 'I':8.8, 'J':9.9} # define tests from given rules tests = [] for t in rules: t_orig = t t = t.replace("=","==") t = t.replace("EQ","==") t = t.replace("LE","<=") t = t.replace("GT",">") t = t.replace("LT","<") t = t.replace("GE",">=") t = t.replace("LE","<=") t = t.replace("NE","!=") t = t.replace("<>","!=") tests.append( (t_orig,eval(t,vars_)) ) # copy vars_ to EvalConstant lookup dict EvalConstant.vars_ = vars_ failed = 0 for test,expected in tests: ret = comp_expr.parseString(test)[0] parsedvalue = ret.eval() print(test, expected, parsedvalue) if parsedvalue != expected: print("<<< FAIL") failed += 1 else: print('') print('') if failed: print(failed, "tests FAILED") else: print("all tests PASSED") if __name__=='__main__': main() pyparsing-2.2.0+dfsg1/examples/stackish.py0000644000175000017500000000567012466013312017240 0ustar zigozigo# stackish.py # # Stackish is a data representation syntax, similar to JSON or YAML. For more info on # stackish, see http://www.savingtheinternetwithhate.com/stackish.html # # Copyright 2008, Paul McGuire # """ NUMBER A simple integer type that's just any series of digits. FLOAT A simple floating point type. STRING A string is double quotes with anything inside that's not a " or newline character. You can include \n and \" to include these characters. MARK Marks a point in the stack that demarcates the boundary for a nested group. WORD Marks the root node of a group, with the other end being the nearest MARK. GROUP Acts as the root node of an anonymous group. ATTRIBUTE Assigns an attribute name to the previously processed node. This means that just about anything can be an attribute, unlike in XML. BLOB A BLOB is unique to Stackish and allows you to record any content (even binary content) inside the structure. This is done by pre- sizing the data with the NUMBER similar to Dan Bernstein's netstrings setup. SPACE White space is basically ignored. This is interesting because since Stackish is serialized consistently this means you can use \n as the separation character and perform reasonable diffs on two structures. """ from pyparsing import Suppress,Word,nums,alphas,alphanums,Combine,oneOf,\ Optional,QuotedString,Forward,Group,ZeroOrMore,printables,srange MARK,UNMARK,AT,COLON,QUOTE = map(Suppress,"[]@:'") NUMBER = Word(nums) NUMBER.setParseAction(lambda t:int(t[0])) FLOAT = Combine(oneOf("+ -") + Word(nums) + "." + Optional(Word(nums))) FLOAT.setParseAction(lambda t:float(t[0])) STRING = QuotedString('"', multiline=True) WORD = Word(alphas,alphanums+"_:") ATTRIBUTE = Combine(AT + WORD) strBody = Forward() def setBodyLength(tokens): strBody << Word(srange(r'[\0x00-\0xffff]'), exact=int(tokens[0])) return "" BLOB = Combine(QUOTE + Word(nums).setParseAction(setBodyLength) + COLON + strBody + QUOTE) item = Forward() def assignUsing(s): def assignPA(tokens): if s in tokens: tokens[tokens[s]] = tokens[0] del tokens[s] return assignPA GROUP = (MARK + Group( ZeroOrMore( (item + Optional(ATTRIBUTE)("attr") ).setParseAction(assignUsing("attr")) ) ) + ( WORD("name") | UNMARK ) ).setParseAction(assignUsing("name")) item << (NUMBER | FLOAT | STRING | BLOB | GROUP ) tests = """\ [ '10:1234567890' @name 25 @age +0.45 @percentage person:zed [ [ "hello" 1 child root [ "child" [ 200 '4:like' "I" "hello" things root [ [ "data" [ 2 1 ] @numbers child root [ [ 1 2 3 ] @test 4 5 6 root """.splitlines() for test in tests: if test: print(test) print(item.parseString(test).dump()) print() pyparsing-2.2.0+dfsg1/examples/deltaTime.py0000644000175000017500000001623112751641125017340 0ustar zigozigo# deltaTime.py # # Parser to convert a conversational time reference such as "in a minute" or # "noon tomorrow" and convert it to a Python datetime. The returned # ParseResults object contains the results name "timeOffset" containing # the timedelta, and "calculatedTime" containing the computed time relative # to datetime.now(). # # Copyright 2010, by Paul McGuire # from datetime import datetime, timedelta from pyparsing import * import calendar __all__ = ["nlTimeExpression"] # string conversion parse actions def convertToTimedelta(toks): unit = toks.timeunit.lower().rstrip("s") td = { 'week' : timedelta(7), 'day' : timedelta(1), 'hour' : timedelta(0,0,0,0,0,1), 'minute' : timedelta(0,0,0,0,1), 'second' : timedelta(0,1), }[unit] if toks.qty: td *= int(toks.qty) if toks.dir: td *= toks.dir toks["timeOffset"] = td def convertToDay(toks): now = datetime.now() if "wkdayRef" in toks: todaynum = now.weekday() daynames = [n.lower() for n in calendar.day_name] nameddaynum = daynames.index(toks.wkdayRef.day.lower()) if toks.wkdayRef.dir > 0: daydiff = (nameddaynum + 7 - todaynum) % 7 else: daydiff = -((todaynum + 7 - nameddaynum) % 7) toks["absTime"] = datetime(now.year, now.month, now.day)+timedelta(daydiff) else: name = toks.name.lower() toks["absTime"] = { "now" : now, "today" : datetime(now.year, now.month, now.day), "yesterday" : datetime(now.year, now.month, now.day)+timedelta(-1), "tomorrow" : datetime(now.year, now.month, now.day)+timedelta(+1), }[name] def convertToAbsTime(toks): now = datetime.now() if "dayRef" in toks: day = toks.dayRef.absTime day = datetime(day.year, day.month, day.day) else: day = datetime(now.year, now.month, now.day) if "timeOfDay" in toks: if isinstance(toks.timeOfDay,str): timeOfDay = { "now" : timedelta(0, (now.hour*60+now.minute)*60+now.second, now.microsecond), "noon" : timedelta(0,0,0,0,0,12), "midnight" : timedelta(), }[toks.timeOfDay] else: hhmmss = toks.timeparts if hhmmss.miltime: hh,mm = hhmmss.miltime ss = 0 else: hh,mm,ss = (hhmmss.HH % 12), hhmmss.MM, hhmmss.SS if not mm: mm = 0 if not ss: ss = 0 if toks.timeOfDay.ampm == 'pm': hh += 12 timeOfDay = timedelta(0, (hh*60+mm)*60+ss, 0) else: timeOfDay = timedelta(0, (now.hour*60+now.minute)*60+now.second, now.microsecond) toks["absTime"] = day + timeOfDay def calculateTime(toks): if toks.absTime: absTime = toks.absTime else: absTime = datetime.now() if toks.timeOffset: absTime += toks.timeOffset toks["calculatedTime"] = absTime # grammar definitions CL = CaselessLiteral today, tomorrow, yesterday, noon, midnight, now = map( CL, "today tomorrow yesterday noon midnight now".split()) plural = lambda s : Combine(CL(s) + Optional(CL("s"))) week, day, hour, minute, second = map( plural, "week day hour minute second".split()) am = CL("am") pm = CL("pm") COLON = Suppress(':') # are these actually operators? in_ = CL("in").setParseAction(replaceWith(1)) from_ = CL("from").setParseAction(replaceWith(1)) before = CL("before").setParseAction(replaceWith(-1)) after = CL("after").setParseAction(replaceWith(1)) ago = CL("ago").setParseAction(replaceWith(-1)) next_ = CL("next").setParseAction(replaceWith(1)) last_ = CL("last").setParseAction(replaceWith(-1)) at_ = CL("at") on_ = CL("on") couple = (Optional(CL("a")) + CL("couple") + Optional(CL("of"))).setParseAction(replaceWith(2)) a_qty = CL("a").setParseAction(replaceWith(1)) integer = Word(nums).setParseAction(lambda t:int(t[0])) int4 = Group(Word(nums,exact=4).setParseAction(lambda t: [int(t[0][:2]),int(t[0][2:])] )) def fill_timefields(t): t[0]['HH'] = t[0][0] t[0]['MM'] = t[0][1] t[0]['ampm'] = ('am','pm')[t[0].HH >= 12] int4.addParseAction(fill_timefields) qty = integer | couple | a_qty dayName = oneOf( list(calendar.day_name) ) dayOffset = (qty("qty") + (week | day)("timeunit")) dayFwdBack = (from_ + now.suppress() | ago)("dir") weekdayRef = (Optional(next_ | last_,1)("dir") + dayName("day")) dayRef = Optional( (dayOffset + (before | after | from_)("dir") ).setParseAction(convertToTimedelta) ) + \ ((yesterday | today | tomorrow)("name")| weekdayRef("wkdayRef")).setParseAction(convertToDay) todayRef = (dayOffset + dayFwdBack).setParseAction(convertToTimedelta) | \ (in_("dir") + qty("qty") + day("timeunit")).setParseAction(convertToTimedelta) dayTimeSpec = dayRef | todayRef dayTimeSpec.setParseAction(calculateTime) relativeTimeUnit = (week | day | hour | minute | second) timespec = Group(ungroup(int4) | integer("HH") + ungroup(Optional(COLON + integer,[0]))("MM") + ungroup(Optional(COLON + integer,[0]))("SS") + (am | pm)("ampm") ) absTimeSpec = ((noon | midnight | now | timespec("timeparts"))("timeOfDay") + Optional(on_) + Optional(dayRef)("dayRef") | dayRef("dayRef") + at_ + (noon | midnight | now | timespec("timeparts"))("timeOfDay")) absTimeSpec.setParseAction(convertToAbsTime,calculateTime) relTimeSpec = qty("qty") + relativeTimeUnit("timeunit") + \ (from_ | before | after)("dir") + \ Optional(at_) + \ absTimeSpec("absTime") | \ qty("qty") + relativeTimeUnit("timeunit") + ago("dir") | \ in_ + qty("qty") + relativeTimeUnit("timeunit") relTimeSpec.setParseAction(convertToTimedelta,calculateTime) nlTimeExpression = (absTimeSpec + Optional(dayTimeSpec) | dayTimeSpec + Optional(Optional(at_) + absTimeSpec) | relTimeSpec + Optional(absTimeSpec)) if __name__ == "__main__": # test grammar tests = """\ today tomorrow yesterday in a couple of days a couple of days from now a couple of days from today in a day 3 days ago 3 days from now a day ago in 2 weeks in 3 days at 5pm now 10 minutes ago 10 minutes from now in 10 minutes in a minute in a couple of minutes 20 seconds ago in 30 seconds 20 seconds before noon 20 seconds before noon tomorrow noon midnight noon tomorrow 6am tomorrow 0800 yesterday 12:15 AM today 3pm 2 days from today a week from today a week from now 3 weeks ago noon next Sunday noon Sunday noon last Sunday 2pm next Sunday next Sunday at 2pm""" print("(relative to %s)" % datetime.now()) nlTimeExpression.runTests(tests) pyparsing-2.2.0+dfsg1/examples/simpleArith.py0000644000175000017500000000437412655554431017724 0ustar zigozigo# # simpleArith.py # # Example of defining an arithmetic expression parser using # the infixNotation helper method in pyparsing. # # Copyright 2006, by Paul McGuire # from pyparsing import * integer = Word(nums).setParseAction(lambda t:int(t[0])) variable = Word(alphas,exact=1) operand = integer | variable expop = Literal('^') signop = oneOf('+ -') multop = oneOf('* /') plusop = oneOf('+ -') factop = Literal('!') # To use the infixNotation helper: # 1. Define the "atom" operand term of the grammar. # For this simple grammar, the smallest operand is either # and integer or a variable. This will be the first argument # to the infixNotation method. # 2. Define a list of tuples for each level of operator # precendence. Each tuple is of the form # (opExpr, numTerms, rightLeftAssoc, parseAction), where # - opExpr is the pyparsing expression for the operator; # may also be a string, which will be converted to a Literal # - numTerms is the number of terms for this operator (must # be 1 or 2) # - rightLeftAssoc is the indicator whether the operator is # right or left associative, using the pyparsing-defined # constants opAssoc.RIGHT and opAssoc.LEFT. # - parseAction is the parse action to be associated with # expressions matching this operator expression (the # parse action tuple member may be omitted) # 3. Call infixNotation passing the operand expression and # the operator precedence list, and save the returned value # as the generated pyparsing expression. You can then use # this expression to parse input strings, or incorporate it # into a larger, more complex grammar. # expr = infixNotation( operand, [("!", 1, opAssoc.LEFT), ("^", 2, opAssoc.RIGHT), (signop, 1, opAssoc.RIGHT), (multop, 2, opAssoc.LEFT), (plusop, 2, opAssoc.LEFT),] ) test = ["9 + 2 + 3", "9 + 2 * 3", "(9 + 2) * 3", "(9 + -2) * 3", "(9 + -2) * 3^2^2", "(9! + -2) * 3^2^2", "M*X + B", "M*(X + B)", "1+2*-3^4*5+-+-6",] for t in test: print(t) print(expr.parseString(t)) print('') pyparsing-2.2.0+dfsg1/examples/simpleWiki.py0000644000175000017500000000207212466013312017535 0ustar zigozigofrom pyparsing import * wikiInput = """ Here is a simple Wiki input: *This is in italics.* **This is in bold!** ***This is in bold italics!*** Here's a URL to {{Pyparsing's Wiki Page->http://pyparsing.wikispaces.com}} """ def convertToHTML(opening,closing): def conversionParseAction(s,l,t): return opening + t[0] + closing return conversionParseAction italicized = QuotedString("*").setParseAction(convertToHTML("","")) bolded = QuotedString("**").setParseAction(convertToHTML("","")) boldItalicized = QuotedString("***").setParseAction(convertToHTML("","")) def convertToHTML_A(s,l,t): try: text,url=t[0].split("->") except ValueError: raise ParseFatalException(s,l,"invalid URL link reference: " + t[0]) return '%s' % (url,text) urlRef = QuotedString("{{",endQuoteChar="}}").setParseAction(convertToHTML_A) wikiMarkup = urlRef | boldItalicized | bolded | italicized print(wikiInput) print() print(wikiMarkup.transformString(wikiInput)) pyparsing-2.2.0+dfsg1/examples/parseListString.py0000644000175000017500000000617712641067236020600 0ustar zigozigo# parseListString.py # # Copyright, 2006, by Paul McGuire # from pyparsing import * # first pass lbrack = Literal("[") rbrack = Literal("]") integer = Word(nums).setName("integer") real = Combine(Optional(oneOf("+ -")) + Word(nums) + "." + Optional(Word(nums))).setName("real") listItem = real | integer | quotedString listStr = lbrack + delimitedList(listItem) + rbrack test = "['a', 100, 3.14]" print(listStr.parseString(test)) # second pass, cleanup and add converters lbrack = Literal("[").suppress() rbrack = Literal("]").suppress() cvtInt = lambda s,l,toks: int(toks[0]) integer = Word(nums).setName("integer").setParseAction( cvtInt ) cvtReal = lambda s,l,toks: float(toks[0]) real = Regex(r'[+-]?\d+\.\d*').setName("floating-point number").setParseAction( cvtReal ) listItem = real | integer | quotedString.setParseAction( removeQuotes ) listStr = lbrack + delimitedList(listItem) + rbrack test = "['a', 100, 3.14]" print(listStr.parseString(test)) # third pass, add nested list support, and tuples, too! cvtInt = lambda s,l,toks: int(toks[0]) cvtReal = lambda s,l,toks: float(toks[0]) lbrack = Literal("[").suppress() rbrack = Literal("]").suppress() integer = Word(nums).setName("integer").setParseAction( cvtInt ) real = Regex(r'[+-]?\d+\.\d*').setName("floating-point number").setParseAction( cvtReal ) tupleStr = Forward() listStr = Forward() listItem = real | integer | quotedString.setParseAction(removeQuotes) | Group(listStr) | tupleStr tupleStr << ( Suppress("(") + delimitedList(listItem) + Optional(Suppress(",")) + Suppress(")") ) tupleStr.setParseAction( lambda t:tuple(t.asList()) ) listStr << lbrack + delimitedList(listItem) + Optional(Suppress(",")) + rbrack test = "['a', 100, ('A', [101,102]), 3.14, [ +2.718, 'xyzzy', -1.414] ]" print(listStr.parseString(test)) # fourth pass, add parsing of dicts cvtInt = lambda s,l,toks: int(toks[0]) cvtReal = lambda s,l,toks: float(toks[0]) cvtDict = lambda s,l,toks: dict(toks[0]) lbrack = Literal("[").suppress() rbrack = Literal("]").suppress() lbrace = Literal("{").suppress() rbrace = Literal("}").suppress() colon = Literal(":").suppress() integer = Word(nums).setName("integer").setParseAction( cvtInt ) real = Regex(r'[+-]?\d+\.\d*').setName("real").setParseAction( cvtReal ) tupleStr = Forward() listStr = Forward() dictStr = Forward() listItem = real | integer | quotedString.setParseAction(removeQuotes) | Group(listStr) | tupleStr | dictStr tupleStr <<= ( Suppress("(") + delimitedList(listItem) + Optional(Suppress(",")) + Suppress(")") ) tupleStr.setParseAction( lambda t:tuple(t.asList()) ) listStr <<= (lbrack + Optional(delimitedList(listItem)) + Optional(Suppress(",")) + rbrack) dictKeyStr = real | integer | quotedString.setParseAction(removeQuotes) dictStr <<= lbrace + Optional(delimitedList( Group( dictKeyStr + colon + listItem ))) + Optional(Suppress(",")) + rbrace dictStr.setParseAction(lambda t: dict((k_v[0],(k_v[1].asList() if isinstance(k_v[1],ParseResults) else k_v[1])) for k_v in t)) test = '[{0: [2], 1: []}, {0: [], 1: [], 2: [,]}, {0: [1, 2,],}]' print(listStr.parseString(test)) pyparsing-2.2.0+dfsg1/examples/sexpParser.py0000644000175000017500000001260012466013312017552 0ustar zigozigo# sexpParser.py # # Demonstration of the pyparsing module, implementing a simple S-expression # parser. # # Updates: # November, 2011 - fixed errors in precedence of alternatives in simpleString; # fixed exception raised in verifyLen to properly signal the input string # and exception location so that markInputline works correctly; fixed # definition of decimal to accept a single '0' and optional leading '-' # sign; updated tests to improve parser coverage # # Copyright 2007-2011, by Paul McGuire # """ BNF reference: http://theory.lcs.mit.edu/~rivest/sexp.txt :: | :: ? ; :: | | | | ; :: "[" "]" ; :: ":" ; :: + ; -- decimal numbers should have no unnecessary leading zeros -- any string of bytes, of the indicated length :: + ; :: ? "|" ( | )* "|" ; :: "#" ( | )* "#" ; :: ? :: "\"" "\"" :: "(" ( | )* ")" ; :: * ; :: | | ; :: | | ; :: "a" | ... | "z" ; :: "A" | ... | "Z" ; :: "0" | ... | "9" ; :: | "A" | ... | "F" | "a" | ... | "f" ; :: "-" | "." | "/" | "_" | ":" | "*" | "+" | "=" ; :: " " | "\t" | "\r" | "\n" ; :: | | "+" | "/" | "=" ; :: "" ; """ from pyparsing import * from base64 import b64decode import pprint def verifyLen(s,l,t): t = t[0] if t.len is not None: t1len = len(t[1]) if t1len != t.len: raise ParseFatalException(s,l,\ "invalid data of length %d, expected %s" % (t1len, t.len)) return t[1] # define punctuation literals LPAR, RPAR, LBRK, RBRK, LBRC, RBRC, VBAR = map(Suppress, "()[]{}|") decimal = Regex(r'0|[1-9]\d*').setParseAction(lambda t: int(t[0])) hexadecimal = ("#" + OneOrMore(Word(hexnums)) + "#")\ .setParseAction(lambda t: int("".join(t[1:-1]),16)) bytes = Word(printables) raw = Group(decimal("len") + Suppress(":") + bytes).setParseAction(verifyLen) token = Word(alphanums + "-./_:*+=") base64_ = Group(Optional(decimal|hexadecimal,default=None)("len") + VBAR + OneOrMore(Word( alphanums +"+/=" )).setParseAction(lambda t: b64decode("".join(t))) + VBAR).setParseAction(verifyLen) qString = Group(Optional(decimal,default=None)("len") + dblQuotedString.setParseAction(removeQuotes)).setParseAction(verifyLen) simpleString = base64_ | raw | decimal | token | hexadecimal | qString # extended definitions decimal = Regex(r'-?0|[1-9]\d*').setParseAction(lambda t: int(t[0])) real = Regex(r"[+-]?\d+\.\d*([eE][+-]?\d+)?").setParseAction(lambda tokens: float(tokens[0])) token = Word(alphanums + "-./_:*+=!<>") simpleString = real | base64_ | raw | decimal | token | hexadecimal | qString display = LBRK + simpleString + RBRK string_ = Optional(display) + simpleString sexp = Forward() sexpList = Group(LPAR + ZeroOrMore(sexp) + RPAR) sexp << ( string_ | sexpList ) ######### Test data ########### test00 = """(snicker "abc" (#03# |YWJj|))""" test01 = """(certificate (issuer (name (public-key rsa-with-md5 (e 15 |NFGq/E3wh9f4rJIQVXhS|) (n |d738/4ghP9rFZ0gAIYZ5q9y6iskDJwASi5rEQpEQq8ZyMZeIZzIAR2I5iGE=|)) aid-committee)) (subject (ref (public-key rsa-with-md5 (e |NFGq/E3wh9f4rJIQVXhS|) (n |d738/4ghP9rFZ0gAIYZ5q9y6iskDJwASi5rEQpEQq8ZyMZeIZzIAR2I5iGE=|)) tom mother)) (not-before "1997-01-01_09:00:00") (not-after "1998-01-01_09:00:00") (tag (spend (account "12345678") (* numeric range "1" "1000")))) """ test02 = """(lambda (x) (* x x))""" test03 = """(def length (lambda (x) (cond ((not x) 0) ( t (+ 1 (length (cdr x)))) ) ) ) """ test04 = """(2:XX "abc" (#03# |YWJj|))""" test05 = """(if (is (window_name) "XMMS") (set_workspace 2))""" test06 = """(if (and (is (application_name) "Firefox") (or (contains (window_name) "Enter name of file to save to") (contains (window_name) "Save As") (contains (window_name) "Save Image") () ) ) (geometry "+140+122") ) """ test07 = """(defun factorial (x) (if (zerop x) 1 (* x (factorial (- x 1))))) """ test51 = """(2:XX "abc" (#30# |YWJj|))""" test51error = """(3:XX "abc" (#30# |YWJj|))""" test52 = """ (and (or (> uid 1000) (!= gid 20) ) (> quota 5.0e+03) ) """ # Run tests t = None alltests = [ locals()[t] for t in sorted(locals()) if t.startswith("test") ] for t in alltests: print('-'*50) print(t) try: sexpr = sexp.parseString(t, parseAll=True) pprint.pprint(sexpr.asList()) except ParseFatalException as pfe: print("Error:", pfe.msg) print(pfe.markInputline('^')) print() pyparsing-2.2.0+dfsg1/examples/lucene_grammar.py0000644000175000017500000001557612771530173020426 0ustar zigozigo# # lucene_grammar.py # # Copyright 2011, Paul McGuire # # implementation of Lucene grammar, as decribed # at http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/docs/queryparsersyntax.html # from pyparsing import (Literal, CaselessKeyword, Forward, Regex, QuotedString, Suppress, Optional, Group, FollowedBy, infixNotation, opAssoc, ParseException, ParserElement, pyparsing_common) ParserElement.enablePackrat() COLON,LBRACK,RBRACK,LBRACE,RBRACE,TILDE,CARAT = map(Literal,":[]{}~^") LPAR,RPAR = map(Suppress,"()") and_, or_, not_, to_ = map(CaselessKeyword, "AND OR NOT TO".split()) keyword = and_ | or_ | not_ | to_ expression = Forward() valid_word = Regex(r'([a-zA-Z0-9*_+.-]|\\[!(){}\[\]^"~*?\\:])+').setName("word") valid_word.setParseAction( lambda t : t[0].replace('\\\\',chr(127)).replace('\\','').replace(chr(127),'\\') ) string = QuotedString('"') required_modifier = Literal("+")("required") prohibit_modifier = Literal("-")("prohibit") integer = Regex(r"\d+").setParseAction(lambda t:int(t[0])) proximity_modifier = Group(TILDE + integer("proximity")) number = pyparsing_common.fnumber() fuzzy_modifier = TILDE + Optional(number, default=0.5)("fuzzy") term = Forward() field_name = valid_word().setName("fieldname") incl_range_search = Group(LBRACK + term("lower") + to_ + term("upper") + RBRACK) excl_range_search = Group(LBRACE + term("lower") + to_ + term("upper") + RBRACE) range_search = incl_range_search("incl_range") | excl_range_search("excl_range") boost = (CARAT + number("boost")) string_expr = Group(string + proximity_modifier) | string word_expr = Group(valid_word + fuzzy_modifier) | valid_word term << (Optional(field_name("field") + COLON) + (word_expr | string_expr | range_search | Group(LPAR + expression + RPAR)) + Optional(boost)) term.setParseAction(lambda t:[t] if 'field' in t or 'boost' in t else None) expression << infixNotation(term, [ (required_modifier | prohibit_modifier, 1, opAssoc.RIGHT), ((not_ | '!').setParseAction(lambda: "NOT"), 1, opAssoc.RIGHT), ((and_ | '&&').setParseAction(lambda: "AND"), 2, opAssoc.LEFT), (Optional(or_ | '||').setParseAction(lambda: "OR"), 2, opAssoc.LEFT), ]) # test strings taken from grammar description doc, and TestQueryParser.java tests = r""" a and b a and not b a and !b a && !b a&&!b name:a name:a and not title:b (a^100 c d f) and !z name:"blah de blah" title:(+return +"pink panther") title:"The Right Way" AND text:go title:"Do it right" AND right title:Do it right roam~ roam~0.8 "jakarta apache"~10 mod_date:[20020101 TO 20030101] title:{Aida TO Carmen} jakarta apache jakarta^4 apache "jakarta apache"^4 "Apache Lucene" "jakarta apache" jakarta "jakarta apache" OR jakarta "jakarta apache" AND "Apache Lucene" +jakarta lucene "jakarta apache" NOT "Apache Lucene" "jakarta apache" -"Apache Lucene" (jakarta OR apache) AND website \(1+1\)\:2 c\:\\windows (fieldX:xxxxx OR fieldy:xxxxxxxx)^2 AND (fieldx:the OR fieldy:foo) (fieldX:xxxxx fieldy:xxxxxxxx)^2 AND (fieldx:the fieldy:foo) (fieldX:xxxxx~0.5 fieldy:xxxxxxxx)^2 AND (fieldx:the fieldy:foo) +term -term term foo:term AND field:anotherTerm germ term^2.0 (term)^2.0 (foo OR bar) AND (baz OR boo) +(apple \"steve jobs\") -(foo bar baz) +title:(dog OR cat) -author:\"bob dole\" a AND b +a +b (a AND b) c OR (a AND b) c (+a +b) a AND NOT b +a -b a AND -b a AND !b a && b a && ! b a OR b a b a || b a OR !b a -b a OR ! b a OR -b a - b a + b a ! b +foo:term +anotherterm hello term^2.0 (germ term)^2.0 term^2 +(foo bar) +(baz boo) ((a OR b) AND NOT c) OR d (+(a b) -c) d field a&&b .NET term germ 3 term 1.0 1 2 term term1 term2 term term term term* term*^2 term*^2.0 term~ term~2.0 term~0.7 term~^3 term~2.0^3.0 term*germ term*germ^3 term*germ^3.0 term~1.1 [A TO C] t*erm* *term* term term^3.0 term term stop^3.0 term term +stop term term -stop term drop AND (stop) AND roll +drop +roll term +(stop) term term -(stop) term drop AND stop AND roll term phrase term term (phrase1 phrase2) term term AND NOT phrase term +term -(phrase1 phrase2) term stop^3 stop (stop)^3 ((stop))^3 (stop^3) ((stop)^3) (stop) ((stop)) term +stop [ a TO z] [a TO z] [ a TO z ] { a TO z} {a TO z} { a TO z } { a TO z }^2.0 {a TO z}^2.0 [ a TO z] OR bar [a TO z] bar [ a TO z] AND bar +[a TO z] +bar ( bar blar { a TO z}) bar blar {a TO z} gack ( bar blar { a TO z}) gack (bar blar {a TO z}) [* TO Z] [* TO z] [A TO *] [a TO *] [* TO *] [\* TO \*] \!blah \:blah blah \~blah \*blah a a-b:c a+b:c a\:b:c a\\b:c a:b-c a:b+c a:b\:c a:b\\c a:b-c* a:b+c* a:b\:c* a:b\\c* a:b-c~2.0 a:b+c~2.0 a:b\:c~ a:b\\c~ [a- TO a+] [ a\\ TO a\* ] c\:\\temp\\\~foo.txt abc XYZ (item:\\ item:ABCD\\) \* * \\ a\:b\:c a\\b\:c a\:b\\c a\:b\:c\* a\:b\\\\c\* a:b-c~ a:b+c~ a\:b\:c\~ a\:b\\c\~ +weltbank +worlbank +term +term +term term +term term term term +term term +term +term -term term term -term +term +term on on^1.0 hello^2.0 the^3 the some phrase xunit~ one two three A AND B OR C AND D +A +B +C +D foo:zoo* foo:zoo*^2 zoo foo:* foo:*^2 *:foo a:the OR a:foo a:woo OR a:the *:* (*:*) +*:* -*:* the wizard of ozzy """ failtests = r""" field:term:with:colon some more terms (sub query)^5.0^2.0 plus more a:b:c a:b:c~ a:b:c* a:b:c~2.0 \+blah \-blah foo \|| bar foo \AND bar \a a\-b:c a\+b:c a\b:c a:b\-c a:b\+c a\-b\:c a\+b\:c a:b\c* a:b\-c~ a:b\+c~ a:b\c a:b\-c* a:b\+c* [ a\- TO a\+ ] [a\ TO a*] a\\\+b a\+b c:\temp\~foo.txt XY\ a\u0062c a:b\c~2.0 XY\u005a XY\u005A item:\ item:ABCD\ \ a\ or b a\:b\-c a\:b\+c a\:b\-c\* a\:b\+c\* a\:b\-c\~ a\:b\+c\~ a:b\c~ [ a\ TO a* ] """ success1, _ = expression.runTests(tests) success2, _ = expression.runTests(failtests, failureTests=True) print(("FAIL", "OK")[success1 and success2]) pyparsing-2.2.0+dfsg1/examples/datetimeParseActions.py0000644000175000017500000000366712754067253021560 0ustar zigozigo# parseActions.py # # A sample program a parser to match a date string of the form "YYYY/MM/DD", # and return it as a datetime, or raise an exception if not a valid date. # # Copyright 2012, Paul T. McGuire # from datetime import datetime from pyparsing import * # define an integer string, and a parse action to convert it # to an integer at parse time integer = Word(nums).setName("integer") def convertToInt(tokens): # no need to test for validity - we can't get here # unless tokens[0] contains all numeric digits return int(tokens[0]) integer.setParseAction(convertToInt) # or can be written as one line as #integer = Word(nums).setParseAction(lambda t: int(t[0])) # define a pattern for a year/month/day date date_expr = integer('year') + '/' + integer('month') + '/' + integer('day') date_expr.ignore(pythonStyleComment) def convertToDatetime(s,loc,tokens): try: # note that the year, month, and day fields were already # converted to ints from strings by the parse action defined # on the integer expression above return datetime(tokens.year, tokens.month, tokens.day).date() except Exception as ve: errmsg = "'%s/%s/%s' is not a valid date, %s" % \ (tokens.year, tokens.month, tokens.day, ve) raise ParseException(s, loc, errmsg) date_expr.setParseAction(convertToDatetime) date_expr.runTests("""\ 2000/1/1 # invalid month 2000/13/1 # 1900 was not a leap year 1900/2/29 # but 2000 was 2000/2/29 """) # if dates conform to ISO8601, use definitions in pyparsing_common date_expr = pyparsing_common.iso8601_date.setParseAction(pyparsing_common.convertToDate()) date_expr.ignore(pythonStyleComment) date_expr.runTests("""\ 2000-01-01 # invalid month 2000-13-01 # 1900 was not a leap year 1900-02-29 # but 2000 was 2000-02-29 """)pyparsing-2.2.0+dfsg1/examples/cpp_enum_parser.py0000644000175000017500000000247612765031117020617 0ustar zigozigo# # cpp_enum_parser.py # # Posted by Mark Tolonen on comp.lang.python in August, 2009, # Used with permission. # # Parser that scans through C or C++ code for enum definitions, and # generates corresponding Python constant definitions. # # from pyparsing import * # sample string with enums and other stuff sample = ''' stuff before enum hello { Zero, One, Two, Three, Five=5, Six, Ten=10 }; in the middle enum blah { alpha, beta, gamma = 10 , zeta = 50 }; at the end ''' # syntax we don't want to see in the final parse tree LBRACE,RBRACE,EQ,COMMA = map(Suppress,"{}=,") _enum = Suppress('enum') identifier = Word(alphas,alphanums+'_') integer = Word(nums) enumValue = Group(identifier('name') + Optional(EQ + integer('value'))) enumList = Group(enumValue + ZeroOrMore(COMMA + enumValue)) enum = _enum + identifier('enum') + LBRACE + enumList('names') + RBRACE # find instances of enums ignoring other syntax for item,start,stop in enum.scanString(sample): id = 0 for entry in item.names: if entry.value != '': id = int(entry.value) print('%s_%s = %d' % (item.enum.upper(),entry.name.upper(),id)) id += 1 pyparsing-2.2.0+dfsg1/examples/linenoExample.py0000644000175000017500000000277312466013312020230 0ustar zigozigo# # linenoExample.py # # an example of using the location value returned by pyparsing to # extract the line and column number of the location of the matched text, # or to extract the entire line of text. # # Copyright (c) 2006, Paul McGuire # from pyparsing import * data = """Now is the time for all good men to come to the aid of their country.""" # demonstrate use of lineno, line, and col in a parse action def reportLongWords(st,locn,toks): word = toks[0] if len(word) > 3: print("Found '%s' on line %d at column %d" % (word, lineno(locn,st), col(locn,st))) print("The full line of text was:") print("'%s'" % line(locn,st)) print((" "*col(locn,st))+" ^") print() wd = Word(alphas).setParseAction( reportLongWords ) OneOrMore(wd).parseString(data) # demonstrate returning an object from a parse action, containing more information # than just the matching token text class Token(object): def __init__(self, st, locn, tokString): self.tokenString = tokString self.locn = locn self.sourceLine = line(locn,st) self.lineNo = lineno(locn,st) self.col = col(locn,st) def __str__(self): return "%(tokenString)s (line: %(lineNo)d, col: %(col)d)" % self.__dict__ def createTokenObject(st,locn,toks): return Token(st,locn, toks[0]) wd = Word(alphas).setParseAction( createTokenObject ) for tokenObj in OneOrMore(wd).parseString(data): print(tokenObj) pyparsing-2.2.0+dfsg1/examples/0README.html0000644000175000017500000002737312466013312016764 0ustar zigozigo pyparsing Examples

pyparsing Examples

This directory contains a number of Python scripts that can get you started in learning to use pyparsing.

  • greeting.py
    Parse "Hello, World!".
  • greetingInKorean.py ~ submission by June Kim
    Unicode example to parse "Hello, World!" in Korean.
  • greetingInGreek.py ~ submission by ???
    Unicode example to parse "Hello, World!" in Greek.
  • holaMundo.py ~ submission by Marco Alfonso
    "Hello, World!" example translated to Spanish, from Marco Alfonso's blog.
  • chemicalFormulas.py
    Simple example to demonstrate the use of ParseResults returned from parseString(). Parses a chemical formula (such as "H2O" or "C6H5OH"), and walks the returned list of tokens to calculate the molecular weight.
  • wordsToNum.py
    A sample program that reads a number in words (such as "fifteen hundred and sixty four"), and returns the actual number (1564). Also demonstrates some processing of ParseExceptions, including marking where the parse failure was found.
  • pythonGrammarparser.py ~ suggested by JH Stovall
    A sample program that parses the EBNF used in the Python source code to define the Python grammar. From this parser, one can generate Python grammar documentation tools, such as railroad track diagrams. Also demonstrates use of Dict class.
  • commasep.py
    Demonstration of the use of the commaSeparatedList helper. Shows examples of proper handling of commas within quotes, trimming of whitespace around delimited entries, and handling of consecutive commas (null arguments). Includes comparison with simple string.split(',').
  • dictExample.py
    A demonstration of using the Dict class, to parse a table of ASCII tabulated data.
  • dictExample2.py ~ submission by Mike Kelly
    An extended version of dictExample.py, in which Mike Kelly also parses the column headers, and generates a transposed version of the original table!
  • scanExamples.py
    Some examples of using scanString and transformString, as alternative parsing methods to parseString, to do macro substitution, and selection and/or removal of matching strings within a source file.
  • urlExtractor.py
    Another example using scanString, this time to extract all HREF references found on Yahoo!'s home page, and return them as a dictionary.
  • makeHTMLTagExample.py
    A sample program showing sample definitions and applications of HTML tag expressions created using makeHTMLTags helper function. Very useful for scraping data from HTML pages.
  • urlExtractorNew.py
    Another updated version of urlExtractor.py, using the new makeHTMLTags() method.
  • fourFn.py
    A simple algebraic expression parser, that performs +,-,*,/, and ^ arithmetic operations. (With suggestions and bug-fixes graciously offered by Andrea Griffini.)
  • SimpleCalc.py ~ submission by Steven Siew
    An interactive version of fourFn.py, with support for variables.
  • LAParser.py ~ submission by Mike Ellis
    An interactive Linear Algebra Parser, an extension of SimpleCalc.py. Supports linear algebra (LA) notation for vectors, matrices, and scalars, including matrix operations such as inversion and determinants. Converts LA expressions to C code - uses a separate C library for runtime evaluation of results.
  • configParse.py
    A simple alternative to Python's ConfigParse module, demonstrating the use of the Dict class to return nested dictionary access to configuration values.
  • getNTPservers.py
    Yet another scanString example, to read/extract the list of NTP servers from NIST's web site.
  • getNTPserversNew.py
    An updated version of getNTPservers.py, using the new makeHTMLTags() method.
  • httpServerLogParser.py
    Parser for Apache server log files.
  • idlParse.py
    Parser for CORBA IDL files.
  • mozillaCalendarParser.py ~ submission by Petri Savolainen
    Parser for Mozilla calendar (*.ics) files.
  • pgn.py ~ submission by Alberto Santini
    Parser for PGN (Portable Game Notation) files, the standard form for documenting the moves in chess games.
  • simpleSQL.py
    A simple parser that will extract table and column names from SQL SELECT statements..
  • dfmparse.py ~ submission by Dan Griffith
    Parser for Delphi forms.
  • ebnf.py / ebnftest.py ~ submission by Seo Sanghyeon
    An EBNF-compiler that reads EBNF and generates a pyparsing grammar! Including a test that compiles... EBNF itself!
  • searchparser.py ~ submission by Steven Mooij and Rudolph Froger
    An expression parser that parses search strings, with special keyword and expression operations using (), not, and, or, and quoted strings.
  • sparser.py ~ submission by Tim Cera
    A configurable parser module that can be configured with a list of tuples, giving a high-level definition for parsing common sets of water table data files. Tim had to contend with several different styles of data file formats, each with slight variations of its own. Tim created a configurable parser (or "SPECIFIED parser" - hence the name "sparser"), that simply works from a config variable listing the field names and data types, and implicitly, their order in the source data file.

    See mayport_florida_8720220_data_def.txt for an example configuration file.

  • romanNumerals.py
    A Roman numeral generator and parser example, showing the power of parse actions to compile Roman numerals into their integer values.
  • removeLineBreaks.py
    A string transformer that converts text files with hard line-breaks into one with line breaks only between paragraphs. Useful when converting downloads from Project Gutenberg to import to word processing apps that can reformat paragraphs once hard line-breaks are removed, or for loading into your Palm Pilot for portable perusal.

    See Successful Methods of Public Speaking.txt and Successful Methods of Public Speaking(2).txt for a sample before and after (text file courtesy of Project Gutenberg).

  • listAllMatches.py
    An example program showing the utility of the listAllMatches option when specifying results naming.
  • linenoExample.py
    An example program showing how to use the string location to extract line and column numbers, or the source line of text.
  • parseListString.py
    An example program showing a progression of steps, how to parse a string representation of a Python list back into a true list.
  • parsePythonValue.py
    An extension of parseListString.py to parse tuples and dicts, including nested values, returning a Python value of the original type.
  • indentedGrammarExample.py
    An example program showing how to parse a grammar using indentation for grouping, such as is done in Python.
  • simpleArith.py
    An example program showing how to use the new operatorPrecedence helper method to define a 6-function (+, -, *, /, ^, and !) arithmetic expression parser, with unary plus and minus signs.
  • simpleBool.py
    An example program showing how to use the new operatorPrecedence helper method to define a boolean expression parser, with parse actions associated with each operator to "compile" the expression into a data structure that will evaluate the expression's boolean value.
  • simpleWiki.py
    An example program showing how to use transformString to implement a simple Wiki markup parser.
  • sql2dot.py~ submission by EnErGy [CSDX]
    A nice graphing program that generates schema diagrams from SQL table definition statements.
  • htmlStripper.py
    An example implementation of a common application, removing HTML markup tags from an HTML page, leaving just the text content.
  • macroExpansion.py
    An example implementation of a simple preprocessor, that will read embedded macro definitions and replace macro references with the defined substitution string.
  • sexpParser.py
    A parser that uses a recursive grammar to parse S-expressions.
  • nested.py
    An example using nestedExpr, a helper method to simplify definitions of expressions of nested lists.
  • withAttribute.py
    An example using withAttribute, a helper method to define parse actions to validate matched HTML tags using additional attributes. Especially helpful for matching common tags such as <DIV> and <TD>.
  • stackish.py
    A parser for the data representation format, Stackish.
  • builtin_parse_action_demo.py
    New in version 1.5.7
    Demonstration of using builtins (min, max, sum, len, etc.) as parse actions.
  • antlr_grammar.py~ submission by Luca DellOlio
    New in version 1.5.7
    Pyparsing example parsing ANTLR .a files and generating a working pyparsing parser.
  • shapes.py
    New in version 1.5.7
    Parse actions example simple shape definition syntax, and returning the matched tokens as domain objects instead of just strings.
  • datetimeParseActions.py
    New in version 1.5.7
    Parse actions example showing a parse action returning a datetime object instead of string tokens, and doing validation of the tokens, raising a ParseException if the given YYYY/MM/DD string does not represent a valid date.
  • position.py
    New in version 1.5.7
    Demonstration of a couple of different ways to capture the location a particular expression was found within the overall input string.
pyparsing-2.2.0+dfsg1/examples/idlParse.py0000644000175000017500000001452412766440122017176 0ustar zigozigo# # idlparse.py # # an example of using the parsing module to be able to process a subset of the CORBA IDL grammar # # Copyright (c) 2003, Paul McGuire # from pyparsing import Literal, CaselessLiteral, Word, OneOrMore, ZeroOrMore, \ Forward, NotAny, delimitedList, oneOf, Group, Optional, Combine, alphas, nums, restOfLine, cStyleComment, \ alphanums, printables, empty, quotedString, ParseException, ParseResults, Keyword, Regex import pprint #~ import tree2image bnf = None def CORBA_IDL_BNF(): global bnf if not bnf: # punctuation (colon,lbrace,rbrace,lbrack,rbrack,lparen,rparen, equals,comma,dot,slash,bslash,star,semi,langle,rangle) = map(Literal, r":{}[]()=,./\*;<>") # keywords (any_, attribute_, boolean_, case_, char_, const_, context_, default_, double_, enum_, exception_, FALSE_, fixed_, float_, inout_, interface_, in_, long_, module_, Object_, octet_, oneway_, out_, raises_, readonly_, sequence_, short_, string_, struct_, switch_, TRUE_, typedef_, unsigned_, union_, void_, wchar_, wstring_) = map(Keyword, """any attribute boolean case char const context default double enum exception FALSE fixed float inout interface in long module Object octet oneway out raises readonly sequence short string struct switch TRUE typedef unsigned union void wchar wstring""".split()) identifier = Word( alphas, alphanums + "_" ).setName("identifier") real = Regex(r"[+-]?\d+\.\d*([Ee][+-]?\d+)?").setName("real") integer = Regex(r"0x[0-9a-fA-F]+|[+-]?\d+").setName("int") udTypeName = delimitedList( identifier, "::", combine=True ).setName("udType") typeName = ( any_ | boolean_ | char_ | double_ | fixed_ | float_ | long_ | octet_ | short_ | string_ | wchar_ | wstring_ | udTypeName ).setName("type") sequenceDef = Forward().setName("seq") sequenceDef << Group( sequence_ + langle + ( sequenceDef | typeName ) + rangle ) typeDef = sequenceDef | ( typeName + Optional( lbrack + integer + rbrack ) ) typedefDef = Group( typedef_ + typeDef + identifier + semi ).setName("typedef") moduleDef = Forward() constDef = Group( const_ + typeDef + identifier + equals + ( real | integer | quotedString ) + semi ) #| quotedString ) exceptionItem = Group( typeDef + identifier + semi ) exceptionDef = ( exception_ + identifier + lbrace + ZeroOrMore( exceptionItem ) + rbrace + semi ) attributeDef = Optional( readonly_ ) + attribute_ + typeDef + identifier + semi paramlist = delimitedList( Group( ( inout_ | in_ | out_ ) + typeName + identifier ) ).setName( "paramlist" ) operationDef = ( ( void_ ^ typeDef ) + identifier + lparen + Optional( paramlist ) + rparen + \ Optional( raises_ + lparen + Group( delimitedList( typeName ) ) + rparen ) + semi ) interfaceItem = ( constDef | exceptionDef | attributeDef | operationDef ) interfaceDef = Group( interface_ + identifier + Optional( colon + delimitedList( typeName ) ) + lbrace + \ ZeroOrMore( interfaceItem ) + rbrace + semi ).setName("opnDef") moduleItem = ( interfaceDef | exceptionDef | constDef | typedefDef | moduleDef ) moduleDef << module_ + identifier + lbrace + ZeroOrMore( moduleItem ) + rbrace + semi bnf = ( moduleDef | OneOrMore( moduleItem ) ) singleLineComment = "//" + restOfLine bnf.ignore( singleLineComment ) bnf.ignore( cStyleComment ) return bnf testnum = 1 def test( strng ): global testnum print(strng) try: bnf = CORBA_IDL_BNF() tokens = bnf.parseString( strng ) print("tokens = ") pprint.pprint( tokens.asList() ) imgname = "idlParse%02d.bmp" % testnum testnum += 1 #~ tree2image.str2image( str(tokens.asList()), imgname ) except ParseException as err: print(err.line) print(" "*(err.column-1) + "^") print(err) print() if __name__ == "__main__": test( """ /* * a block comment * */ typedef string[10] tenStrings; typedef sequence stringSeq; typedef sequence< sequence > stringSeqSeq; interface QoSAdmin { stringSeq method1( in string arg1, inout long arg2 ); stringSeqSeq method2( in string arg1, inout long arg2, inout long arg3); string method3(); }; """ ) test( """ /* * a block comment * */ typedef string[10] tenStrings; typedef /** ** *** **** * * a block comment * */ sequence /*comment inside an And */ stringSeq; /* */ /**/ /***/ /****/ typedef sequence< sequence > stringSeqSeq; interface QoSAdmin { stringSeq method1( in string arg1, inout long arg2 ); stringSeqSeq method2( in string arg1, inout long arg2, inout long arg3); string method3(); }; """ ) test( r""" const string test="Test String\n"; const long a = 0; const long b = -100; const float c = 3.14159; const long d = 0x007f7f7f; exception TestException { string msg; sequence dataStrings; }; interface TestInterface { void method1( in string arg1, inout long arg2 ); }; """ ) test( """ module Test1 { exception TestException { string msg; ]; interface TestInterface { void method1( in string arg1, inout long arg2 ) raises ( TestException ); }; }; """ ) test( """ module Test1 { exception TestException { string msg; }; }; """ ) pyparsing-2.2.0+dfsg1/examples/LAparser.py0000644000175000017500000004405312466013312017136 0ustar zigozigo""" Purpose: Linear Algebra Parser Based on: SimpleCalc.py example (author Paul McGuire) in pyparsing-1.3.3 Author: Mike Ellis Copyright: Ellis & Grant, Inc. 2005 License: You may freely use, modify, and distribute this software. Warranty: THIS SOFTWARE HAS NO WARRANTY WHATSOEVER. USE AT YOUR OWN RISK. Notes: Parses infix linear algebra (LA) notation for vectors, matrices, and scalars. Output is C code function calls. The parser can be run as an interactive interpreter or included as module to use for in-place substitution into C files containing LA equations. Supported operations are: OPERATION: INPUT OUTPUT Scalar addition: "a = b+c" "a=(b+c)" Scalar subtraction: "a = b-c" "a=(b-c)" Scalar multiplication: "a = b*c" "a=b*c" Scalar division: "a = b/c" "a=b/c" Scalar exponentiation: "a = b^c" "a=pow(b,c)" Vector scaling: "V3_a = V3_b * c" "vCopy(a,vScale(b,c))" Vector addition: "V3_a = V3_b + V3_c" "vCopy(a,vAdd(b,c))" Vector subtraction: "V3_a = V3_b - V3_c" "vCopy(a,vSubtract(b,c))" Vector dot product: "a = V3_b * V3_c" "a=vDot(b,c)" Vector outer product: "M3_a = V3_b @ V3_c" "a=vOuterProduct(b,c)" Vector magn. squared: "a = V3_b^Mag2" "a=vMagnitude2(b)" Vector magnitude: "a = V3_b^Mag" "a=sqrt(vMagnitude2(b))" Matrix scaling: "M3_a = M3_b * c" "mCopy(a,mScale(b,c))" Matrix addition: "M3_a = M3_b + M3_c" "mCopy(a,mAdd(b,c))" Matrix subtraction: "M3_a = M3_b - M3_c" "mCopy(a,mSubtract(b,c))" Matrix multiplication: "M3_a = M3_b * M3_c" "mCopy(a,mMultiply(b,c))" Matrix by vector mult.: "V3_a = M3_b * V3_c" "vCopy(a,mvMultiply(b,c))" Matrix inversion: "M3_a = M3_b^-1" "mCopy(a,mInverse(b))" Matrix transpose: "M3_a = M3_b^T" "mCopy(a,mTranspose(b))" Matrix determinant: "a = M3_b^Det" "a=mDeterminant(b)" The parser requires the expression to be an equation. Each non-scalar variable must be prefixed with a type tag, 'M3_' for 3x3 matrices and 'V3_' for 3-vectors. For proper compilation of the C code, the variables need to be declared without the prefix as float[3] for vectors and float[3][3] for matrices. The operations do not modify any variables on the right-hand side of the equation. Equations may include nested expressions within parentheses. The allowed binary operators are '+-*/^' for scalars, and '+-*^@' for vectors and matrices with the meanings defined in the table above. Specifying an improper combination of operands, e.g. adding a vector to a matrix, is detected by the parser and results in a Python TypeError Exception. The usual cause of this is omitting one or more tag prefixes. The parser knows nothing about a a variable's C declaration and relies entirely on the type tags. Errors in C declarations are not caught until compile time. Usage: To process LA equations embedded in source files, import this module and pass input and output file objects to the fprocess() function. You can can also invoke the parser from the command line, e.g. 'python LAparser.py', to run a small test suite and enter an interactive loop where you can enter LA equations and see the resulting C code. """ import re,os,sys from pyparsing import Word, alphas, ParseException, Literal, CaselessLiteral \ , Combine, Optional, nums, Or, Forward, OneOrMore, ZeroOrMore, \ FollowedBy, StringStart, StringEnd, alphanums import math # Debugging flag can be set to either "debug_flag=True" or "debug_flag=False" debug_flag=False #---------------------------------------------------------------------------- # Variables that hold intermediate parsing results and a couple of # helper functions. exprStack = [] # Holds operators and operands parsed from input. targetvar = None # Holds variable name to left of '=' sign in LA equation. def _pushFirst( str, loc, toks ): if debug_flag: print("pushing ", toks[0], "str is ", str) exprStack.append( toks[0] ) def _assignVar( str, loc, toks ): global targetvar targetvar = toks[0] #----------------------------------------------------------------------------- # The following statements define the grammar for the parser. point = Literal('.') e = CaselessLiteral('E') plusorminus = Literal('+') | Literal('-') number = Word(nums) integer = Combine( Optional(plusorminus) + number ) floatnumber = Combine( integer + Optional( point + Optional(number) ) + Optional( e + integer ) ) lbracket = Literal("[") rbracket = Literal("]") ident = Forward() ## The definition below treats array accesses as identifiers. This means your expressions ## can include references to array elements, rows and columns, e.g., a = b[i] + 5. ## Expressions within []'s are not presently supported, so a = b[i+1] will raise ## a ParseException. ident = Combine(Word(alphas + '-',alphanums + '_') + \ ZeroOrMore(lbracket + (Word(alphas + '-',alphanums + '_')|integer) + rbracket) \ ) plus = Literal( "+" ) minus = Literal( "-" ) mult = Literal( "*" ) div = Literal( "/" ) outer = Literal( "@" ) lpar = Literal( "(" ).suppress() rpar = Literal( ")" ).suppress() addop = plus | minus multop = mult | div | outer expop = Literal( "^" ) assignop = Literal( "=" ) expr = Forward() atom = ( ( e | floatnumber | integer | ident ).setParseAction(_pushFirst) | ( lpar + expr.suppress() + rpar ) ) factor = Forward() factor << atom + ZeroOrMore( ( expop + factor ).setParseAction( _pushFirst ) ) term = factor + ZeroOrMore( ( multop + factor ).setParseAction( _pushFirst ) ) expr << term + ZeroOrMore( ( addop + term ).setParseAction( _pushFirst ) ) equation = (ident + assignop).setParseAction(_assignVar) + expr + StringEnd() # End of grammar definition #----------------------------------------------------------------------------- ## The following are helper variables and functions used by the Binary Infix Operator ## Functions described below. vprefix = 'V3_' vplen = len(vprefix) mprefix = 'M3_' mplen = len(mprefix) ## We don't support unary negation for vectors and matrices class UnaryUnsupportedError(Exception): pass def _isvec(ident): if ident[0] == '-' and ident[1:vplen+1] == vprefix: raise UnaryUnsupportedError else: return ident[0:vplen] == vprefix def _ismat(ident): if ident[0] == '-' and ident[1:mplen+1] == mprefix: raise UnaryUnsupportedError else: return ident[0:mplen] == mprefix def _isscalar(ident): return not (_isvec(ident) or _ismat(ident)) ## Binary infix operator (BIO) functions. These are called when the stack evaluator ## pops a binary operator like '+' or '*". The stack evaluator pops the two operand, a and b, ## and calls the function that is mapped to the operator with a and b as arguments. Thus, ## 'x + y' yields a call to addfunc(x,y). Each of the BIO functions checks the prefixes of its ## arguments to determine whether the operand is scalar, vector, or matrix. This information ## is used to generate appropriate C code. For scalars, this is essentially the input string, e.g. ## 'a + b*5' as input yields 'a + b*5' as output. For vectors and matrices, the input is translated to ## nested function calls, e.g. "V3_a + V3_b*5" yields "V3_vAdd(a,vScale(b,5)". Note that prefixes are ## stripped from operands and function names within the argument list to the outer function and ## the appropriate prefix is placed on the outer function for removal later as the stack evaluation ## recurses toward the final assignment statement. def _addfunc(a,b): if _isscalar(a) and _isscalar(b): return "(%s+%s)"%(a,b) if _isvec(a) and _isvec(b): return "%svAdd(%s,%s)"%(vprefix,a[vplen:],b[vplen:]) if _ismat(a) and _ismat(b): return "%smAdd(%s,%s)"%(mprefix,a[mplen:],b[mplen:]) else: raise TypeError def _subfunc(a,b): if _isscalar(a) and _isscalar(b): return "(%s-%s)"%(a,b) if _isvec(a) and _isvec(b): return "%svSubtract(%s,%s)"%(vprefix,a[vplen:],b[vplen:]) if _ismat(a) and _ismat(b): return "%smSubtract(%s,%s)"%(mprefix,a[mplen:],b[mplen:]) else: raise TypeError def _mulfunc(a,b): if _isscalar(a) and _isscalar(b): return "%s*%s"%(a,b) if _isvec(a) and _isvec(b): return "vDot(%s,%s)"%(a[vplen:],b[vplen:]) if _ismat(a) and _ismat(b): return "%smMultiply(%s,%s)"%(mprefix,a[mplen:],b[mplen:]) if _ismat(a) and _isvec(b): return "%smvMultiply(%s,%s)"%(vprefix,a[mplen:],b[vplen:]) if _ismat(a) and _isscalar(b): return "%smScale(%s,%s)"%(mprefix,a[mplen:],b) if _isvec(a) and _isscalar(b): return "%svScale(%s,%s)"%(vprefix,a[mplen:],b) else: raise TypeError def _outermulfunc(a,b): ## The '@' operator is used for the vector outer product. if _isvec(a) and _isvec(b): return "%svOuterProduct(%s,%s)"%(mprefix,a[vplen:],b[vplen:]) else: raise TypeError def _divfunc(a,b): ## The '/' operator is used only for scalar division if _isscalar(a) and _isscalar(b): return "%s/%s"%(a,b) else: raise TypeError def _expfunc(a,b): ## The '^' operator is used for exponentiation on scalars and ## as a marker for unary operations on vectors and matrices. if _isscalar(a) and _isscalar(b): return "pow(%s,%s)"%(str(a),str(b)) if _ismat(a) and b=='-1': return "%smInverse(%s)"%(mprefix,a[mplen:]) if _ismat(a) and b=='T': return "%smTranspose(%s)"%(mprefix,a[mplen:]) if _ismat(a) and b=='Det': return "mDeterminant(%s)"%(a[mplen:]) if _isvec(a) and b=='Mag': return "sqrt(vMagnitude2(%s))"%(a[vplen:]) if _isvec(a) and b=='Mag2': return "vMagnitude2(%s)"%(a[vplen:]) else: raise TypeError def _assignfunc(a,b): ## The '=' operator is used for assignment if _isscalar(a) and _isscalar(b): return "%s=%s"%(a,b) if _isvec(a) and _isvec(b): return "vCopy(%s,%s)"%(a[vplen:],b[vplen:]) if _ismat(a) and _ismat(b): return "mCopy(%s,%s)"%(a[mplen:],b[mplen:]) else: raise TypeError ## End of BIO func definitions ##---------------------------------------------------------------------------- # Map operator symbols to corresponding BIO funcs opn = { "+" : ( _addfunc ), "-" : ( _subfunc ), "*" : ( _mulfunc ), "@" : ( _outermulfunc ), "/" : ( _divfunc), "^" : ( _expfunc ), } ##---------------------------------------------------------------------------- # Recursive function that evaluates the expression stack def _evaluateStack( s ): op = s.pop() if op in "+-*/@^": op2 = _evaluateStack( s ) op1 = _evaluateStack( s ) result = opn[op]( op1, op2 ) if debug_flag: print(result) return result else: return op ##---------------------------------------------------------------------------- # The parse function that invokes all of the above. def parse(input_string): """ Accepts an input string containing an LA equation, e.g., "M3_mymatrix = M3_anothermatrix^-1" returns C code function calls that implement the expression. """ global exprStack global targetvar # Start with a blank exprStack and a blank targetvar exprStack = [] targetvar=None if input_string != '': # try parsing the input string try: L=equation.parseString( input_string ) except ParseException as err: print('Parse Failure', file=sys.stderr) print(err.line, file=sys.stderr) print(" "*(err.column-1) + "^", file=sys.stderr) print(err, file=sys.stderr) raise # show result of parsing the input string if debug_flag: print(input_string, "->", L) print("exprStack=", exprStack) # Evaluate the stack of parsed operands, emitting C code. try: result=_evaluateStack(exprStack) except TypeError: print("Unsupported operation on right side of '%s'.\nCheck for missing or incorrect tags on non-scalar operands."%input_string, file=sys.stderr) raise except UnaryUnsupportedError: print("Unary negation is not supported for vectors and matrices: '%s'"%input_string, file=sys.stderr) raise # Create final assignment and print it. if debug_flag: print("var=",targetvar) if targetvar != None: try: result = _assignfunc(targetvar,result) except TypeError: print("Left side tag does not match right side of '%s'"%input_string, file=sys.stderr) raise except UnaryUnsupportedError: print("Unary negation is not supported for vectors and matrices: '%s'"%input_string, file=sys.stderr) raise return result else: print("Empty left side in '%s'"%input_string, file=sys.stderr) raise TypeError ##----------------------------------------------------------------------------------- def fprocess(infilep,outfilep): """ Scans an input file for LA equations between double square brackets, e.g. [[ M3_mymatrix = M3_anothermatrix^-1 ]], and replaces the expression with a comment containing the equation followed by nested function calls that implement the equation as C code. A trailing semi-colon is appended. The equation within [[ ]] should NOT end with a semicolon as that will raise a ParseException. However, it is ok to have a semicolon after the right brackets. Other text in the file is unaltered. The arguments are file objects (NOT file names) opened for reading and writing, respectively. """ pattern = r'\[\[\s*(.*?)\s*\]\]' eqn = re.compile(pattern,re.DOTALL) s = infilep.read() def parser(mo): ccode = parse(mo.group(1)) return "/* %s */\n%s;\nLAParserBufferReset();\n"%(mo.group(1),ccode) content = eqn.sub(parser,s) outfilep.write(content) ##----------------------------------------------------------------------------------- def test(): """ Tests the parsing of various supported expressions. Raises an AssertError if the output is not what is expected. Prints the input, expected output, and actual output for all tests. """ print("Testing LAParser") testcases = [ ("Scalar addition","a = b+c","a=(b+c)"), ("Vector addition","V3_a = V3_b + V3_c","vCopy(a,vAdd(b,c))"), ("Vector addition","V3_a=V3_b+V3_c","vCopy(a,vAdd(b,c))"), ("Matrix addition","M3_a = M3_b + M3_c","mCopy(a,mAdd(b,c))"), ("Matrix addition","M3_a=M3_b+M3_c","mCopy(a,mAdd(b,c))"), ("Scalar subtraction","a = b-c","a=(b-c)"), ("Vector subtraction","V3_a = V3_b - V3_c","vCopy(a,vSubtract(b,c))"), ("Matrix subtraction","M3_a = M3_b - M3_c","mCopy(a,mSubtract(b,c))"), ("Scalar multiplication","a = b*c","a=b*c"), ("Scalar division","a = b/c","a=b/c"), ("Vector multiplication (dot product)","a = V3_b * V3_c","a=vDot(b,c)"), ("Vector multiplication (outer product)","M3_a = V3_b @ V3_c","mCopy(a,vOuterProduct(b,c))"), ("Matrix multiplication","M3_a = M3_b * M3_c","mCopy(a,mMultiply(b,c))"), ("Vector scaling","V3_a = V3_b * c","vCopy(a,vScale(b,c))"), ("Matrix scaling","M3_a = M3_b * c","mCopy(a,mScale(b,c))"), ("Matrix by vector multiplication","V3_a = M3_b * V3_c","vCopy(a,mvMultiply(b,c))"), ("Scalar exponentiation","a = b^c","a=pow(b,c)"), ("Matrix inversion","M3_a = M3_b^-1","mCopy(a,mInverse(b))"), ("Matrix transpose","M3_a = M3_b^T","mCopy(a,mTranspose(b))"), ("Matrix determinant","a = M3_b^Det","a=mDeterminant(b)"), ("Vector magnitude squared","a = V3_b^Mag2","a=vMagnitude2(b)"), ("Vector magnitude","a = V3_b^Mag","a=sqrt(vMagnitude2(b))"), ("Complicated expression", "myscalar = (M3_amatrix * V3_bvector)^Mag + 5*(-xyz[i] + 2.03^2)","myscalar=(sqrt(vMagnitude2(mvMultiply(amatrix,bvector)))+5*(-xyz[i]+pow(2.03,2)))"), ("Complicated Multiline", "myscalar = \n(M3_amatrix * V3_bvector)^Mag +\n 5*(xyz + 2.03^2)","myscalar=(sqrt(vMagnitude2(mvMultiply(amatrix,bvector)))+5*(xyz+pow(2.03,2)))") ] for t in testcases: name,input,expected = t print(name) print(" %s input"%input) print(" %s expected"%expected) result = parse(input) print(" %s received"%result) print("") assert expected == result ##TODO: Write testcases with invalid expressions and test that the expected ## exceptions are raised. print("Tests completed!") ##---------------------------------------------------------------------------- ## The following is executed only when this module is executed as ## command line script. It runs a small test suite (see above) ## and then enters an interactive loop where you ## can enter expressions and see the resulting C code as output. if __name__ == '__main__': # run testcases test() # input_string input_string='' # Display instructions on how to use the program interactively interactiveusage = """ Entering interactive mode: Type in an equation to be parsed or 'quit' to exit the program. Type 'debug on' to print parsing details as each string is processed. Type 'debug off' to stop printing parsing details """ print(interactiveusage) input_string = input("> ") while input_string != 'quit': if input_string == "debug on": debug_flag = True elif input_string == "debug off": debug_flag = False else: try: print(parse(input_string)) except: pass # obtain new input string input_string = input("> ") # if user types 'quit' then say goodbye print("Good bye!") pyparsing-2.2.0+dfsg1/examples/partial_gene_match.py0000644000175000017500000000635612466013312021237 0ustar zigozigo# parital_gene_match.py # # Example showing how to create a customized pyparsing Token, in this case, # one that is very much like Literal, but which tolerates up to 'n' character # mismatches from pyparsing import * import urllib.request, urllib.parse, urllib.error # read in a bunch of genomic data datafile = urllib.request.urlopen("http://toxodb.org/common/downloads/release-6.0/Tgondii/TgondiiApicoplastORFsNAs_ToxoDB-6.0.fasta") fastasrc = datafile.read() datafile.close() """ Sample header: >NC_001799-6-2978-2778 | organism=Toxoplasma_gondii_RH | location=NC_001799:2778-2978(-) | length=201 """ integer = Word(nums).setParseAction(lambda t:int(t[0])) genebit = Group(">" + Word(alphanums.upper()+"-_") + "|" + Word(printables)("id") + SkipTo("length=", include=True) + integer("genelen") + LineEnd() + Combine(OneOrMore(Word("ACGTN")),adjacent=False)("gene")) # read gene data from .fasta file - takes just a few seconds genedata = OneOrMore(genebit).parseString(fastasrc) class CloseMatch(Token): """A special subclass of Token that does *close* matches. For each close match of the given string, a tuple is returned giving the found close match, and a list of mismatch positions.""" def __init__(self, seq, maxMismatches=1): super(CloseMatch,self).__init__() self.name = seq self.sequence = seq self.maxMismatches = maxMismatches self.errmsg = "Expected " + self.sequence self.mayIndexError = False self.mayReturnEmpty = False def parseImpl( self, instring, loc, doActions=True ): start = loc instrlen = len(instring) maxloc = start + len(self.sequence) if maxloc <= instrlen: seq = self.sequence seqloc = 0 mismatches = [] throwException = False done = False while loc < maxloc and not done: if instring[loc] != seq[seqloc]: mismatches.append(seqloc) if len(mismatches) > self.maxMismatches: throwException = True done = True loc += 1 seqloc += 1 else: throwException = True if throwException: exc = self.myException exc.loc = loc exc.pstr = instring raise exc return loc, (instring[start:loc],mismatches) # using the genedata extracted above, look for close matches of a gene sequence searchseq = CloseMatch("TTAAATCTAGAAGAT", 3) for g in genedata: print("%s (%d)" % (g.id, g.genelen)) print("-"*24) for t,startLoc,endLoc in searchseq.scanString(g.gene, overlap=True): matched, mismatches = t[0] print("MATCH:", searchseq.sequence) print("FOUND:", matched) if mismatches: print(" ", ''.join(' ' if i not in mismatches else '*' for i,c in enumerate(searchseq.sequence))) else: print("") print("at location", startLoc) print() print() pyparsing-2.2.0+dfsg1/examples/groupUsingListAllMatches.py0000644000175000017500000000077512752442036022373 0ustar zigozigo# # A simple example showing the use of the implied listAllMatches=True for # results names with a trailing '*' character. # # This example performs work similar to itertools.groupby, but without # having to sort the input first. # # Copyright 2004-2016, by Paul McGuire # from pyparsing import Word, ZeroOrMore, nums aExpr = Word("A", nums) bExpr = Word("B", nums) cExpr = Word("C", nums) grammar = ZeroOrMore(aExpr("A*") | bExpr("B*") | cExpr("C*")) grammar.runTests("A1 B1 A2 C1 B2 A3") pyparsing-2.2.0+dfsg1/examples/cLibHeader.py0000644000175000017500000000144612466013312017406 0ustar zigozigo# # cLibHeader.py # # A simple parser to extract API doc info from a C header file # # Copyright, 2012 - Paul McGuire # from pyparsing import Word, alphas, alphanums, Combine, oneOf, Optional, delimitedList, Group, Keyword testdata = """ int func1(float *vec, int len, double arg1); int func2(float **arr, float *vec, int len, double arg1, double arg2); """ ident = Word(alphas, alphanums + "_") vartype = Combine( oneOf("float double int char") + Optional(Word("*")), adjacent = False) arglist = delimitedList(Group(vartype("type") + ident("name"))) functionCall = Keyword("int") + ident("name") + "(" + arglist("args") + ")" + ";" for fn,s,e in functionCall.scanString(testdata): print(fn.name) for a in fn.args: print(" - %(name)s (%(type)s)" % a) pyparsing-2.2.0+dfsg1/examples/romanNumerals.py0000644000175000017500000000444612641072051020252 0ustar zigozigo# romanNumerals.py # # Copyright (c) 2006, Paul McGuire # from pyparsing import * def romanNumeralLiteral(numeralString, value): return Literal(numeralString).setParseAction(replaceWith(value)) one = romanNumeralLiteral("I",1) four = romanNumeralLiteral("IV",4) five = romanNumeralLiteral("V",5) nine = romanNumeralLiteral("IX",9) ten = romanNumeralLiteral("X",10) forty = romanNumeralLiteral("XL",40) fifty = romanNumeralLiteral("L",50) ninety = romanNumeralLiteral("XC",90) onehundred = romanNumeralLiteral("C",100) fourhundred = romanNumeralLiteral("CD",400) fivehundred = romanNumeralLiteral("D",500) ninehundred = romanNumeralLiteral("CM",900) onethousand = romanNumeralLiteral("M",1000) numeral = ( onethousand | ninehundred | fivehundred | fourhundred | onehundred | ninety | fifty | forty | ten | nine | five | four | one ).leaveWhitespace() romanNumeral = OneOrMore(numeral).setParseAction( lambda s,l,t : sum(t) ) # unit tests def makeRomanNumeral(n): def addDigit(n,limit,c,s): n -= limit s += c return n,s ret = "" while n >= 1000: n,ret = addDigit(n,1000,"M",ret) while n >= 900: n,ret = addDigit(n, 900,"CM",ret) while n >= 500: n,ret = addDigit(n, 500,"D",ret) while n >= 400: n,ret = addDigit(n, 400,"CD",ret) while n >= 100: n,ret = addDigit(n, 100,"C",ret) while n >= 90: n,ret = addDigit(n, 90,"XC",ret) while n >= 50: n,ret = addDigit(n, 50,"L",ret) while n >= 40: n,ret = addDigit(n, 40,"XL",ret) while n >= 10: n,ret = addDigit(n, 10,"X",ret) while n >= 9: n,ret = addDigit(n, 9,"IX",ret) while n >= 5: n,ret = addDigit(n, 5,"V",ret) while n >= 4: n,ret = addDigit(n, 4,"IV",ret) while n >= 1: n,ret = addDigit(n, 1,"I",ret) return ret tests = " ".join(makeRomanNumeral(i) for i in range(1,5000+1)) expected = 1 for t,s,e in romanNumeral.scanString(tests): if t[0] != expected: print("{} {} {}".format("==>", t, tests[s:e])) expected += 1 def test(rn): print("{} -> {}".format(rn, romanNumeral.parseString(rn)[0])) test("XVI") test("XXXIX") test("XIV") test("XIX") test("MCMLXXX") test("MMVI") pyparsing-2.2.0+dfsg1/examples/commasep.py0000644000175000017500000000142712752444271017241 0ustar zigozigo# commasep.py # # comma-separated list example, to illustrate the advantages of using # the pyparsing commaSeparatedList as opposed to string.split(","): # - leading and trailing whitespace is implicitly trimmed from list elements # - list elements can be quoted strings, which can safely contain commas without breaking # into separate elements # # Copyright (c) 2004-2016, Paul McGuire # from pyparsing import commaSeparatedList testData = [ "a,b,c,100.2,,3", "d, e, j k , m ", "'Hello, World', f, g , , 5.1,x", "John Doe, 123 Main St., Cleveland, Ohio", "Jane Doe, 456 St. James St., Los Angeles , California ", "", ] for line in testData: print(commaSeparatedList.parseString(line)) print(line.split(",")) print() pyparsing-2.2.0+dfsg1/examples/dfmparse.py0000644000175000017500000001555112752444115017236 0ustar zigozigo""" This module can parse a Delphi Form (dfm) file. The main is used in experimenting (to find which files fail to parse, and where), but isn't useful for anything else. """ __version__ = "1.0" __author__ = "Daniel 'Dang' Griffith " from pyparsing import Literal, CaselessLiteral, Word, delimitedList \ , Optional, Combine, Group, alphas, nums, alphanums, Forward \ , oneOf, sglQuotedString, OneOrMore, ZeroOrMore, CharsNotIn # This converts DFM character constants into Python string (unicode) values. def to_chr(x): """chr(x) if 0 < x < 128 ; unicode(x) if x > 127.""" return 0 < x < 128 and chr(x) or eval("u'\\u%d'" % x ) ################# # BEGIN GRAMMAR ################# COLON = Literal(":").suppress() CONCAT = Literal("+").suppress() EQUALS = Literal("=").suppress() LANGLE = Literal("<").suppress() LBRACE = Literal("[").suppress() LPAREN = Literal("(").suppress() PERIOD = Literal(".").suppress() RANGLE = Literal(">").suppress() RBRACE = Literal("]").suppress() RPAREN = Literal(")").suppress() CATEGORIES = CaselessLiteral("categories").suppress() END = CaselessLiteral("end").suppress() FONT = CaselessLiteral("font").suppress() HINT = CaselessLiteral("hint").suppress() ITEM = CaselessLiteral("item").suppress() OBJECT = CaselessLiteral("object").suppress() attribute_value_pair = Forward() # this is recursed in item_list_entry simple_identifier = Word(alphas, alphanums + "_") identifier = Combine( simple_identifier + ZeroOrMore( Literal(".") + simple_identifier )) object_name = identifier object_type = identifier # Integer and floating point values are converted to Python longs and floats, respectively. int_value = Combine(Optional("-") + Word(nums)).setParseAction(lambda s,l,t: [ int(t[0]) ] ) float_value = Combine(Optional("-") + Optional(Word(nums)) + "." + Word(nums)).setParseAction(lambda s,l,t: [ float(t[0]) ] ) number_value = float_value | int_value # Base16 constants are left in string form, including the surrounding braces. base16_value = Combine(Literal("{") + OneOrMore(Word("0123456789ABCDEFabcdef")) + Literal("}"), adjacent=False) # This is the first part of a hack to convert the various delphi partial sglQuotedStrings # into a single sglQuotedString equivalent. The gist of it is to combine # all sglQuotedStrings (with their surrounding quotes removed (suppressed)) # with sequences of #xyz character constants, with "strings" concatenated # with a '+' sign. unquoted_sglQuotedString = Combine( Literal("'").suppress() + ZeroOrMore( CharsNotIn("'\n\r") ) + Literal("'").suppress() ) # The parse action on this production converts repetitions of constants into a single string. pound_char = Combine( OneOrMore((Literal("#").suppress()+Word(nums) ).setParseAction( lambda s, l, t: to_chr(int(t[0]) )))) # This is the second part of the hack. It combines the various "unquoted" # partial strings into a single one. Then, the parse action puts # a single matched pair of quotes around it. delphi_string = Combine( OneOrMore(CONCAT | pound_char | unquoted_sglQuotedString) , adjacent=False ).setParseAction(lambda s, l, t: "'%s'" % t[0]) string_value = delphi_string | base16_value list_value = LBRACE + Optional(Group(delimitedList(identifier | number_value | string_value))) + RBRACE paren_list_value = LPAREN + ZeroOrMore(identifier | number_value | string_value) + RPAREN item_list_entry = ITEM + ZeroOrMore(attribute_value_pair) + END item_list = LANGLE + ZeroOrMore(item_list_entry) + RANGLE generic_value = identifier value = item_list | number_value | string_value | list_value | paren_list_value | generic_value category_attribute = CATEGORIES + PERIOD + oneOf("strings itemsvisibles visibles", True) event_attribute = oneOf("onactivate onclosequery onclose oncreate ondeactivate onhide onshow", True) font_attribute = FONT + PERIOD + oneOf("charset color height name style", True) hint_attribute = HINT layout_attribute = oneOf("left top width height", True) generic_attribute = identifier attribute = (category_attribute | event_attribute | font_attribute | hint_attribute | layout_attribute | generic_attribute) category_attribute_value_pair = category_attribute + EQUALS + paren_list_value event_attribute_value_pair = event_attribute + EQUALS + value font_attribute_value_pair = font_attribute + EQUALS + value hint_attribute_value_pair = hint_attribute + EQUALS + value layout_attribute_value_pair = layout_attribute + EQUALS + value generic_attribute_value_pair = attribute + EQUALS + value attribute_value_pair << Group( category_attribute_value_pair | event_attribute_value_pair | font_attribute_value_pair | hint_attribute_value_pair | layout_attribute_value_pair | generic_attribute_value_pair ) object_declaration = Group((OBJECT + object_name + COLON + object_type)) object_attributes = Group(ZeroOrMore(attribute_value_pair)) nested_object = Forward() object_definition = object_declaration + object_attributes + ZeroOrMore(nested_object) + END nested_object << Group(object_definition) ################# # END GRAMMAR ################# def printer(s, loc, tok): print(tok, end=' ') return tok def get_filename_list(tf): import sys, glob if tf == None: if len(sys.argv) > 1: tf = sys.argv[1:] else: tf = glob.glob("*.dfm") elif type(tf) == str: tf = [tf] testfiles = [] for arg in tf: testfiles.extend(glob.glob(arg)) return testfiles def main(testfiles=None, action=printer): """testfiles can be None, in which case the command line arguments are used as filenames. testfiles can be a string, in which case that file is parsed. testfiles can be a list. In all cases, the filenames will be globbed. If more than one file is parsed successfully, a dictionary of ParseResults is returned. Otherwise, a simple ParseResults is returned. """ testfiles = get_filename_list(testfiles) print(testfiles) if action: for i in (simple_identifier, value, item_list): i.setParseAction(action) success = 0 failures = [] retval = {} for f in testfiles: try: retval[f] = object_definition.parseFile(f) success += 1 except: failures.append(f) if failures: print('\nfailed while processing %s' % ', '.join(failures)) print('\nsucceeded on %d of %d files' %(success, len(testfiles))) if len(retval) == 1 and len(testfiles) == 1: # if only one file is parsed, return the parseResults directly return retval[list(retval.keys())[0]] # else, return a dictionary of parseResults return retval if __name__ == "__main__": main()pyparsing-2.2.0+dfsg1/examples/test_bibparse.py0000644000175000017500000001727312466013312020257 0ustar zigozigo""" Test for bibparse grammar """ from os.path import join as pjoin, dirname from pyparsing import ParseException from btpyparse import Macro import btpyparse as bp from nose.tools import assert_true, assert_false, assert_equal, assert_raises def test_names(): # check various types of names # All names can contains alphas, but not some special chars bad_chars = '"#%\'(),={}' for name_type, dig1f in ((bp.macro_def, False), (bp.field_name, False), (bp.entry_type, False), (bp.cite_key, True)): if dig1f: # can start with digit assert_equal(name_type.parseString('2t')[0], '2t') else: assert_raises(ParseException, name_type.parseString, '2t') # All of the names cannot contain some characters for char in bad_chars: assert_raises(ParseException, name_type.parseString, char) # standard strings all OK assert_equal(name_type.parseString('simple_test')[0], 'simple_test') # Test macro ref mr = bp.macro_ref # can't start with digit assert_raises(ParseException, mr.parseString, '2t') for char in bad_chars: assert_raises(ParseException, mr.parseString, char) assert_equal(mr.parseString('simple_test')[0].name, 'simple_test') def test_numbers(): assert_equal(bp.number.parseString('1066')[0], '1066') assert_equal(bp.number.parseString('0')[0], '0') assert_raises(ParseException, bp.number.parseString, '-4') assert_raises(ParseException, bp.number.parseString, '+4') assert_raises(ParseException, bp.number.parseString, '.4') # something point something leaves a trailing .4 unmatched assert_equal(bp.number.parseString('0.4')[0], '0') def test_parse_string(): # test string building blocks assert_equal(bp.chars_no_quotecurly.parseString('x')[0], 'x') assert_equal(bp.chars_no_quotecurly.parseString("a string")[0], 'a string') assert_equal(bp.chars_no_quotecurly.parseString('a "string')[0], 'a ') assert_equal(bp.chars_no_curly.parseString('x')[0], 'x') assert_equal(bp.chars_no_curly.parseString("a string")[0], 'a string') assert_equal(bp.chars_no_curly.parseString('a {string')[0], 'a ') assert_equal(bp.chars_no_curly.parseString('a }string')[0], 'a ') # test more general strings together for obj in (bp.curly_string, bp.string, bp.field_value): assert_equal(obj.parseString('{}').asList(), []) assert_equal(obj.parseString('{a "string}')[0], 'a "string') assert_equal(obj.parseString('{a {nested} string}').asList(), ['a ', ['nested'], ' string']) assert_equal(obj.parseString('{a {double {nested}} string}').asList(), ['a ', ['double ', ['nested']], ' string']) for obj in (bp.quoted_string, bp.string, bp.field_value): assert_equal(obj.parseString('""').asList(), []) assert_equal(obj.parseString('"a string"')[0], 'a string') assert_equal(obj.parseString('"a {nested} string"').asList(), ['a ', ['nested'], ' string']) assert_equal(obj.parseString('"a {double {nested}} string"').asList(), ['a ', ['double ', ['nested']], ' string']) # check macro def in string assert_equal(bp.string.parseString('someascii')[0], Macro('someascii')) assert_raises(ParseException, bp.string.parseString, '%#= validstring') # check number in string assert_equal(bp.string.parseString('1994')[0], '1994') def test_parse_field(): # test field value - hashes included fv = bp.field_value # Macro assert_equal(fv.parseString('aname')[0], Macro('aname')) assert_equal(fv.parseString('ANAME')[0], Macro('aname')) # String and macro assert_equal(fv.parseString('aname # "some string"').asList(), [Macro('aname'), 'some string']) # Nested string assert_equal(fv.parseString('aname # {some {string}}').asList(), [Macro('aname'), 'some ', ['string']]) # String and number assert_equal(fv.parseString('"a string" # 1994').asList(), ['a string', '1994']) # String and number and macro assert_equal(fv.parseString('"a string" # 1994 # a_macro').asList(), ['a string', '1994', Macro('a_macro')]) def test_comments(): res = bp.comment.parseString('@Comment{about something}') assert_equal(res.asList(), ['comment', '{about something}']) assert_equal( bp.comment.parseString('@COMMENT{about something').asList(), ['comment', '{about something']) assert_equal( bp.comment.parseString('@comment(about something').asList(), ['comment', '(about something']) assert_equal( bp.comment.parseString('@COMment about something').asList(), ['comment', ' about something']) assert_raises(ParseException, bp.comment.parseString, '@commentabout something') assert_raises(ParseException, bp.comment.parseString, '@comment+about something') assert_raises(ParseException, bp.comment.parseString, '@comment"about something') def test_preamble(): res = bp.preamble.parseString('@preamble{"about something"}') assert_equal(res.asList(), ['preamble', 'about something']) assert_equal(bp.preamble.parseString( '@PREamble{{about something}}').asList(), ['preamble', 'about something']) assert_equal(bp.preamble.parseString("""@PREamble{ {about something} }""").asList(), ['preamble', 'about something']) def test_macro(): res = bp.macro.parseString('@string{ANAME = "about something"}') assert_equal(res.asList(), ['string', 'aname', 'about something']) assert_equal( bp.macro.parseString('@string{aname = {about something}}').asList(), ['string', 'aname', 'about something']) def test_entry(): txt = """@some_entry{akey, aname = "about something", another={something else}}""" res = bp.entry.parseString(txt) assert_equal(res.asList(), ['some_entry', 'akey', ['aname', 'about something'], ['another', 'something else']]) # Case conversion txt = """@SOME_ENTRY{akey, ANAME = "about something", another={something else}}""" res = bp.entry.parseString(txt) assert_equal(res.asList(), ['some_entry', 'akey', ['aname', 'about something'], ['another', 'something else']]) def test_bibfile(): txt = """@some_entry{akey, aname = "about something", another={something else}}""" res = bp.bibfile.parseString(txt) assert_equal(res.asList(), [['some_entry', 'akey', ['aname', 'about something'], ['another', 'something else']]]) def test_bib1(): # First pass whole bib-like tests txt = """ Some introductory text (implicit comment) @ARTICLE{Brett2002marsbar, author = {Matthew Brett and Jean-Luc Anton and Romain Valabregue and Jean-Baptise Poline}, title = {{Region of interest analysis using an SPM toolbox}}, journal = {Neuroimage}, year = {2002}, volume = {16}, pages = {1140--1141}, number = {2} } @some_entry{akey, aname = "about something", another={something else}} """ res = bp.bibfile.parseString(txt) assert_equal(len(res), 3) res2 = bp.parse_str(txt) assert_equal(res.asList(), res2.asList()) res3 = [r.asList()[0] for r, start, end in bp.definitions.scanString(txt)] assert_equal(res.asList(), res3) if __name__ == '__main__': import nose nose.main() pyparsing-2.2.0+dfsg1/examples/listAllMatches.py0000644000175000017500000000312012641075634020336 0ustar zigozigo# listAllMatches.py # # Sample program showing how/when to use listAllMatches to get all matching tokens in a results name. # # copyright 2006, Paul McGuire # from pyparsing import oneOf, OneOrMore, printables, StringEnd test = "The quick brown fox named 'Aloysius' lives at 123 Main Street (and jumps over lazy dogs in his spare time)." nonAlphas = [ c for c in printables if not c.isalpha() ] print("Extract vowels, consonants, and special characters from this test string:") print("'" + test + "'") print('') print("Define grammar using normal results names") print("(only last matching symbol is saved)") vowels = oneOf(list("aeiouy"), caseless=True)("vowels") cons = oneOf(list("bcdfghjklmnpqrstvwxz"), caseless=True)("cons") other = oneOf(nonAlphas)("others") letters = OneOrMore(cons | vowels | other) + StringEnd() results = letters.parseString(test) print(results) print(results.vowels) print(results.cons) print(results.others) print('') print("Define grammar using results names, with listAllMatches=True") print("(all matching symbols are saved)") vowels = oneOf(list("aeiouy"), caseless=True)("vowels*") cons = oneOf(list("bcdfghjklmnpqrstvwxz"), caseless=True)("cons*") other = oneOf(nonAlphas)("others*") letters = OneOrMore(cons | vowels | other) results = letters.parseString(test, parseAll=True) print(results) print(sorted(set(results))) print('') print(results.vowels) print(sorted(set(results.vowels))) print('') print(results.cons) print(sorted(set(results.cons))) print('') print(results.others) print(sorted(set(results.others))) pyparsing-2.2.0+dfsg1/examples/select_parser.py0000644000175000017500000001375512765654357020313 0ustar zigozigo# select_parser.py # Copyright 2010, Paul McGuire # # a simple SELECT statement parser, taken from SQLite's SELECT statement # definition at http://www.sqlite.org/lang_select.html # from pyparsing import * ParserElement.enablePackrat() LPAR,RPAR,COMMA = map(Suppress,"(),") select_stmt = Forward().setName("select statement") # keywords (UNION, ALL, AND, INTERSECT, EXCEPT, COLLATE, ASC, DESC, ON, USING, NATURAL, INNER, CROSS, LEFT, OUTER, JOIN, AS, INDEXED, NOT, SELECT, DISTINCT, FROM, WHERE, GROUP, BY, HAVING, ORDER, BY, LIMIT, OFFSET, OR) = map(CaselessKeyword, """UNION, ALL, AND, INTERSECT, EXCEPT, COLLATE, ASC, DESC, ON, USING, NATURAL, INNER, CROSS, LEFT, OUTER, JOIN, AS, INDEXED, NOT, SELECT, DISTINCT, FROM, WHERE, GROUP, BY, HAVING, ORDER, BY, LIMIT, OFFSET, OR""".replace(",","").split()) (CAST, ISNULL, NOTNULL, NULL, IS, BETWEEN, ELSE, END, CASE, WHEN, THEN, EXISTS, COLLATE, IN, LIKE, GLOB, REGEXP, MATCH, ESCAPE, CURRENT_TIME, CURRENT_DATE, CURRENT_TIMESTAMP) = map(CaselessKeyword, """CAST, ISNULL, NOTNULL, NULL, IS, BETWEEN, ELSE, END, CASE, WHEN, THEN, EXISTS, COLLATE, IN, LIKE, GLOB, REGEXP, MATCH, ESCAPE, CURRENT_TIME, CURRENT_DATE, CURRENT_TIMESTAMP""".replace(",","").split()) keyword = MatchFirst((UNION, ALL, INTERSECT, EXCEPT, COLLATE, ASC, DESC, ON, USING, NATURAL, INNER, CROSS, LEFT, OUTER, JOIN, AS, INDEXED, NOT, SELECT, DISTINCT, FROM, WHERE, GROUP, BY, HAVING, ORDER, BY, LIMIT, OFFSET, CAST, ISNULL, NOTNULL, NULL, IS, BETWEEN, ELSE, END, CASE, WHEN, THEN, EXISTS, COLLATE, IN, LIKE, GLOB, REGEXP, MATCH, ESCAPE, CURRENT_TIME, CURRENT_DATE, CURRENT_TIMESTAMP)) identifier = ~keyword + Word(alphas, alphanums+"_") collation_name = identifier.copy() column_name = identifier.copy() column_alias = identifier.copy() table_name = identifier.copy() table_alias = identifier.copy() index_name = identifier.copy() function_name = identifier.copy() parameter_name = identifier.copy() database_name = identifier.copy() # expression expr = Forward().setName("expression") integer = Regex(r"[+-]?\d+") numeric_literal = Regex(r"\d+(\.\d*)?([eE][+-]?\d+)?") string_literal = QuotedString("'") blob_literal = Regex(r"[xX]'[0-9A-Fa-f]+'") literal_value = ( numeric_literal | string_literal | blob_literal | NULL | CURRENT_TIME | CURRENT_DATE | CURRENT_TIMESTAMP ) bind_parameter = ( Word("?",nums) | Combine(oneOf(": @ $") + parameter_name) ) type_name = oneOf("TEXT REAL INTEGER BLOB NULL") expr_term = ( CAST + LPAR + expr + AS + type_name + RPAR | EXISTS + LPAR + select_stmt + RPAR | function_name.setName("function_name") + LPAR + Optional("*" | delimitedList(expr)) + RPAR | literal_value | bind_parameter | Combine(identifier+('.'+identifier)*(0,2)).setName("ident") ) UNARY,BINARY,TERNARY=1,2,3 expr << infixNotation(expr_term, [ (oneOf('- + ~') | NOT, UNARY, opAssoc.RIGHT), (ISNULL | NOTNULL | NOT + NULL, UNARY, opAssoc.LEFT), ('||', BINARY, opAssoc.LEFT), (oneOf('* / %'), BINARY, opAssoc.LEFT), (oneOf('+ -'), BINARY, opAssoc.LEFT), (oneOf('<< >> & |'), BINARY, opAssoc.LEFT), (oneOf('< <= > >='), BINARY, opAssoc.LEFT), (oneOf('= == != <>') | IS | IN | LIKE | GLOB | MATCH | REGEXP, BINARY, opAssoc.LEFT), ((BETWEEN,AND), TERNARY, opAssoc.LEFT), (IN + LPAR + Group(select_stmt | delimitedList(expr)) + RPAR, UNARY, opAssoc.LEFT), (AND, BINARY, opAssoc.LEFT), (OR, BINARY, opAssoc.LEFT), ]) compound_operator = (UNION + Optional(ALL) | INTERSECT | EXCEPT) ordering_term = Group(expr('order_key') + Optional(COLLATE + collation_name('collate')) + Optional(ASC | DESC)('direction')) join_constraint = Group(Optional(ON + expr | USING + LPAR + Group(delimitedList(column_name)) + RPAR)) join_op = COMMA | Group(Optional(NATURAL) + Optional(INNER | CROSS | LEFT + OUTER | LEFT | OUTER) + JOIN) join_source = Forward() single_source = ( (Group(database_name("database") + "." + table_name("table*")) | table_name("table*")) + Optional(Optional(AS) + table_alias("table_alias*")) + Optional(INDEXED + BY + index_name("name") | NOT + INDEXED)("index") | (LPAR + select_stmt + RPAR + Optional(Optional(AS) + table_alias)) | (LPAR + join_source + RPAR) ) join_source << (Group(single_source + OneOrMore(join_op + single_source + join_constraint)) | single_source) result_column = "*" | table_name + "." + "*" | Group(expr + Optional(Optional(AS) + column_alias)) select_core = (SELECT + Optional(DISTINCT | ALL) + Group(delimitedList(result_column))("columns") + Optional(FROM + join_source("from*")) + Optional(WHERE + expr("where_expr")) + Optional(GROUP + BY + Group(delimitedList(ordering_term)("group_by_terms")) + Optional(HAVING + expr("having_expr")))) select_stmt << (select_core + ZeroOrMore(compound_operator + select_core) + Optional(ORDER + BY + Group(delimitedList(ordering_term))("order_by_terms")) + Optional(LIMIT + (Group(expr + OFFSET + expr) | Group(expr + COMMA + expr) | expr)("limit"))) tests = """\ select * from xyzzy where z > 100 select * from xyzzy where z > 100 order by zz select * from xyzzy select z.* from xyzzy select a, b from test_table where 1=1 and b='yes' select a, b from test_table where 1=1 and b in (select bb from foo) select z.a, b from test_table where 1=1 and b in (select bb from foo) select z.a, b from test_table where 1=1 and b in (select bb from foo) order by b,c desc,d select z.a, b from test_table left join test2_table where 1=1 and b in (select bb from foo) select a, db.table.b as BBB from db.table where 1=1 and BBB='yes' select a, db.table.b as BBB from test_table,db.table where 1=1 and BBB='yes' select a, db.table.b as BBB from test_table,db.table where 1=1 and BBB='yes' limit 50 """ select_stmt.runTests(tests) pyparsing-2.2.0+dfsg1/examples/shapes.py0000644000175000017500000000326312466013312016706 0ustar zigozigo# shapes.py # # A sample program showing how parse actions can convert parsed # strings into a data type or object. # # Copyright 2012, Paul T. McGuire # # define class hierarchy of Shape classes, with polymorphic area method class Shape(object): def __init__(self, tokens): self.__dict__.update(tokens.asDict()) def area(self): raise NotImplementedException() def __str__(self): return "<%s>: %s" % (self.__class__.__name__, self.__dict__) class Square(Shape): def area(self): return self.side**2 class Rectangle(Shape): def area(self): return self.width * self.height class Circle(Shape): def area(self): return 3.14159 * self.radius**2 from pyparsing import * number = Regex(r'-?\d+(\.\d*)?').setParseAction(lambda t:float(t[0])) # Shape expressions: # square : S # rectangle: R # circle : C squareDefn = "S" + number('centerx') + number('centery') + number('side') rectDefn = "R" + number('centerx') + number('centery') + number('width') + number('height') circleDefn = "C" + number('centerx') + number('centery') + number('diameter') squareDefn.setParseAction(Square) rectDefn.setParseAction(Rectangle) def computeRadius(tokens): tokens['radius'] = tokens.diameter/2.0 circleDefn.setParseAction(computeRadius, Circle) shapeExpr = squareDefn | rectDefn | circleDefn tests = """\ C 0 0 100 R 10 10 20 50 S -1 5 10""".splitlines() for t in tests: shape = shapeExpr.parseString(t)[0] print(shape) print("Area:", shape.area()) print() pyparsing-2.2.0+dfsg1/examples/verilogParse.py0000644000175000017500000007614013056137070020075 0ustar zigozigo# # verilogParse.py # # an example of using the pyparsing module to be able to process Verilog files # uses BNF defined at http://www.verilog.com/VerilogBNF.html # # Copyright (c) 2004-2011 Paul T. McGuire. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, # distribute, sublicense, and/or sell copies of the Software, and to # permit persons to whom the Software is furnished to do so, subject to # the following conditions: # # The above copyright notice and this permission notice shall be # included in all copies or substantial portions of the Software. # # If you find this software to be useful, please make a donation to one # of the following charities: # - the Red Cross (http://www.redcross.org) # - Hospice Austin (http://www.hospiceaustin.org) # # DISCLAIMER: # THIS SOFTWARE IS PROVIDED BY PAUL T. McGUIRE ``AS IS'' AND ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO # EVENT SHALL PAUL T. McGUIRE OR CO-CONTRIBUTORS BE LIABLE FOR ANY DIRECT, # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OFUSE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY # OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, # EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # For questions or inquiries regarding this license, or commercial use of # this software, contact the author via e-mail: ptmcg@users.sourceforge.net # # Todo: # - add pre-process pass to implement compilerDirectives (ifdef, include, etc.) # # Revision History: # # 1.0 - Initial release # 1.0.1 - Fixed grammar errors: # . real declaration was incorrect # . tolerant of '=>' for '*>' operator # . tolerant of '?' as hex character # . proper handling of mintypmax_expr within path delays # 1.0.2 - Performance tuning (requires pyparsing 1.3) # 1.0.3 - Performance updates, using Regex (requires pyparsing 1.4) # 1.0.4 - Performance updates, enable packrat parsing (requires pyparsing 1.4.2) # 1.0.5 - Converted keyword Literals to Keywords, added more use of Group to # group parsed results tokens # 1.0.6 - Added support for module header with no ports list (thanks, Thomas Dejanovic!) # 1.0.7 - Fixed erroneous '<<' Forward definition in timCheckCond, omitting ()'s # 1.0.8 - Re-released under MIT license # 1.0.9 - Enhanced udpInstance to handle identifiers with leading '\' and subscripting # 1.0.10 - Fixed change added in 1.0.9 to work for all identifiers, not just those used # for udpInstance. # 1.0.11 - Fixed bug in inst_args, content alternatives were reversed # import pdb import time import pprint import sys __version__ = "1.0.11" from pyparsing import Literal, CaselessLiteral, Keyword, Word, OneOrMore, ZeroOrMore, \ Forward, NotAny, delimitedList, Group, Optional, Combine, alphas, nums, restOfLine, cStyleComment, \ alphanums, printables, dblQuotedString, empty, ParseException, ParseResults, MatchFirst, oneOf, GoToColumn, \ ParseResults,StringEnd, FollowedBy, ParserElement, And, Regex, cppStyleComment#,__version__ import pyparsing usePackrat = False usePsyco = False packratOn = False psycoOn = False if usePackrat: try: ParserElement.enablePackrat() except: pass else: packratOn = True # comment out this section to disable psyco function compilation if usePsyco: try: import psyco psyco.full() except: print("failed to import psyco Python optimizer") else: psycoOn = True def dumpTokens(s,l,t): import pprint pprint.pprint( t.asList() ) verilogbnf = None def Verilog_BNF(): global verilogbnf if verilogbnf is None: # compiler directives compilerDirective = Combine( "`" + \ oneOf("define undef ifdef else endif default_nettype " "include resetall timescale unconnected_drive " "nounconnected_drive celldefine endcelldefine") + \ restOfLine ).setName("compilerDirective") # primitives SEMI,COLON,LPAR,RPAR,LBRACE,RBRACE,LBRACK,RBRACK,DOT,COMMA,EQ = map(Literal,";:(){}[].,=") identLead = alphas+"$_" identBody = alphanums+"$_" identifier1 = Regex( r"\.?["+identLead+"]["+identBody+r"]*(\.["+identLead+"]["+identBody+"]*)*" ).setName("baseIdent") identifier2 = Regex(r"\\\S+").setParseAction(lambda t:t[0][1:]).setName("escapedIdent")#.setDebug() identifier = identifier1 | identifier2 assert(identifier2 == r'\abc') hexnums = nums + "abcdefABCDEF" + "_?" base = Regex("'[bBoOdDhH]").setName("base") basedNumber = Combine( Optional( Word(nums + "_") ) + base + Word(hexnums+"xXzZ"), joinString=" ", adjacent=False ).setName("basedNumber") #~ number = ( basedNumber | Combine( Word( "+-"+spacedNums, spacedNums ) + #~ Optional( DOT + Optional( Word( spacedNums ) ) ) + #~ Optional( e + Word( "+-"+spacedNums, spacedNums ) ) ).setName("numeric") ) number = ( basedNumber | \ Regex(r"[+-]?[0-9_]+(\.[0-9_]*)?([Ee][+-]?[0-9_]+)?") \ ).setName("numeric") #~ decnums = nums + "_" #~ octnums = "01234567" + "_" expr = Forward().setName("expr") concat = Group( LBRACE + delimitedList( expr ) + RBRACE ) multiConcat = Group("{" + expr + concat + "}").setName("multiConcat") funcCall = Group(identifier + LPAR + Optional( delimitedList( expr ) ) + RPAR).setName("funcCall") subscrRef = Group(LBRACK + delimitedList( expr, COLON ) + RBRACK) subscrIdentifier = Group( identifier + Optional( subscrRef ) ) #~ scalarConst = "0" | (( FollowedBy('1') + oneOf("1'b0 1'b1 1'bx 1'bX 1'B0 1'B1 1'Bx 1'BX 1") )) scalarConst = Regex("0|1('[Bb][01xX])?") mintypmaxExpr = Group( expr + COLON + expr + COLON + expr ).setName("mintypmax") primary = ( number | (LPAR + mintypmaxExpr + RPAR ) | ( LPAR + Group(expr) + RPAR ).setName("nestedExpr") | multiConcat | concat | dblQuotedString | funcCall | subscrIdentifier ) unop = oneOf( "+ - ! ~ & ~& | ^| ^ ~^" ).setName("unop") binop = oneOf( "+ - * / % == != === !== && " "|| < <= > >= & | ^ ^~ >> << ** <<< >>>" ).setName("binop") expr << ( ( unop + expr ) | # must be first! ( primary + "?" + expr + COLON + expr ) | ( primary + Optional( binop + expr ) ) ) lvalue = subscrIdentifier | concat # keywords if_ = Keyword("if") else_ = Keyword("else") edge = Keyword("edge") posedge = Keyword("posedge") negedge = Keyword("negedge") specify = Keyword("specify") endspecify = Keyword("endspecify") fork = Keyword("fork") join = Keyword("join") begin = Keyword("begin") end = Keyword("end") default = Keyword("default") forever = Keyword("forever") repeat = Keyword("repeat") while_ = Keyword("while") for_ = Keyword("for") case = oneOf( "case casez casex" ) endcase = Keyword("endcase") wait = Keyword("wait") disable = Keyword("disable") deassign = Keyword("deassign") force = Keyword("force") release = Keyword("release") assign = Keyword("assign") eventExpr = Forward() eventTerm = ( posedge + expr ) | ( negedge + expr ) | expr | ( LPAR + eventExpr + RPAR ) eventExpr << ( Group( delimitedList( eventTerm, Keyword("or") ) ) ) eventControl = Group( "@" + ( ( LPAR + eventExpr + RPAR ) | identifier | "*" ) ).setName("eventCtrl") delayArg = ( number | Word(alphanums+"$_") | #identifier | ( LPAR + Group( delimitedList( mintypmaxExpr | expr ) ) + RPAR ) ).setName("delayArg")#.setDebug() delay = Group( "#" + delayArg ).setName("delay")#.setDebug() delayOrEventControl = delay | eventControl assgnmt = Group( lvalue + EQ + Optional( delayOrEventControl ) + expr ).setName( "assgnmt" ) nbAssgnmt = Group(( lvalue + "<=" + Optional( delay ) + expr ) | ( lvalue + "<=" + Optional( eventControl ) + expr )).setName( "nbassgnmt" ) range = LBRACK + expr + COLON + expr + RBRACK paramAssgnmt = Group( identifier + EQ + expr ).setName("paramAssgnmt") parameterDecl = Group( "parameter" + Optional( range ) + delimitedList( paramAssgnmt ) + SEMI).setName("paramDecl") inputDecl = Group( "input" + Optional( range ) + delimitedList( identifier ) + SEMI ) outputDecl = Group( "output" + Optional( range ) + delimitedList( identifier ) + SEMI ) inoutDecl = Group( "inout" + Optional( range ) + delimitedList( identifier ) + SEMI ) regIdentifier = Group( identifier + Optional( LBRACK + expr + COLON + expr + RBRACK ) ) regDecl = Group( "reg" + Optional("signed") + Optional( range ) + delimitedList( regIdentifier ) + SEMI ).setName("regDecl") timeDecl = Group( "time" + delimitedList( regIdentifier ) + SEMI ) integerDecl = Group( "integer" + delimitedList( regIdentifier ) + SEMI ) strength0 = oneOf("supply0 strong0 pull0 weak0 highz0") strength1 = oneOf("supply1 strong1 pull1 weak1 highz1") driveStrength = Group( LPAR + ( ( strength0 + COMMA + strength1 ) | ( strength1 + COMMA + strength0 ) ) + RPAR ).setName("driveStrength") nettype = oneOf("wire tri tri1 supply0 wand triand tri0 supply1 wor trior trireg") expandRange = Optional( oneOf("scalared vectored") ) + range realDecl = Group( "real" + delimitedList( identifier ) + SEMI ) eventDecl = Group( "event" + delimitedList( identifier ) + SEMI ) blockDecl = ( parameterDecl | regDecl | integerDecl | realDecl | timeDecl | eventDecl ) stmt = Forward().setName("stmt")#.setDebug() stmtOrNull = stmt | SEMI caseItem = ( delimitedList( expr ) + COLON + stmtOrNull ) | \ ( default + Optional(":") + stmtOrNull ) stmt << Group( ( begin + Group( ZeroOrMore( stmt ) ) + end ).setName("begin-end") | ( if_ + Group(LPAR + expr + RPAR) + stmtOrNull + Optional( else_ + stmtOrNull ) ).setName("if") | ( delayOrEventControl + stmtOrNull ) | ( case + LPAR + expr + RPAR + OneOrMore( caseItem ) + endcase ) | ( forever + stmt ) | ( repeat + LPAR + expr + RPAR + stmt ) | ( while_ + LPAR + expr + RPAR + stmt ) | ( for_ + LPAR + assgnmt + SEMI + Group( expr ) + SEMI + assgnmt + RPAR + stmt ) | ( fork + ZeroOrMore( stmt ) + join ) | ( fork + COLON + identifier + ZeroOrMore( blockDecl ) + ZeroOrMore( stmt ) + end ) | ( wait + LPAR + expr + RPAR + stmtOrNull ) | ( "->" + identifier + SEMI ) | ( disable + identifier + SEMI ) | ( assign + assgnmt + SEMI ) | ( deassign + lvalue + SEMI ) | ( force + assgnmt + SEMI ) | ( release + lvalue + SEMI ) | ( begin + COLON + identifier + ZeroOrMore( blockDecl ) + ZeroOrMore( stmt ) + end ).setName("begin:label-end") | # these *have* to go at the end of the list!!! ( assgnmt + SEMI ) | ( nbAssgnmt + SEMI ) | ( Combine( Optional("$") + identifier ) + Optional( LPAR + delimitedList(expr|empty) + RPAR ) + SEMI ) ).setName("stmtBody") """ x::= ; x||= ; x||= if ( ) x||= if ( ) else x||= case ( ) + endcase x||= casez ( ) + endcase x||= casex ( ) + endcase x||= forever x||= repeat ( ) x||= while ( ) x||= for ( ; ; ) x||= x||= wait ( ) x||= -> ; x||= x||= x||= x||= x||= disable ; x||= disable ; x||= assign ; x||= deassign ; x||= force ; x||= release ; """ alwaysStmt = Group( "always" + Optional(eventControl) + stmt ).setName("alwaysStmt") initialStmt = Group( "initial" + stmt ).setName("initialStmt") chargeStrength = Group( LPAR + oneOf( "small medium large" ) + RPAR ).setName("chargeStrength") continuousAssign = Group( assign + Optional( driveStrength ) + Optional( delay ) + delimitedList( assgnmt ) + SEMI ).setName("continuousAssign") tfDecl = ( parameterDecl | inputDecl | outputDecl | inoutDecl | regDecl | timeDecl | integerDecl | realDecl ) functionDecl = Group( "function" + Optional( range | "integer" | "real" ) + identifier + SEMI + Group( OneOrMore( tfDecl ) ) + Group( ZeroOrMore( stmt ) ) + "endfunction" ) inputOutput = oneOf("input output") netDecl1Arg = ( nettype + Optional( expandRange ) + Optional( delay ) + Group( delimitedList( ~inputOutput + identifier ) ) ) netDecl2Arg = ( "trireg" + Optional( chargeStrength ) + Optional( expandRange ) + Optional( delay ) + Group( delimitedList( ~inputOutput + identifier ) ) ) netDecl3Arg = ( nettype + Optional( driveStrength ) + Optional( expandRange ) + Optional( delay ) + Group( delimitedList( assgnmt ) ) ) netDecl1 = Group(netDecl1Arg + SEMI).setName("netDecl1") netDecl2 = Group(netDecl2Arg + SEMI).setName("netDecl2") netDecl3 = Group(netDecl3Arg + SEMI).setName("netDecl3") gateType = oneOf("and nand or nor xor xnor buf bufif0 bufif1 " "not notif0 notif1 pulldown pullup nmos rnmos " "pmos rpmos cmos rcmos tran rtran tranif0 " "rtranif0 tranif1 rtranif1" ) gateInstance = Optional( Group( identifier + Optional( range ) ) ) + \ LPAR + Group( delimitedList( expr ) ) + RPAR gateDecl = Group( gateType + Optional( driveStrength ) + Optional( delay ) + delimitedList( gateInstance) + SEMI ) udpInstance = Group( Group( identifier + Optional(range | subscrRef) ) + LPAR + Group( delimitedList( expr ) ) + RPAR ) udpInstantiation = Group( identifier - Optional( driveStrength ) + Optional( delay ) + delimitedList( udpInstance ) + SEMI ).setName("udpInstantiation") parameterValueAssignment = Group( Literal("#") + LPAR + Group( delimitedList( expr ) ) + RPAR ) namedPortConnection = Group( DOT + identifier + LPAR + expr + RPAR ).setName("namedPortConnection")#.setDebug() assert(r'.\abc (abc )' == namedPortConnection) modulePortConnection = expr | empty #~ moduleInstance = Group( Group ( identifier + Optional(range) ) + #~ ( delimitedList( modulePortConnection ) | #~ delimitedList( namedPortConnection ) ) ) inst_args = Group( LPAR + (delimitedList( namedPortConnection ) | delimitedList( modulePortConnection )) + RPAR).setName("inst_args") moduleInstance = Group( Group ( identifier + Optional(range) ) + inst_args ).setName("moduleInstance")#.setDebug() moduleInstantiation = Group( identifier + Optional( parameterValueAssignment ) + delimitedList( moduleInstance ).setName("moduleInstanceList") + SEMI ).setName("moduleInstantiation") parameterOverride = Group( "defparam" + delimitedList( paramAssgnmt ) + SEMI ) task = Group( "task" + identifier + SEMI + ZeroOrMore( tfDecl ) + stmtOrNull + "endtask" ) specparamDecl = Group( "specparam" + delimitedList( paramAssgnmt ) + SEMI ) pathDescr1 = Group( LPAR + subscrIdentifier + "=>" + subscrIdentifier + RPAR ) pathDescr2 = Group( LPAR + Group( delimitedList( subscrIdentifier ) ) + "*>" + Group( delimitedList( subscrIdentifier ) ) + RPAR ) pathDescr3 = Group( LPAR + Group( delimitedList( subscrIdentifier ) ) + "=>" + Group( delimitedList( subscrIdentifier ) ) + RPAR ) pathDelayValue = Group( ( LPAR + Group( delimitedList( mintypmaxExpr | expr ) ) + RPAR ) | mintypmaxExpr | expr ) pathDecl = Group( ( pathDescr1 | pathDescr2 | pathDescr3 ) + EQ + pathDelayValue + SEMI ).setName("pathDecl") portConditionExpr = Forward() portConditionTerm = Optional(unop) + subscrIdentifier portConditionExpr << portConditionTerm + Optional( binop + portConditionExpr ) polarityOp = oneOf("+ -") levelSensitivePathDecl1 = Group( if_ + Group(LPAR + portConditionExpr + RPAR) + subscrIdentifier + Optional( polarityOp ) + "=>" + subscrIdentifier + EQ + pathDelayValue + SEMI ) levelSensitivePathDecl2 = Group( if_ + Group(LPAR + portConditionExpr + RPAR) + LPAR + Group( delimitedList( subscrIdentifier ) ) + Optional( polarityOp ) + "*>" + Group( delimitedList( subscrIdentifier ) ) + RPAR + EQ + pathDelayValue + SEMI ) levelSensitivePathDecl = levelSensitivePathDecl1 | levelSensitivePathDecl2 edgeIdentifier = posedge | negedge edgeSensitivePathDecl1 = Group( Optional( if_ + Group(LPAR + expr + RPAR) ) + LPAR + Optional( edgeIdentifier ) + subscrIdentifier + "=>" + LPAR + subscrIdentifier + Optional( polarityOp ) + COLON + expr + RPAR + RPAR + EQ + pathDelayValue + SEMI ) edgeSensitivePathDecl2 = Group( Optional( if_ + Group(LPAR + expr + RPAR) ) + LPAR + Optional( edgeIdentifier ) + subscrIdentifier + "*>" + LPAR + delimitedList( subscrIdentifier ) + Optional( polarityOp ) + COLON + expr + RPAR + RPAR + EQ + pathDelayValue + SEMI ) edgeSensitivePathDecl = edgeSensitivePathDecl1 | edgeSensitivePathDecl2 edgeDescr = oneOf("01 10 0x x1 1x x0").setName("edgeDescr") timCheckEventControl = Group( posedge | negedge | (edge + LBRACK + delimitedList( edgeDescr ) + RBRACK )) timCheckCond = Forward() timCondBinop = oneOf("== === != !==") timCheckCondTerm = ( expr + timCondBinop + scalarConst ) | ( Optional("~") + expr ) timCheckCond << ( ( LPAR + timCheckCond + RPAR ) | timCheckCondTerm ) timCheckEvent = Group( Optional( timCheckEventControl ) + subscrIdentifier + Optional( "&&&" + timCheckCond ) ) timCheckLimit = expr controlledTimingCheckEvent = Group( timCheckEventControl + subscrIdentifier + Optional( "&&&" + timCheckCond ) ) notifyRegister = identifier systemTimingCheck1 = Group( "$setup" + LPAR + timCheckEvent + COMMA + timCheckEvent + COMMA + timCheckLimit + Optional( COMMA + notifyRegister ) + RPAR + SEMI ) systemTimingCheck2 = Group( "$hold" + LPAR + timCheckEvent + COMMA + timCheckEvent + COMMA + timCheckLimit + Optional( COMMA + notifyRegister ) + RPAR + SEMI ) systemTimingCheck3 = Group( "$period" + LPAR + controlledTimingCheckEvent + COMMA + timCheckLimit + Optional( COMMA + notifyRegister ) + RPAR + SEMI ) systemTimingCheck4 = Group( "$width" + LPAR + controlledTimingCheckEvent + COMMA + timCheckLimit + Optional( COMMA + expr + COMMA + notifyRegister ) + RPAR + SEMI ) systemTimingCheck5 = Group( "$skew" + LPAR + timCheckEvent + COMMA + timCheckEvent + COMMA + timCheckLimit + Optional( COMMA + notifyRegister ) + RPAR + SEMI ) systemTimingCheck6 = Group( "$recovery" + LPAR + controlledTimingCheckEvent + COMMA + timCheckEvent + COMMA + timCheckLimit + Optional( COMMA + notifyRegister ) + RPAR + SEMI ) systemTimingCheck7 = Group( "$setuphold" + LPAR + timCheckEvent + COMMA + timCheckEvent + COMMA + timCheckLimit + COMMA + timCheckLimit + Optional( COMMA + notifyRegister ) + RPAR + SEMI ) systemTimingCheck = (FollowedBy('$') + ( systemTimingCheck1 | systemTimingCheck2 | systemTimingCheck3 | systemTimingCheck4 | systemTimingCheck5 | systemTimingCheck6 | systemTimingCheck7 )).setName("systemTimingCheck") sdpd = if_ + Group(LPAR + expr + RPAR) + \ ( pathDescr1 | pathDescr2 ) + EQ + pathDelayValue + SEMI specifyItem = ~Keyword("endspecify") +( specparamDecl | pathDecl | levelSensitivePathDecl | edgeSensitivePathDecl | systemTimingCheck | sdpd ) """ x::= x||= x||= x||= x||= x||= """ specifyBlock = Group( "specify" + ZeroOrMore( specifyItem ) + "endspecify" ).setName("specifyBlock") moduleItem = ~Keyword("endmodule") + ( parameterDecl | inputDecl | outputDecl | inoutDecl | regDecl | netDecl3 | netDecl1 | netDecl2 | timeDecl | integerDecl | realDecl | eventDecl | gateDecl | parameterOverride | continuousAssign | specifyBlock | initialStmt | alwaysStmt | task | functionDecl | # these have to be at the end - they start with identifiers moduleInstantiation | udpInstantiation ) """ All possible moduleItems, from Verilog grammar spec x::= x||= x||= x||= ?||= (spec does not seem consistent for this item) x||= x||= x||= x||= x||= x||= x||= x||= x||= x||= x||= x||= x||= x||= x||= """ portRef = subscrIdentifier portExpr = portRef | Group( LBRACE + delimitedList( portRef ) + RBRACE ) port = portExpr | Group( ( DOT + identifier + LPAR + portExpr + RPAR ) ) moduleHdr = Group ( oneOf("module macromodule") + identifier + Optional( LPAR + Group( Optional( delimitedList( Group(oneOf("input output") + (netDecl1Arg | netDecl2Arg | netDecl3Arg) ) | port ) ) ) + RPAR ) + SEMI ).setName("moduleHdr") module = Group( moduleHdr + Group( ZeroOrMore( moduleItem ) ) + "endmodule" ).setName("module")#.setDebug() udpDecl = outputDecl | inputDecl | regDecl #~ udpInitVal = oneOf("1'b0 1'b1 1'bx 1'bX 1'B0 1'B1 1'Bx 1'BX 1 0 x X") udpInitVal = (Regex("1'[bB][01xX]") | Regex("[01xX]")).setName("udpInitVal") udpInitialStmt = Group( "initial" + identifier + EQ + udpInitVal + SEMI ).setName("udpInitialStmt") levelSymbol = oneOf("0 1 x X ? b B") levelInputList = Group( OneOrMore( levelSymbol ).setName("levelInpList") ) outputSymbol = oneOf("0 1 x X") combEntry = Group( levelInputList + COLON + outputSymbol + SEMI ) edgeSymbol = oneOf("r R f F p P n N *") edge = Group( LPAR + levelSymbol + levelSymbol + RPAR ) | \ Group( edgeSymbol ) edgeInputList = Group( ZeroOrMore( levelSymbol ) + edge + ZeroOrMore( levelSymbol ) ) inputList = levelInputList | edgeInputList seqEntry = Group( inputList + COLON + levelSymbol + COLON + ( outputSymbol | "-" ) + SEMI ).setName("seqEntry") udpTableDefn = Group( "table" + OneOrMore( combEntry | seqEntry ) + "endtable" ).setName("table") """ ::= primitive ( <,>* ) ; + ? endprimitive """ udp = Group( "primitive" + identifier + LPAR + Group( delimitedList( identifier ) ) + RPAR + SEMI + OneOrMore( udpDecl ) + Optional( udpInitialStmt ) + udpTableDefn + "endprimitive" ) verilogbnf = OneOrMore( module | udp ) + StringEnd() verilogbnf.ignore( cppStyleComment ) verilogbnf.ignore( compilerDirective ) return verilogbnf def test( strng ): tokens = [] try: tokens = Verilog_BNF().parseString( strng ) except ParseException as err: print(err.line) print(" "*(err.column-1) + "^") print(err) return tokens #~ if __name__ == "__main__": if 0: import pprint toptest = """ module TOP( in, out ); input [7:0] in; output [5:0] out; COUNT_BITS8 count_bits( .IN( in ), .C( out ) ); endmodule""" pprint.pprint( test(toptest).asList() ) else: def main(): print("Verilog parser test (V %s)" % __version__) print(" - using pyparsing version", pyparsing.__version__) print(" - using Python version", sys.version) if packratOn: print(" - using packrat parsing") if psycoOn: print(" - using psyco runtime optimization") print() import os import gc failCount = 0 Verilog_BNF() numlines = 0 startTime = time.clock() fileDir = "verilog" #~ fileDir = "verilog/new" #~ fileDir = "verilog/new2" #~ fileDir = "verilog/new3" allFiles = [f for f in os.listdir(fileDir) if f.endswith(".v")] #~ allFiles = [ "list_path_delays_test.v" ] #~ allFiles = [ "escapedIdent.v" ] #~ allFiles = filter( lambda f : f.startswith("a") and f.endswith(".v"), os.listdir(fileDir) ) #~ allFiles = filter( lambda f : f.startswith("c") and f.endswith(".v"), os.listdir(fileDir) ) #~ allFiles = [ "ff.v" ] pp = pprint.PrettyPrinter( indent=2 ) totalTime = 0 for vfile in allFiles: gc.collect() fnam = fileDir + "/"+vfile infile = open(fnam) filelines = infile.readlines() infile.close() print(fnam, len(filelines), end=' ') numlines += len(filelines) teststr = "".join(filelines) time1 = time.clock() tokens = test( teststr ) time2 = time.clock() elapsed = time2-time1 totalTime += elapsed if ( len( tokens ) ): print("OK", elapsed) #~ print "tokens=" #~ pp.pprint( tokens.asList() ) #~ print ofnam = fileDir + "/parseOutput/" + vfile + ".parsed.txt" outfile = open(ofnam,"w") outfile.write( teststr ) outfile.write("\n") outfile.write("\n") outfile.write(pp.pformat(tokens.asList())) outfile.write("\n") outfile.close() else: print("failed", elapsed) failCount += 1 for i,line in enumerate(filelines,1): print("%4d: %s" % (i,line.rstrip())) endTime = time.clock() print("Total parse time:", totalTime) print("Total source lines:", numlines) print("Average lines/sec:", ( "%.1f" % (float(numlines)/(totalTime+.05 ) ) )) if failCount: print("FAIL - %d files failed to parse" % failCount) else: print("SUCCESS - all files parsed") return 0 #~ from line_profiler import LineProfiler #~ from pyparsing import ParseResults #~ lp = LineProfiler(ParseResults.__init__) main() #~ lp.print_stats() #~ import hotshot #~ p = hotshot.Profile("vparse.prof",1,1) #~ p.start() #~ main() #~ p.stop() #~ p.close() pyparsing-2.2.0+dfsg1/examples/searchParserAppDemo.py0000644000175000017500000000165112641056472021323 0ustar zigozigofrom searchparser import SearchQueryParser products = [ "grape juice", "grape jelly", "orange juice", "orange jujubees", "strawberry jam", "prune juice", "prune butter", "orange marmalade", "grapefruit juice" ] class FruitSearchParser(SearchQueryParser): def GetWord(self, word): return set( p for p in products if p.startswith(word + " ") ) def GetWordWildcard(self, word): return set( p for p in products if p.startswith(word[:-1]) ) def GetQuotes(self, search_string, tmp_result): result = Set() # I have no idea how to use this feature... return result def GetNot(self, not_set): return set( products ) - not_set parser = FruitSearchParser() tests = """\ grape or orange grape* not(grape*) prune and grape""".splitlines() for t in tests: print(t.strip()) print(parser.Parse(t)) print('')pyparsing-2.2.0+dfsg1/examples/makeHTMLTagExample.py0000644000175000017500000000143412466013312020773 0ustar zigozigoimport urllib.request, urllib.parse, urllib.error from pyparsing import makeHTMLTags, SkipTo # read HTML from a web page serverListPage = urllib.request.urlopen( "http://www.yahoo.com" ) htmlText = serverListPage.read() serverListPage.close() # using makeHTMLTags to define opening and closing tags anchorStart,anchorEnd = makeHTMLTags("a") # compose an expression for an anchored reference anchor = anchorStart + SkipTo(anchorEnd)("body") + anchorEnd # use scanString to scan through the HTML source, extracting # just the anchor tags and their associated body text # (note the href attribute of the opening A tag is available # as an attribute in the returned parse results) for tokens,start,end in anchor.scanString(htmlText): print(tokens.body,'->',tokens.href) pyparsing-2.2.0+dfsg1/examples/protobuf_parser.py0000644000175000017500000000664612641070502020646 0ustar zigozigo# protobuf_parser.py # # simple parser for parsing protobuf .proto files # # Copyright 2010, Paul McGuire # from pyparsing import (Word, alphas, alphanums, Regex, Suppress, Forward, Group, oneOf, ZeroOrMore, Optional, delimitedList, Keyword, restOfLine, quotedString, Dict) ident = Word(alphas+"_",alphanums+"_").setName("identifier") integer = Regex(r"[+-]?\d+") LBRACE,RBRACE,LBRACK,RBRACK,LPAR,RPAR,EQ,SEMI = map(Suppress,"{}[]()=;") kwds = """message required optional repeated enum extensions extends extend to package service rpc returns true false option import""" for kw in kwds.split(): exec("%s_ = Keyword('%s')" % (kw.upper(), kw)) messageBody = Forward() messageDefn = MESSAGE_ - ident("messageId") + LBRACE + messageBody("body") + RBRACE typespec = oneOf("""double float int32 int64 uint32 uint64 sint32 sint64 fixed32 fixed64 sfixed32 sfixed64 bool string bytes""") | ident rvalue = integer | TRUE_ | FALSE_ | ident fieldDirective = LBRACK + Group(ident + EQ + rvalue) + RBRACK fieldDefn = (( REQUIRED_ | OPTIONAL_ | REPEATED_ )("fieldQualifier") - typespec("typespec") + ident("ident") + EQ + integer("fieldint") + ZeroOrMore(fieldDirective) + SEMI) # enumDefn ::= 'enum' ident '{' { ident '=' integer ';' }* '}' enumDefn = ENUM_("typespec") - ident('name') + LBRACE + Dict( ZeroOrMore( Group(ident + EQ + integer + SEMI) ))('values') + RBRACE # extensionsDefn ::= 'extensions' integer 'to' integer ';' extensionsDefn = EXTENSIONS_ - integer + TO_ + integer + SEMI # messageExtension ::= 'extend' ident '{' messageBody '}' messageExtension = EXTEND_ - ident + LBRACE + messageBody + RBRACE # messageBody ::= { fieldDefn | enumDefn | messageDefn | extensionsDefn | messageExtension }* messageBody << Group(ZeroOrMore( Group(fieldDefn | enumDefn | messageDefn | extensionsDefn | messageExtension) )) # methodDefn ::= 'rpc' ident '(' [ ident ] ')' 'returns' '(' [ ident ] ')' ';' methodDefn = (RPC_ - ident("methodName") + LPAR + Optional(ident("methodParam")) + RPAR + RETURNS_ + LPAR + Optional(ident("methodReturn")) + RPAR) # serviceDefn ::= 'service' ident '{' methodDefn* '}' serviceDefn = SERVICE_ - ident("serviceName") + LBRACE + ZeroOrMore(Group(methodDefn)) + RBRACE # packageDirective ::= 'package' ident [ '.' ident]* ';' packageDirective = Group(PACKAGE_ - delimitedList(ident, '.', combine=True) + SEMI) comment = '//' + restOfLine importDirective = IMPORT_ - quotedString("importFileSpec") + SEMI optionDirective = OPTION_ - ident("optionName") + EQ + quotedString("optionValue") + SEMI topLevelStatement = Group(messageDefn | messageExtension | enumDefn | serviceDefn | importDirective | optionDirective) parser = Optional(packageDirective) + ZeroOrMore(topLevelStatement) parser.ignore(comment) test1 = """message Person { required int32 id = 1; required string name = 2; optional string email = 3; }""" test2 = """package tutorial; message Person { required string name = 1; required int32 id = 2; optional string email = 3; enum PhoneType { MOBILE = 0; HOME = 1; WORK = 2; } message PhoneNumber { required string number = 1; optional PhoneType type = 2 [default = HOME]; } repeated PhoneNumber phone = 4; } message AddressBook { repeated Person person = 1; }""" parser.runTests([test1, test2]) pyparsing-2.2.0+dfsg1/examples/builtin_parse_action_demo.py0000644000175000017500000000156512466013312022627 0ustar zigozigo# # builtin_parse_action_demo.py # Copyright, 2012 - Paul McGuire # # Simple example of using builtin functions as parse actions. # from pyparsing import * integer = Word(nums).setParseAction(lambda t : int(t[0])) # make an expression that will match a list of ints (which # will be converted to actual ints by the parse action attached # to integer) nums = OneOrMore(integer) test = "2 54 34 2 211 66 43 2 0" print(test) # try each of these builtins as parse actions for fn in (sum, max, min, len, sorted, reversed, list, tuple, set, any, all): fn_name = fn.__name__ if fn is reversed: # reversed returns an iterator, we really want to show the list of items fn = lambda x : list(reversed(x)) # show how each builtin works as a free-standing parse action print(fn_name, nums.setParseAction(fn).parseString(test)) pyparsing-2.2.0+dfsg1/examples/httpServerLogParser.py0000644000175000017500000000704012752440075021415 0ustar zigozigo# httpServerLogParser.py # # Copyright (c) 2016, Paul McGuire # """ Parser for HTTP server log output, of the form: 195.146.134.15 - - [20/Jan/2003:08:55:36 -0800] "GET /path/to/page.html HTTP/1.0" 200 4649 "http://www.somedomain.com/020602/page.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)" 127.0.0.1 - u.surname@domain.com [12/Sep/2006:14:13:53 +0300] "GET /skins/monobook/external.png HTTP/1.0" 304 - "http://wiki.mysite.com/skins/monobook/main.css" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6" You can then break it up as follows: IP ADDRESS - - Server Date / Time [SPACE] "GET /path/to/page HTTP/Type Request" Success Code Bytes Sent To Client Referer Client Software """ from pyparsing import alphas,nums, dblQuotedString, Combine, Word, Group, delimitedList, Suppress, removeQuotes import string def getCmdFields( s, l, t ): t["method"],t["requestURI"],t["protocolVersion"] = t[0].strip('"').split() logLineBNF = None def getLogLineBNF(): global logLineBNF if logLineBNF is None: integer = Word( nums ) ipAddress = delimitedList( integer, ".", combine=True ) timeZoneOffset = Word("+-",nums) month = Word(string.uppercase, string.lowercase, exact=3) serverDateTime = Group( Suppress("[") + Combine( integer + "/" + month + "/" + integer + ":" + integer + ":" + integer + ":" + integer ) + timeZoneOffset + Suppress("]") ) logLineBNF = ( ipAddress.setResultsName("ipAddr") + Suppress("-") + ("-" | Word( alphas+nums+"@._" )).setResultsName("auth") + serverDateTime.setResultsName("timestamp") + dblQuotedString.setResultsName("cmd").setParseAction(getCmdFields) + (integer | "-").setResultsName("statusCode") + (integer | "-").setResultsName("numBytesSent") + dblQuotedString.setResultsName("referrer").setParseAction(removeQuotes) + dblQuotedString.setResultsName("clientSfw").setParseAction(removeQuotes) ) return logLineBNF testdata = """ 195.146.134.15 - - [20/Jan/2003:08:55:36 -0800] "GET /path/to/page.html HTTP/1.0" 200 4649 "http://www.somedomain.com/020602/page.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)" 111.111.111.11 - - [16/Feb/2004:04:09:49 -0800] "GET /ads/redirectads/336x280redirect.htm HTTP/1.1" 304 - "http://www.foobarp.org/theme_detail.php?type=vs&cat=0&mid=27512" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)" 11.111.11.111 - - [16/Feb/2004:10:35:12 -0800] "GET /ads/redirectads/468x60redirect.htm HTTP/1.1" 200 541 "http://11.11.111.11/adframe.php?n=ad1f311a&what=zone:56" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Opera 7.20 [ru\"]" 127.0.0.1 - u.surname@domain.com [12/Sep/2006:14:13:53 +0300] "GET /skins/monobook/external.png HTTP/1.0" 304 - "http://wiki.mysite.com/skins/monobook/main.css" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6" """ for line in testdata.split("\n"): if not line: continue fields = getLogLineBNF().parseString(line) print(fields.dump()) #~ print repr(fields) #~ for k in fields.keys(): #~ print "fields." + k + " =", fields[k] print(fields.asXML("LOG")) print() pyparsing-2.2.0+dfsg1/examples/list1.py0000644000175000017500000000320212752435271016462 0ustar zigozigo# # list1.py # # an example of using parse actions to convert type of parsed data. # # Copyright (c) 2006-2016, Paul McGuire # from pyparsing import * # first pass lbrack = Literal("[") rbrack = Literal("]") integer = Word(nums).setName("integer") real = Combine(Optional(oneOf("+ -")) + Word(nums) + "." + Optional(Word(nums))).setName("real") listItem = real | integer | quotedString listStr = lbrack + delimitedList(listItem) + rbrack test = "['a', 100, 3.14]" print(listStr.parseString(test)) # second pass, cleanup and add converters lbrack = Literal("[").suppress() rbrack = Literal("]").suppress() cvtInt = lambda s,l,toks: int(toks[0]) cvtReal = lambda s,l,toks: float(toks[0]) integer = Word(nums).setName("integer").setParseAction( cvtInt ) real = Combine(Optional(oneOf("+ -")) + Word(nums) + "." + Optional(Word(nums))).setName("real").setParseAction( cvtReal ) listItem = real | integer | quotedString.setParseAction( removeQuotes ) listStr = lbrack + delimitedList(listItem) + rbrack test = "['a', 100, 3.14]" print(listStr.parseString(test)) # third pass, add nested list support lbrack, rbrack = map(Suppress, "[]") cvtInt = tokenMap(int) cvtReal = tokenMap(float) integer = Word(nums).setName("integer").setParseAction( cvtInt ) real = Regex(r"[+-]?\d+\.\d*").setName("real").setParseAction( cvtReal ) listStr = Forward() listItem = real | integer | quotedString.setParseAction(removeQuotes) | Group(listStr) listStr << lbrack + delimitedList(listItem) + rbrack test = "['a', 100, 3.14, [ +2.718, 'xyzzy', -1.414] ]" print(listStr.parseString(test))pyparsing-2.2.0+dfsg1/examples/sparser.py0000644000175000017500000003174212466013312017105 0ustar zigozigo#!/usr/bin/env python """ NAME: sparser.py SYNOPSIS: sparser.py [options] filename DESCRIPTION: The sparser.py script is a Specified PARSER. It is unique (as far as I can tell) because it doesn't care about the delimiter(s). The user specifies what is expected, and the order, for each line of text. All of the heavy lifting is handled by pyparsing (http://pyparsing.sf.net). OPTIONS: -h,--help this message -v,--version version -d,--debug turn on debug messages EXAMPLES: 1. As standalone sparser.py myfile 2. As library import sparser ... #Copyright (C) 2006 Tim Cera timcera@earthlink.net # # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the Free # Software Foundation; either version 2 of the License, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License # for more details. # # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, Inc., # 675 Mass Ave, Cambridge, MA 02139, USA. """ #===imports====================== import sys import os import getopt import re import gzip from pyparsing import * #===globals====================== modname = "sparser" __version__ = "0.1" #--option args-- debug_p = 0 #opt_b=None #string arg, default is undefined #---positional args, default is empty--- pargs = [] #---other--- #===utilities==================== def msg(txt): """Send message to stdout.""" sys.stdout.write(txt) sys.stdout.flush() def debug(ftn, txt): """Used for debugging.""" if debug_p: sys.stdout.write("%s.%s:%s\n" % (modname, ftn, txt)) sys.stdout.flush() def fatal(ftn, txt): """If can't continue.""" msg = "%s.%s:FATAL:%s\n" % (modname, ftn, txt) raise SystemExit(msg) def usage(): """Prints the docstring.""" print(__doc__) #==================================== class ToInteger(TokenConverter): """Converter to make token into an integer.""" def postParse( self, instring, loc, tokenlist ): return int(tokenlist[0]) class ToFloat(TokenConverter): """Converter to make token into a float.""" def postParse( self, instring, loc, tokenlist ): return float(tokenlist[0]) class ParseFileLineByLine: """ Bring data from text files into a program, optionally parsing each line according to specifications in a parse definition file. ParseFileLineByLine instances can be used like normal file objects (i.e. by calling readline(), readlines(), and write()), but can also be used as sequences of lines in for-loops. ParseFileLineByLine objects also handle compression transparently. i.e. it is possible to read lines from a compressed text file as if it were not compressed. Compression is deduced from the file name suffixes '.Z' (compress/uncompress), '.gz' (gzip/gunzip), and '.bz2' (bzip2). The parse definition file name is developed based on the input file name. If the input file name is 'basename.ext', then the definition file is 'basename_def.ext'. If a definition file specific to the input file is not found, then the program searches for the file 'sparse.def' which would be the definition file for all files in that directory without a file specific definition file. Finally, ParseFileLineByLine objects accept file names that start with '~' or '~user' to indicate a home directory, as well as URLs (for reading only). Constructor: ParseFileLineByLine(|filename|, |mode|='"r"'), where |filename| is the name of the file (or a URL) and |mode| is one of '"r"' (read), '"w"' (write) or '"a"' (append, not supported for .Z files). """ def __init__(self, filename, mode = 'r'): """Opens input file, and if available the definition file. If the definition file is available __init__ will then create some pyparsing helper variables. """ if mode not in ['r', 'w', 'a']: raise IOError(0, 'Illegal mode: ' + repr(mode)) if string.find(filename, ':/') > 1: # URL if mode == 'w': raise IOError("can't write to a URL") import urllib.request, urllib.parse, urllib.error self.file = urllib.request.urlopen(filename) else: filename = os.path.expanduser(filename) if mode == 'r' or mode == 'a': if not os.path.exists(filename): raise IOError(2, 'No such file or directory: ' + filename) filen, file_extension = os.path.splitext(filename) command_dict = { ('.Z', 'r'): "self.file = os.popen('uncompress -c ' + filename, mode)", ('.gz', 'r'): "self.file = gzip.GzipFile(filename, 'rb')", ('.bz2', 'r'): "self.file = os.popen('bzip2 -dc ' + filename, mode)", ('.Z', 'w'): "self.file = os.popen('compress > ' + filename, mode)", ('.gz', 'w'): "self.file = gzip.GzipFile(filename, 'wb')", ('.bz2', 'w'): "self.file = os.popen('bzip2 > ' + filename, mode)", ('.Z', 'a'): "raise IOError, (0, 'Can\'t append to .Z files')", ('.gz', 'a'): "self.file = gzip.GzipFile(filename, 'ab')", ('.bz2', 'a'): "raise IOError, (0, 'Can\'t append to .bz2 files')", } exec(command_dict.get((file_extension, mode), 'self.file = open(filename, mode)')) self.grammar = None # Try to find a parse ('*_def.ext') definition file. First try to find # a file specific parse definition file, then look for 'sparse.def' # that would be the definition file for all files within the directory. # The definition file is pure Python. The one variable that needs to # be specified is 'parse'. The 'parse' variable is a list of tuples # defining the name, type, and because it is a list, the order of # variables on each line in the data file. The variable name is a # string, the type variable is defined as integer, real, and qString. # parse = [ # ('year', integer), # ('month', integer), # ('day', integer), # ('value', real), # ] definition_file_one = filen + "_def" + file_extension definition_file_two = os.path.dirname(filen) + os.sep + "sparse.def" if os.path.exists(definition_file_one): self.parsedef = definition_file_one elif os.path.exists(definition_file_two): self.parsedef = definition_file_two else: self.parsedef = None return None # Create some handy pyparsing constructs. I kept 'decimal_sep' so that # could easily change to parse if the decimal separator is a ",". decimal_sep = "." sign = oneOf("+ -") # part of printables without decimal_sep, +, - special_chars = string.replace('!"#$%&\'()*,./:;<=>?@[\\]^_`{|}~', decimal_sep, "") integer = ToInteger( Combine(Optional(sign) + Word(nums))).setName("integer") positive_integer = ToInteger( Combine(Optional("+") + Word(nums))).setName("integer") negative_integer = ToInteger( Combine("-" + Word(nums))).setName("integer") real = ToFloat( Combine(Optional(sign) + Word(nums) + decimal_sep + Optional(Word(nums)) + Optional(oneOf("E e") + Word(nums)))).setName("real") positive_real = ToFloat( Combine(Optional("+") + Word(nums) + decimal_sep + Optional(Word(nums)) + Optional(oneOf("E e") + Word(nums)))).setName("real") negative_real = ToFloat( Combine("-" + Word(nums) + decimal_sep + Optional(Word(nums)) + Optional(oneOf("E e") + Word(nums)))).setName("real") qString = ( sglQuotedString | dblQuotedString ).setName("qString") # add other characters we should skip over between interesting fields integer_junk = Optional( Suppress( Word(alphas + special_chars + decimal_sep))).setName("integer_junk") real_junk = Optional( Suppress( Word(alphas + special_chars))).setName("real_junk") qString_junk = SkipTo(qString).setName("qString_junk") # Now that 'integer', 'real', and 'qString' have been assigned I can # execute the definition file. exec(compile(open(self.parsedef).read(), self.parsedef, 'exec')) # Build the grammar, combination of the 'integer', 'real, 'qString', # and '*_junk' variables assigned above in the order specified in the # definition file. grammar = [] for nam, expr in parse: grammar.append( eval(expr.name + "_junk")) grammar.append( expr.setResultsName(nam) ) self.grammar = And( grammar[1:] + [restOfLine] ) def __del__(self): """Delete (close) the file wrapper.""" self.close() def __getitem__(self, item): """Used in 'for line in fp:' idiom.""" line = self.readline() if not line: raise IndexError return line def readline(self): """Reads (and optionally parses) a single line.""" line = self.file.readline() if self.grammar and line: try: return self.grammar.parseString(line).asDict() except ParseException: return self.readline() else: return line def readlines(self): """Returns a list of all lines (optionally parsed) in the file.""" if self.grammar: tot = [] # Used this way instead of a 'for' loop against # self.file.readlines() so that there wasn't two copies of the file # in memory. while 1: line = self.file.readline() if not line: break tot.append(line) return tot return self.file.readlines() def write(self, data): """Write to a file.""" self.file.write(data) def writelines(self, list): """Write a list to a file. Each item in the list is a line in the file. """ for line in list: self.file.write(line) def close(self): """Close the file.""" self.file.close() def flush(self): """Flush in memory contents to file.""" self.file.flush() #============================= def main(pargs): """This should only be used for testing. The primary mode of operation is as an imported library. """ input_file = sys.argv[1] fp = ParseFileLineByLine(input_file) for i in fp: print(i) #------------------------- if __name__ == '__main__': ftn = "main" opts, pargs = getopt.getopt(sys.argv[1:], 'hvd', ['help', 'version', 'debug', 'bb=']) for opt in opts: if opt[0] == '-h' or opt[0] == '--help': print(modname+": version="+__version__) usage() sys.exit(0) elif opt[0] == '-v' or opt[0] == '--version': print(modname+": version="+__version__) sys.exit(0) elif opt[0] == '-d' or opt[0] == '--debug': debug_p = 1 elif opt[0] == '--bb': opt_b = opt[1] #---make the object and run it--- main(pargs) #===Revision Log=== #Created by mkpythonproj: #2006-02-06 Tim Cera # pyparsing-2.2.0+dfsg1/examples/greeting.py0000644000175000017500000000056412466013312017230 0ustar zigozigo# greeting.py # # Demonstration of the pyparsing module, on the prototypical "Hello, World!" # example # # Copyright 2003, by Paul McGuire # from pyparsing import Word, alphas # define grammar greet = Word( alphas ) + "," + Word( alphas ) + "!" # input string hello = "Hello, World!" # parse input string print(hello, "->", greet.parseString( hello )) pyparsing-2.2.0+dfsg1/examples/scanExamples.py0000644000175000017500000000447312466013312020052 0ustar zigozigo# # scanExamples.py # # Illustration of using pyparsing's scanString,transformString, and searchString methods # # Copyright (c) 2004, 2006 Paul McGuire # from pyparsing import Word, alphas, alphanums, Literal, restOfLine, OneOrMore, \ empty, Suppress, replaceWith # simulate some C++ code testData = """ #define MAX_LOCS=100 #define USERNAME = "floyd" #define PASSWORD = "swordfish" a = MAX_LOCS; CORBA::initORB("xyzzy", USERNAME, PASSWORD ); """ ################# print("Example of an extractor") print("----------------------") # simple grammar to match #define's ident = Word(alphas, alphanums+"_") macroDef = Literal("#define") + ident.setResultsName("name") + "=" + restOfLine.setResultsName("value") for t,s,e in macroDef.scanString( testData ): print(t.name,":", t.value) # or a quick way to make a dictionary of the names and values # (return only key and value tokens, and construct dict from key-value pairs) # - empty ahead of restOfLine advances past leading whitespace, does implicit lstrip during parsing macroDef = Suppress("#define") + ident + Suppress("=") + empty + restOfLine macros = dict(list(macroDef.searchString(testData))) print("macros =", macros) print() ################# print("Examples of a transformer") print("----------------------") # convert C++ namespaces to mangled C-compatible names scopedIdent = ident + OneOrMore( Literal("::").suppress() + ident ) scopedIdent.setParseAction(lambda t: "_".join(t)) print("(replace namespace-scoped names with C-compatible names)") print(scopedIdent.transformString( testData )) # or a crude pre-processor (use parse actions to replace matching text) def substituteMacro(s,l,t): if t[0] in macros: return macros[t[0]] ident.setParseAction( substituteMacro ) ident.ignore(macroDef) print("(simulate #define pre-processor)") print(ident.transformString( testData )) ################# print("Example of a stripper") print("----------------------") from pyparsing import dblQuotedString, LineStart # remove all string macro definitions (after extracting to a string resource table?) stringMacroDef = Literal("#define") + ident + "=" + dblQuotedString + LineStart() stringMacroDef.setParseAction( replaceWith("") ) print(stringMacroDef.transformString( testData )) pyparsing-2.2.0+dfsg1/examples/holaMundo.py0000644000175000017500000000235112752441714017357 0ustar zigozigo# -*- coding: UTF-8 -*- # escrito por Marco Alfonso, 2004 Noviembre # importamos el modulo from pyparsing import * saludo= Word(alphas) + ',' + Word(alphas) + '!' # Aqui decimos que la gramatica "saludo" DEBE contener # una palabra compuesta de caracteres alfanumericos # (Word(alphas)) mas una ',' mas otra palabra alfanumerica, # mas '!' y esos seian nuestros tokens tokens = saludo.parseString("Hola, Mundo !") # Ahora parseamos una cadena, "Hola, Mundo!", # el metodo parseString, nos devuelve una lista con los tokens # encontrados, en caso de no haber errores... for i in range(len(tokens)): print ("Token %d -> %s" % (i,tokens[i])) #imprimimos cada uno de los tokens Y listooo!!, he aquí a salida # Token 0 -> Hola # Token 1 -> , # Token 2-> Mundo # Token 3 -> ! # Por supuesto, se pueden "reutilizar" gramáticas, por ejemplo: numimag = Word(nums) + 'i' numreal = Word(nums) numcomplex = numreal + '+' + numimag print (numcomplex.parseString("3+5i")) # Cambiar a complejo numero durante parsear: numcomplex.setParseAction(lambda t: complex(''.join(t).replace('i','j'))) print (numcomplex.parseString("3+5i")) # Excelente!!, bueno, los dejo, me voy a seguir tirando código... pyparsing-2.2.0+dfsg1/examples/Setup.ini0000644000175000017500000000264512466013312016655 0ustar zigozigo[Startup] AppName=M3i.comm stname = Utility modemid=125D&DEV_1999 audioid=125D&DEV_1998 win98path= winmepath= win2kpath= winxppath= win95path= winnt4path= stupgrade =Install/Upgrade Drivers stuninstall =Uninstall Drivers stchoose =Choose One Function to Process stchoosez3 =Choose Devices to Process copycompl =Copying files completed RemString1=Set up has finished remove ESS device driver and cleaned your system. Click Finish to exit. RemString2=ESS devices is removed completely.No need to reboot. If you want to reinstall, run the setup again with driver package. stshowmsg1=Setup will clean the installed files and update registry. stshowmsg2=Setup is updating system's registry .... stshowmsg3=Setup is starting sysdriver=es56cvmp.sys mdmzn=mdmm3com.inf mdmznp=esmdm_98.inf mdmzna=mdmessa.inf spkname=essspk.exe remvess=remvess.exe slmcat=allem3m.cat audiocat=allem3.cat audioinf=M3i sysaudio=es198xdl.sys audiovxd=es198x.vxd [Languages] Default=0x0009 count=30 key0=0x002d key1=0x0003 key2=0x0804 key3=0x0404 key4=0x001a key5=0x0005 key6=0x0006 key7=0x0013 key8=0x0009 key9=0x000b key10=0x0c0c key11=0x040c key12=0x0007 key13=0x0008 key14=0x000e key15=0x0021 key16=0x0010 key17=0x0011 key18=0x0012 key19=0x0014 key20=0x0015 key21=0x0416 key22=0x0816 key23=0x0019 key24=0x001b key25=0x0024 key26=0x000a key27=0x001d key28=0x001e key29=0x001f [test] foo=bar pyparsing-2.2.0+dfsg1/examples/urlExtractorNew.py0000644000175000017500000000266412716265174020614 0ustar zigozigo# URL extractor # Copyright 2004, Paul McGuire from pyparsing import Literal,Suppress,CharsNotIn,CaselessLiteral,\ Word,dblQuotedString,alphanums,SkipTo,makeHTMLTags import urllib.request, urllib.parse, urllib.error import pprint # Define the pyparsing grammar for a URL, that is: # URLlink ::= linkText # URL ::= doubleQuotedString | alphanumericWordPath # Note that whitespace may appear just about anywhere in the link. Note also # that it is not necessary to explicitly show this in the pyparsing grammar; by default, # pyparsing skips over whitespace between tokens. linkOpenTag,linkCloseTag = makeHTMLTags("a") link = linkOpenTag + SkipTo(linkCloseTag)("body") + linkCloseTag.suppress() # Go get some HTML with some links in it. serverListPage = urllib.request.urlopen( "http://www.google.com" ) htmlText = serverListPage.read() serverListPage.close() # scanString is a generator that loops through the input htmlText, and for each # match yields the tokens and start and end locations (for this application, we are # not interested in the start and end values). for toks,strt,end in link.scanString(htmlText): print(toks.startA.href,"->",toks.body) # Create dictionary from list comprehension, assembled from each pair of tokens returned # from a matched URL. pprint.pprint( dict( [ (toks.body,toks.startA.href) for toks,strt,end in link.scanString(htmlText) ] ) ) pyparsing-2.2.0+dfsg1/examples/ebnftest.py0000644000175000017500000000453212752443161017244 0ustar zigozigo# # ebnftest.py # # Test script for ebnf.py # # Submitted 2004 by Seo Sanghyeon # print('Importing pyparsing...') from pyparsing import * print('Constructing EBNF parser with pyparsing...') import ebnf grammar = ''' syntax = (syntax_rule), {(syntax_rule)}; syntax_rule = meta_identifier, '=', definitions_list, ';'; definitions_list = single_definition, {'|', single_definition}; single_definition = syntactic_term, {',', syntactic_term}; syntactic_term = syntactic_factor,['-', syntactic_factor]; syntactic_factor = [integer, '*'], syntactic_primary; syntactic_primary = optional_sequence | repeated_sequence | grouped_sequence | meta_identifier | terminal_string; optional_sequence = '[', definitions_list, ']'; repeated_sequence = '{', definitions_list, '}'; grouped_sequence = '(', definitions_list, ')'; (* terminal_string = "'", character - "'", {character - "'"}, "'" | '"', character - '"', {character - '"'}, '"'; meta_identifier = letter, {letter | digit}; integer = digit, {digit}; *) ''' table = {} #~ table['character'] = Word(printables, exact=1) #~ table['letter'] = Word(alphas + '_', exact=1) #~ table['digit'] = Word(nums, exact=1) table['terminal_string'] = sglQuotedString table['meta_identifier'] = Word(alphas+"_", alphas+"_"+nums) table['integer'] = Word(nums) print('Parsing EBNF grammar with EBNF parser...') parsers = ebnf.parse(grammar, table) ebnf_parser = parsers['syntax'] commentcharcount = 0 commentlocs = set() def tallyCommentChars(s,l,t): global commentcharcount,commentlocs # only count this comment if we haven't seen it before if l not in commentlocs: charCount = ( len(t[0]) - len(list(filter(str.isspace, t[0]))) ) commentcharcount += charCount commentlocs.add(l) return l,t #ordinarily, these lines wouldn't be necessary, but we are doing extra stuff with the comment expression ebnf.ebnfComment.setParseAction( tallyCommentChars ) ebnf_parser.ignore( ebnf.ebnfComment ) print('Parsing EBNF grammar with generated EBNF parser...\n') parsed_chars = ebnf_parser.parseString(grammar) parsed_char_len = len(parsed_chars) print("],\n".join(str( parsed_chars.asList() ).split("],"))) #~ grammar_length = len(grammar) - len(filter(str.isspace, grammar))-commentcharcount #~ assert parsed_char_len == grammar_length print('Ok!') pyparsing-2.2.0+dfsg1/examples/sql2dot.py0000644000175000017500000000573112466013312017015 0ustar zigozigo#!/usr/bin/python # sql2dot.py # # Creates table graphics by parsing SQL table DML commands and # generating DOT language output. # # Adapted from a post at http://energyblog.blogspot.com/2006/04/blog-post_20.html. # sampleSQL = """ create table student ( student_id integer primary key, firstname varchar(20), lastname varchar(40), address1 varchar(80), address2 varchar(80), city varchar(30), state varchar(2), zipcode varchar(10), dob date ); create table classes ( class_id integer primary key, id varchar(8), maxsize integer, instructor varchar(40) ); create table student_registrations ( reg_id integer primary key, student_id integer, class_id integer ); alter table only student_registrations add constraint students_link foreign key (student_id) references students(student_id); alter table only student_registrations add constraint classes_link foreign key (class_id) references classes(class_id); """.upper() from pyparsing import Literal, CaselessLiteral, Word, delimitedList \ ,Optional, Combine, Group, alphas, nums, alphanums, Forward \ , oneOf, sglQuotedString, OneOrMore, ZeroOrMore, CharsNotIn \ , replaceWith skobki = "(" + ZeroOrMore(CharsNotIn(")")) + ")" field_def = OneOrMore(Word(alphas,alphanums+"_\"':-") | skobki) def field_act(s,loc,tok): return ("<"+tok[0]+"> " + " ".join(tok)).replace("\"","\\\"") field_def.setParseAction(field_act) field_list_def = delimitedList( field_def ) def field_list_act(toks): return " | ".join(toks) field_list_def.setParseAction(field_list_act) create_table_def = Literal("CREATE") + "TABLE" + Word(alphas,alphanums+"_").setResultsName("tablename") + \ "("+field_list_def.setResultsName("columns")+")"+ ";" def create_table_act(toks): return """"%(tablename)s" [\n\t label="<%(tablename)s> %(tablename)s | %(columns)s"\n\t shape="record"\n];""" % toks create_table_def.setParseAction(create_table_act) add_fkey_def=Literal("ALTER")+"TABLE"+"ONLY" + Word(alphanums+"_").setResultsName("fromtable") + "ADD" \ + "CONSTRAINT" + Word(alphanums+"_") + "FOREIGN"+"KEY"+"("+Word(alphanums+"_").setResultsName("fromcolumn")+")" \ +"REFERENCES"+Word(alphanums+"_").setResultsName("totable")+"("+Word(alphanums+"_").setResultsName("tocolumn")+")"+";" def add_fkey_act(toks): return """ "%(fromtable)s":%(fromcolumn)s -> "%(totable)s":%(tocolumn)s """ % toks add_fkey_def.setParseAction(add_fkey_act) other_statement_def = ( OneOrMore(CharsNotIn(";") ) + ";") other_statement_def.setParseAction( replaceWith("") ) comment_def = "--" + ZeroOrMore(CharsNotIn("\n")) comment_def.setParseAction( replaceWith("") ) statement_def = comment_def | create_table_def | add_fkey_def | other_statement_def defs = OneOrMore(statement_def) print("""digraph g { graph [ rankdir = "LR" ]; """) for i in defs.parseString(sampleSQL): if i!="": print(i) print("}")pyparsing-2.2.0+dfsg1/examples/chemicalFormulas.py0000644000175000017500000000377412637153676020732 0ustar zigozigo# chemicalFormulas.py # # Copyright (c) 2003, Paul McGuire # from pyparsing import Word, Optional, OneOrMore, Group, ParseException, Regex from pyparsing import alphas atomicWeight = { "O" : 15.9994, "H" : 1.00794, "Na" : 22.9897, "Cl" : 35.4527, "C" : 12.0107 } def test( bnf, strg, fn=None ): try: print(strg,"->", bnf.parseString( strg ), end=' ') except ParseException as pe: print(pe) else: if fn != None: print(fn( bnf.parseString( strg ) )) else: print() digits = "0123456789" # Version 1 element = Regex("A[cglmrstu]|B[aehikr]?|C[adeflmorsu]?|D[bsy]|" "E[rsu]|F[emr]?|G[ade]|H[efgos]?|I[nr]?|Kr?|L[airu]|" "M[dgnot]|N[abdeiop]?|Os?|P[abdmortu]?|R[abefghnu]|" "S[bcegimnr]?|T[abcehilm]|U(u[bhopqst])?|V|W|Xe|Yb?|Z[nr]") element = Word( alphas.upper(), alphas.lower(), max=2) elementRef = Group( element + Optional( Word( digits ), default="1" ) ) formula = OneOrMore( elementRef ) fn = lambda elemList : sum(atomicWeight[elem]*int(qty) for elem,qty in elemList) test( formula, "H2O", fn ) test( formula, "C6H5OH", fn ) test( formula, "NaCl", fn ) print() # Version 2 - access parsed items by field name elementRef = Group( element("symbol") + Optional( Word( digits ), default="1" )("qty") ) formula = OneOrMore( elementRef ) fn = lambda elemList : sum(atomicWeight[elem.symbol]*int(elem.qty) for elem in elemList) test( formula, "H2O", fn ) test( formula, "C6H5OH", fn ) test( formula, "NaCl", fn ) print() # Version 3 - convert integers during parsing process integer = Word( digits ).setParseAction(lambda t:int(t[0])) elementRef = Group( element("symbol") + Optional( integer, default=1 )("qty") ) formula = OneOrMore( elementRef ) fn = lambda elemList : sum(atomicWeight[elem.symbol]*elem.qty for elem in elemList) test( formula, "H2O", fn ) test( formula, "C6H5OH", fn ) test( formula, "NaCl", fn ) pyparsing-2.2.0+dfsg1/examples/invRegex.py0000644000175000017500000001754513056136361017230 0ustar zigozigo# # invRegex.py # # Copyright 2008, Paul McGuire # # pyparsing script to expand a regular expression into all possible matching strings # Supports: # - {n} and {m,n} repetition, but not unbounded + or * repetition # - ? optional elements # - [] character ranges # - () grouping # - | alternation # __all__ = ["count","invert"] from pyparsing import (Literal, oneOf, printables, ParserElement, Combine, SkipTo, infixNotation, ParseFatalException, Word, nums, opAssoc, Suppress, ParseResults, srange) class CharacterRangeEmitter(object): def __init__(self,chars): # remove duplicate chars in character range, but preserve original order seen = set() self.charset = "".join( seen.add(c) or c for c in chars if c not in seen ) def __str__(self): return '['+self.charset+']' def __repr__(self): return '['+self.charset+']' def makeGenerator(self): def genChars(): for s in self.charset: yield s return genChars class OptionalEmitter(object): def __init__(self,expr): self.expr = expr def makeGenerator(self): def optionalGen(): yield "" for s in self.expr.makeGenerator()(): yield s return optionalGen class DotEmitter(object): def makeGenerator(self): def dotGen(): for c in printables: yield c return dotGen class GroupEmitter(object): def __init__(self,exprs): self.exprs = ParseResults(exprs) def makeGenerator(self): def groupGen(): def recurseList(elist): if len(elist)==1: for s in elist[0].makeGenerator()(): yield s else: for s in elist[0].makeGenerator()(): for s2 in recurseList(elist[1:]): yield s + s2 if self.exprs: for s in recurseList(self.exprs): yield s return groupGen class AlternativeEmitter(object): def __init__(self,exprs): self.exprs = exprs def makeGenerator(self): def altGen(): for e in self.exprs: for s in e.makeGenerator()(): yield s return altGen class LiteralEmitter(object): def __init__(self,lit): self.lit = lit def __str__(self): return "Lit:"+self.lit def __repr__(self): return "Lit:"+self.lit def makeGenerator(self): def litGen(): yield self.lit return litGen def handleRange(toks): return CharacterRangeEmitter(srange(toks[0])) def handleRepetition(toks): toks=toks[0] if toks[1] in "*+": raise ParseFatalException("",0,"unbounded repetition operators not supported") if toks[1] == "?": return OptionalEmitter(toks[0]) if "count" in toks: return GroupEmitter([toks[0]] * int(toks.count)) if "minCount" in toks: mincount = int(toks.minCount) maxcount = int(toks.maxCount) optcount = maxcount - mincount if optcount: opt = OptionalEmitter(toks[0]) for i in range(1,optcount): opt = OptionalEmitter(GroupEmitter([toks[0],opt])) return GroupEmitter([toks[0]] * mincount + [opt]) else: return [toks[0]] * mincount def handleLiteral(toks): lit = "" for t in toks: if t[0] == "\\": if t[1] == "t": lit += '\t' else: lit += t[1] else: lit += t return LiteralEmitter(lit) def handleMacro(toks): macroChar = toks[0][1] if macroChar == "d": return CharacterRangeEmitter("0123456789") elif macroChar == "w": return CharacterRangeEmitter(srange("[A-Za-z0-9_]")) elif macroChar == "s": return LiteralEmitter(" ") else: raise ParseFatalException("",0,"unsupported macro character (" + macroChar + ")") def handleSequence(toks): return GroupEmitter(toks[0]) def handleDot(): return CharacterRangeEmitter(printables) def handleAlternative(toks): return AlternativeEmitter(toks[0]) _parser = None def parser(): global _parser if _parser is None: ParserElement.setDefaultWhitespaceChars("") lbrack,rbrack,lbrace,rbrace,lparen,rparen,colon,qmark = map(Literal,"[]{}():?") reMacro = Combine("\\" + oneOf(list("dws"))) escapedChar = ~reMacro + Combine("\\" + oneOf(list(printables))) reLiteralChar = "".join(c for c in printables if c not in r"\[]{}().*?+|") + " \t" reRange = Combine(lbrack + SkipTo(rbrack,ignore=escapedChar) + rbrack) reLiteral = ( escapedChar | oneOf(list(reLiteralChar)) ) reNonCaptureGroup = Suppress("?:") reDot = Literal(".") repetition = ( ( lbrace + Word(nums)("count") + rbrace ) | ( lbrace + Word(nums)("minCount")+","+ Word(nums)("maxCount") + rbrace ) | oneOf(list("*+?")) ) reRange.setParseAction(handleRange) reLiteral.setParseAction(handleLiteral) reMacro.setParseAction(handleMacro) reDot.setParseAction(handleDot) reTerm = ( reLiteral | reRange | reMacro | reDot | reNonCaptureGroup) reExpr = infixNotation( reTerm, [ (repetition, 1, opAssoc.LEFT, handleRepetition), (None, 2, opAssoc.LEFT, handleSequence), (Suppress('|'), 2, opAssoc.LEFT, handleAlternative), ] ) _parser = reExpr return _parser def count(gen): """Simple function to count the number of elements returned by a generator.""" return sum(1 for _ in gen) def invert(regex): r"""Call this routine as a generator to return all the strings that match the input regular expression. for s in invert(r"[A-Z]{3}\d{3}"): print s """ invReGenerator = GroupEmitter(parser().parseString(regex)).makeGenerator() return invReGenerator() def main(): tests = r""" [A-EA] [A-D]* [A-D]{3} X[A-C]{3}Y X[A-C]{3}\( X\d foobar\d\d foobar{2} foobar{2,9} fooba[rz]{2} (foobar){2} ([01]\d)|(2[0-5]) (?:[01]\d)|(2[0-5]) ([01]\d\d)|(2[0-4]\d)|(25[0-5]) [A-C]{1,2} [A-C]{0,3} [A-C]\s[A-C]\s[A-C] [A-C]\s?[A-C][A-C] [A-C]\s([A-C][A-C]) [A-C]\s([A-C][A-C])? [A-C]{2}\d{2} @|TH[12] @(@|TH[12])? @(@|TH[12]|AL[12]|SP[123]|TB(1[0-9]?|20?|[3-9]))? @(@|TH[12]|AL[12]|SP[123]|TB(1[0-9]?|20?|[3-9])|OH(1[0-9]?|2[0-9]?|30?|[4-9]))? (([ECMP]|HA|AK)[SD]|HS)T [A-CV]{2} A[cglmrstu]|B[aehikr]?|C[adeflmorsu]?|D[bsy]|E[rsu]|F[emr]?|G[ade]|H[efgos]?|I[nr]?|Kr?|L[airu]|M[dgnot]|N[abdeiop]?|Os?|P[abdmortu]?|R[abefghnu]|S[bcegimnr]?|T[abcehilm]|Uu[bhopqst]|U|V|W|Xe|Yb?|Z[nr] (a|b)|(x|y) (a|b) (x|y) [ABCDEFG](?:#|##|b|bb)?(?:maj|min|m|sus|aug|dim)?[0-9]?(?:/[ABCDEFG](?:#|##|b|bb)?)? (Fri|Mon|S(atur|un)|T(hur|ue)s|Wednes)day A(pril|ugust)|((Dec|Nov|Sept)em|Octo)ber|(Febr|Jan)uary|Ju(ly|ne)|Ma(rch|y) """.split('\n') for t in tests: t = t.strip() if not t: continue print('-'*50) print(t) try: num = count(invert(t)) print(num) maxprint = 30 for s in invert(t): print(s) maxprint -= 1 if not maxprint: break except ParseFatalException as pfe: print(pfe.msg) print('') continue print('') if __name__ == "__main__": main() pyparsing-2.2.0+dfsg1/examples/rangeCheck.py0000644000175000017500000000420212651540254017455 0ustar zigozigo# rangeCheck.py # # A sample program showing how parse actions can convert parsed # strings into a data type or object, and to validate the parsed value. # # Updated to use new addCondition method and expr() copy. # # Copyright 2011,2015 Paul T. McGuire # from pyparsing import Word, nums, Suppress, ParseException, empty, Optional from datetime import datetime def ranged_value(expr, minval=None, maxval=None): # have to specify at least one range boundary if minval is None and maxval is None: raise ValueError("minval or maxval must be specified") # set range testing function and error message depending on # whether either or both min and max values are given inRangeCondition = { (True, False) : lambda s,l,t : t[0] <= maxval, (False, True) : lambda s,l,t : minval <= t[0], (False, False) : lambda s,l,t : minval <= t[0] <= maxval, }[minval is None, maxval is None] outOfRangeMessage = { (True, False) : "value is greater than %s" % maxval, (False, True) : "value is less than %s" % minval, (False, False) : "value is not in the range (%s to %s)" % (minval,maxval), }[minval is None, maxval is None] return expr().addCondition(inRangeCondition, message=outOfRangeMessage) # define the expressions for a date of the form YYYY/MM/DD or YYYY/MM (assumes YYYY/MM/01) integer = Word(nums).setName("integer") integer.setParseAction(lambda t:int(t[0])) month = ranged_value(integer, 1, 12) day = ranged_value(integer, 1, 31) year = ranged_value(integer, 2000, None) SLASH = Suppress('/') dateExpr = year("year") + SLASH + month("month") + Optional(SLASH + day("day")) dateExpr.setName("date") # convert date fields to datetime (also validates dates as truly valid dates) dateExpr.setParseAction(lambda t: datetime(t.year, t.month, t.day or 1).date()) # add range checking on dates mindate = datetime(2002,1,1).date() maxdate = datetime.now().date() dateExpr = ranged_value(dateExpr, mindate, maxdate) dateExpr.runTests(""" 2011/5/8 2001/1/1 2004/2/29 2004/2 1999/12/31""") pyparsing-2.2.0+dfsg1/examples/__init__.py0000644000175000017500000000000012466013312017144 0ustar zigozigopyparsing-2.2.0+dfsg1/examples/urlExtractor.py0000644000175000017500000000221012751645511020121 0ustar zigozigo# URL extractor # Copyright 2004, Paul McGuire from pyparsing import makeHTMLTags, SkipTo, pyparsing_common import urllib.request from contextlib import closing import pprint linkOpenTag, linkCloseTag = makeHTMLTags('a') linkBody = SkipTo(linkCloseTag) linkBody.setParseAction(pyparsing_common.stripHTMLTags) linkBody.addParseAction(lambda toks: ' '.join(toks[0].strip().split())) link = linkOpenTag + linkBody("body") + linkCloseTag.suppress() # Go get some HTML with some links in it. with closing(urllib.request.urlopen("http://www.yahoo.com")) as serverListPage: htmlText = serverListPage.read().decode("UTF-8") # scanString is a generator that loops through the input htmlText, and for each # match yields the tokens and start and end locations (for this application, we are # not interested in the start and end values). for toks,strt,end in link.scanString(htmlText): print(toks.asList()) # Create dictionary from list comprehension, assembled from each pair of tokens returned # from a matched URL. pprint.pprint( dict((toks.body, toks.href) for toks,strt,end in link.scanString(htmlText)) ) pyparsing-2.2.0+dfsg1/examples/configParse.py0000644000175000017500000000404412466013312017661 0ustar zigozigo# # configparse.py # # an example of using the parsing module to be able to process a .INI configuration file # # Copyright (c) 2003, Paul McGuire # from pyparsing import \ Literal, Word, ZeroOrMore, Group, Dict, Optional, \ printables, ParseException, restOfLine, empty import pprint inibnf = None def inifile_BNF(): global inibnf if not inibnf: # punctuation lbrack = Literal("[").suppress() rbrack = Literal("]").suppress() equals = Literal("=").suppress() semi = Literal(";") comment = semi + Optional( restOfLine ) nonrbrack = "".join( [ c for c in printables if c != "]" ] ) + " \t" nonequals = "".join( [ c for c in printables if c != "=" ] ) + " \t" sectionDef = lbrack + Word( nonrbrack ) + rbrack keyDef = ~lbrack + Word( nonequals ) + equals + empty + restOfLine # strip any leading or trailing blanks from key def stripKey(tokens): tokens[0] = tokens[0].strip() keyDef.setParseAction(stripKey) # using Dict will allow retrieval of named data fields as attributes of the parsed results inibnf = Dict( ZeroOrMore( Group( sectionDef + Dict( ZeroOrMore( Group( keyDef ) ) ) ) ) ) inibnf.ignore( comment ) return inibnf pp = pprint.PrettyPrinter(2) def test( strng ): print(strng) try: iniFile = open(strng) iniData = "".join( iniFile.readlines() ) bnf = inifile_BNF() tokens = bnf.parseString( iniData ) pp.pprint( tokens.asList() ) except ParseException as err: print(err.line) print(" "*(err.column-1) + "^") print(err) iniFile.close() print() return tokens if __name__ == "__main__": ini = test("setup.ini") print("ini['Startup']['modemid'] =", ini['Startup']['modemid']) print("ini.Startup =", ini.Startup) print("ini.Startup.modemid =", ini.Startup.modemid) pyparsing-2.2.0+dfsg1/examples/ebnf.py0000644000175000017500000001027612753027730016347 0ustar zigozigo# This module tries to implement ISO 14977 standard with pyparsing. # pyparsing version 1.1 or greater is required. # ISO 14977 standardize The Extended Backus-Naur Form(EBNF) syntax. # You can read a final draft version here: # http://www.cl.cam.ac.uk/~mgk25/iso-ebnf.html # # Submitted 2004 by Seo Sanghyeon # from pyparsing import * all_names = ''' integer meta_identifier terminal_string optional_sequence repeated_sequence grouped_sequence syntactic_primary syntactic_factor syntactic_term single_definition definitions_list syntax_rule syntax '''.split() integer = Word(nums) meta_identifier = Word(alphas, alphanums + '_') terminal_string = Suppress("'") + CharsNotIn("'") + Suppress("'") ^ \ Suppress('"') + CharsNotIn('"') + Suppress('"') definitions_list = Forward() optional_sequence = Suppress('[') + definitions_list + Suppress(']') repeated_sequence = Suppress('{') + definitions_list + Suppress('}') grouped_sequence = Suppress('(') + definitions_list + Suppress(')') syntactic_primary = optional_sequence ^ repeated_sequence ^ \ grouped_sequence ^ meta_identifier ^ terminal_string syntactic_factor = Optional(integer + Suppress('*')) + syntactic_primary syntactic_term = syntactic_factor + Optional(Suppress('-') + syntactic_factor) single_definition = delimitedList(syntactic_term, ',') definitions_list << delimitedList(single_definition, '|') syntax_rule = meta_identifier + Suppress('=') + definitions_list + \ Suppress(';') ebnfComment = ( "(*" + ZeroOrMore( CharsNotIn("*") | ( "*" + ~Literal(")") ) ) + "*)" ).streamline().setName("ebnfComment") syntax = OneOrMore(syntax_rule) syntax.ignore(ebnfComment) def do_integer(str, loc, toks): return int(toks[0]) def do_meta_identifier(str, loc, toks): if toks[0] in symbol_table: return symbol_table[toks[0]] else: forward_count.value += 1 symbol_table[toks[0]] = Forward() return symbol_table[toks[0]] def do_terminal_string(str, loc, toks): return Literal(toks[0]) def do_optional_sequence(str, loc, toks): return Optional(toks[0]) def do_repeated_sequence(str, loc, toks): return ZeroOrMore(toks[0]) def do_grouped_sequence(str, loc, toks): return Group(toks[0]) def do_syntactic_primary(str, loc, toks): return toks[0] def do_syntactic_factor(str, loc, toks): if len(toks) == 2: # integer * syntactic_primary return And([toks[1]] * toks[0]) else: # syntactic_primary return [ toks[0] ] def do_syntactic_term(str, loc, toks): if len(toks) == 2: # syntactic_factor - syntactic_factor return NotAny(toks[1]) + toks[0] else: # syntactic_factor return [ toks[0] ] def do_single_definition(str, loc, toks): toks = toks.asList() if len(toks) > 1: # syntactic_term , syntactic_term , ... return And(toks) else: # syntactic_term return [ toks[0] ] def do_definitions_list(str, loc, toks): toks = toks.asList() if len(toks) > 1: # single_definition | single_definition | ... return Or(toks) else: # single_definition return [ toks[0] ] def do_syntax_rule(str, loc, toks): # meta_identifier = definitions_list ; assert toks[0].expr is None, "Duplicate definition" forward_count.value -= 1 toks[0] << toks[1] return [ toks[0] ] def do_syntax(str, loc, toks): # syntax_rule syntax_rule ... return symbol_table symbol_table = {} class forward_count: pass forward_count.value = 0 for name in all_names: expr = vars()[name] action = vars()['do_' + name] expr.setName(name) expr.setParseAction(action) #~ expr.setDebug() def parse(ebnf, given_table={}): symbol_table.clear() symbol_table.update(given_table) forward_count.value = 0 table = syntax.parseString(ebnf)[0] assert forward_count.value == 0, "Missing definition" for name in table: expr = table[name] expr.setName(name) #~ expr.setDebug() return table pyparsing-2.2.0+dfsg1/examples/SingleForm.dfm0000644000175000017500000012532212466013312017607 0ustar zigozigoobject Form1: TForm1 Left = 161 Top = 149 Width = 696 Height = 342 Caption = 'DbxSingle' Color = clBtnFace Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -11 Font.Name = 'MS Sans Serif' Font.Style = [] OldCreateOrder = False OnCreate = FormCreate PixelsPerInch = 96 TextHeight = 13 object ActionToolBar2: TActionToolBar Left = 0 Top = 0 Width = 688 Height = 26 ActionManager = ActionManager1 AllowHiding = False Caption = 'ActionToolBar2' ColorMap.HighlightColor = 14410210 ColorMap.BtnSelectedColor = clBtnFace ColorMap.UnusedColor = 14410210 Spacing = 0 end object PageControl1: TPageControl Left = 0 Top = 26 Width = 688 Height = 289 ActivePage = TabSheet1 Align = alClient TabOrder = 1 object TabSheet1: TTabSheet Caption = 'Data' object DBGrid1: TDBGrid Left = 0 Top = 0 Width = 680 Height = 261 Align = alClient DataSource = DataSource1 TabOrder = 0 TitleFont.Charset = DEFAULT_CHARSET TitleFont.Color = clWindowText TitleFont.Height = -11 TitleFont.Name = 'MS Sans Serif' TitleFont.Style = [] end end object TabSheet2: TTabSheet Caption = 'Log' ImageIndex = 1 object Memo1: TMemo Left = 0 Top = 0 Width = 680 Height = 399 Align = alClient TabOrder = 0 end end end object SimpleDataSet1: TSimpleDataSet Aggregates = <> Connection.ConnectionName = 'IBLocal' Connection.DriverName = 'Interbase' Connection.GetDriverFunc = 'getSQLDriverINTERBASE' Connection.LibraryName = 'dbexpint.dll' Connection.LoginPrompt = False Connection.Params.Strings = ( 'BlobSize=-1' 'CommitRetain=False' 'Database=C:\Program Files\Common Files\Borland Shared\Data\emplo' + 'yee.gdb' 'DriverName=Interbase' 'Password=masterkey' 'RoleName=RoleName' 'ServerCharSet=ASCII' 'SQLDialect=1' 'Interbase TransIsolation=ReadCommited' 'User_Name=sysdba' 'WaitOnLocks=True') Connection.VendorLib = 'GDS32.DLL' DataSet.CommandText = 'EMPLOYEE' DataSet.CommandType = ctTable DataSet.MaxBlobSize = -1 DataSet.Params = <> Params = <> AfterPost = DoUpdate BeforeDelete = DoUpdate Left = 104 Top = 56 end object ActionManager1: TActionManager ActionBars = < item Items.CaptionOptions = coAll Items = < item Action = DataSetFirst1 ImageIndex = 0 end item Action = DataSetPrior1 ImageIndex = 1 end item Action = DataSetNext1 ImageIndex = 2 end item Action = DataSetLast1 ImageIndex = 3 end item Action = DataSetInsert1 ImageIndex = 4 end item Action = DataSetDelete1 ImageIndex = 5 end item Action = DataSetEdit1 ImageIndex = 6 end item Action = DataSetPost1 ImageIndex = 7 end item Action = DataSetCancel1 ImageIndex = 8 end item Action = DataSetRefresh1 ImageIndex = 9 end> ActionBar = ActionToolBar2 end> Images = ImageList1 Left = 112 Top = 184 StyleName = 'XP Style' object DataSetFirst1: TDataSetFirst Category = 'Dataset' Caption = 'First' ImageIndex = 0 end object DataSetPrior1: TDataSetPrior Category = 'Dataset' Caption = 'Prior' ImageIndex = 1 end object DataSetNext1: TDataSetNext Category = 'Dataset' Caption = 'Next' ImageIndex = 2 end object DataSetLast1: TDataSetLast Category = 'Dataset' Caption = 'Last' ImageIndex = 3 end object DataSetInsert1: TDataSetInsert Category = 'Dataset' Caption = 'Insert' ImageIndex = 4 end object DataSetDelete1: TDataSetDelete Category = 'Dataset' Caption = 'Delete' ImageIndex = 5 end object DataSetEdit1: TDataSetEdit Category = 'Dataset' Caption = 'Edit' ImageIndex = 6 end object DataSetPost1: TDataSetPost Category = 'Dataset' Caption = 'Post' ImageIndex = 7 end object DataSetCancel1: TDataSetCancel Category = 'Dataset' Caption = 'Cancel' ImageIndex = 8 end object DataSetRefresh1: TDataSetRefresh Category = 'Dataset' Caption = 'Refresh' ImageIndex = 9 end end object ImageList1: TImageList Left = 112 Top = 120 Bitmap = { 494C01010C000F00040010001000FFFFFFFFFF10FFFFFFFFFFFFFFFF424D3600 0000000000003600000028000000400000004000000001002000000000000040 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000084848400848484008484840084848400848484008484 8400848484000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000848484000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000008484000084 8400000000000000000000000000000000000000000000000000000000000000 0000000000000084840000000000000000000000000000000000000000000000 00000000000000000000FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000 0000848484000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000084848400000000008484840000000000000000000000 0000000000000000000000000000000000000000000000000000008484000084 8400000000000000000000000000000000000000000000000000000000000000 0000000000000084840000000000000000000000000000000000000000000000 00000000000000000000FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000 0000848484000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000848484000000000000000000848484000000000000000000000000000000 0000000000000000000000000000000000000000000000000000008484000084 8400000000000000000000000000000000000000000000000000000000000000 0000000000000084840000000000000000000000000000000000000000000000 00000000000000000000FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000 0000848484000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000084848400000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000008484000084 8400000000000000000000000000000000000000000000000000000000000000 0000000000000084840000000000000000000000000000000000000000000000 00000000000000000000FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000 0000848484000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000008484 8400000000008484840000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000008484000084 8400008484000084840000848400008484000084840000848400008484000084 8400008484000084840000000000000000000000000000000000000000000000 00000000000000000000FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000 0000848484000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000008484000084 8400000000000000000000000000000000000000000000000000000000000000 0000008484000084840000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000008484000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000084840000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000008484840000000000000000000000000084848400000000000000 0000000000000000000000000000000000000000000000000000008484000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000084840000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000008484 8400000000000000000084848400000000008484840000000000000000000000 0000000000000000000000000000000000000000000000000000008484000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000084840000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000008484 8400000000000000000000000000000000000000000000000000008484000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000084840000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000008484840000000000000000000000000084848400000000000000 0000000000000000000000000000000000000000000000000000008484000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000008484000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000848484000000000000000000000000000000000000000000000000008484 8400000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000084848400000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000084848400000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000848484000000000000000000000000000000000000000000000000008484 8400000000000000000000000000000000000000000000000000000000000000 0000848484000000000000000000000000000000000084848400000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000848484000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000008484840000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000084848400000000000000000000000000000000008484 8400000000000000000000000000000000000000000000000000000000000000 0000848484000000000000000000848484000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000008484840000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000848484000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000008484840000000000000000008484 8400000000000000000000000000000000000000000000000000000000000000 0000848484008484840000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000848484008484 8400000000000000000000000000000000000000000000000000000000000000 0000848484000000000000000000848484000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000008484840000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000848484000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000008484840000000000000000008484 8400000000000000000000000000000000000000000000000000000000000000 0000848484000000000000000000000000000000000084848400000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000848484000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000008484840000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000084848400000000000000000000000000000000008484 8400000000000000000000000000000000000000000000000000000000000000 0000848484000000000000000000000000000000000000000000000000008484 8400000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000084848400000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000084848400000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000848484000000000000000000000000000000000000000000000000008484 8400000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000424D3E000000000000003E000000 2800000040000000400000000100010000000000000200000000000000000000 000000000000000000000000FFFFFF0000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000FFFFFFFFFFFFFC07FFFFFFFFC001F807 FFFFFFFF8031F807FFFFFC7F8031F807F3E7F0FF8031F807F1C7F1FF8001F807 F88FE3FF8001F807FC1FE7FF8001F80FFE3FE7078FF1FF7FFC1FE3878FF1FE3F F88FE1078FF1FC1FF1C7F0078FF1FFFFF3E7F8378FF1FEFFFFFFFFFF8FF5FFFF FFFFFFFF8001FDFFFFFFFFFFFFFF6FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC7FFFFFFFFFFBFFFC7FFFFFFFFFF1FF FC7FFFFFE007E0FFE00FE007F00FC47FE00FE007F81FCE3FE00FE007FC3FFF1F FC7FFFFFFE7FFF8FFC7FFFFFFFFFFFC7FC7FFFFFFFFFFFE7FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE7E7FF9FF9FFE7E7 E787FE1FF87FE1E7E607F81FF81FE067E007F01FF80FE007E607F81FF81FE067 E787FE1FF87FE1E7E7E7FF9FF9FFE7E7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000000000000000000000000000 000000000000} end object DataSource1: TDataSource DataSet = SimpleDataSet1 Left = 108 Top = 250 end object SQLMonitor1: TSQLMonitor OnTrace = SQLMonitor1Trace Left = 228 Top = 122 end end pyparsing-2.2.0+dfsg1/examples/fourFn.py0000644000175000017500000001636312652252012016666 0ustar zigozigo# fourFn.py # # Demonstration of the pyparsing module, implementing a simple 4-function expression parser, # with support for scientific notation, and symbols for e and pi. # Extended to add exponentiation and simple built-in functions. # Extended test cases, simplified pushFirst method. # Removed unnecessary expr.suppress() call (thanks Nathaniel Peterson!), and added Group # Changed fnumber to use a Regex, which is now the preferred method # # Copyright 2003-2009 by Paul McGuire # from pyparsing import Literal,CaselessLiteral,Word,Group,Optional,\ ZeroOrMore,Forward,nums,alphas,alphanums,Regex,ParseException,\ CaselessKeyword, Suppress import math import operator exprStack = [] def pushFirst( strg, loc, toks ): exprStack.append( toks[0] ) def pushUMinus( strg, loc, toks ): for t in toks: if t == '-': exprStack.append( 'unary -' ) #~ exprStack.append( '-1' ) #~ exprStack.append( '*' ) else: break bnf = None def BNF(): """ expop :: '^' multop :: '*' | '/' addop :: '+' | '-' integer :: ['+' | '-'] '0'..'9'+ atom :: PI | E | real | fn '(' expr ')' | '(' expr ')' factor :: atom [ expop factor ]* term :: factor [ multop factor ]* expr :: term [ addop term ]* """ global bnf if not bnf: point = Literal( "." ) # use CaselessKeyword for e and pi, to avoid accidentally matching # functions that start with 'e' or 'pi' (such as 'exp'); Keyword # and CaselessKeyword only match whole words e = CaselessKeyword( "E" ) pi = CaselessKeyword( "PI" ) #~ fnumber = Combine( Word( "+-"+nums, nums ) + #~ Optional( point + Optional( Word( nums ) ) ) + #~ Optional( e + Word( "+-"+nums, nums ) ) ) fnumber = Regex(r"[+-]?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?") ident = Word(alphas, alphanums+"_$") plus, minus, mult, div = map(Literal, "+-*/") lpar, rpar = map(Suppress, "()") addop = plus | minus multop = mult | div expop = Literal( "^" ) expr = Forward() atom = ((0,None)*minus + ( pi | e | fnumber | ident + lpar + expr + rpar | ident ).setParseAction( pushFirst ) | Group( lpar + expr + rpar )).setParseAction(pushUMinus) # by defining exponentiation as "atom [ ^ factor ]..." instead of "atom [ ^ atom ]...", we get right-to-left exponents, instead of left-to-righ # that is, 2^3^2 = 2^(3^2), not (2^3)^2. factor = Forward() factor << atom + ZeroOrMore( ( expop + factor ).setParseAction( pushFirst ) ) term = factor + ZeroOrMore( ( multop + factor ).setParseAction( pushFirst ) ) expr << term + ZeroOrMore( ( addop + term ).setParseAction( pushFirst ) ) bnf = expr return bnf # map operator symbols to corresponding arithmetic operations epsilon = 1e-12 opn = { "+" : operator.add, "-" : operator.sub, "*" : operator.mul, "/" : operator.truediv, "^" : operator.pow } fn = { "sin" : math.sin, "cos" : math.cos, "tan" : math.tan, "exp" : math.exp, "abs" : abs, "trunc" : lambda a: int(a), "round" : round, "sgn" : lambda a: (a > epsilon) - (a < -epsilon) } def evaluateStack( s ): op = s.pop() if op == 'unary -': return -evaluateStack( s ) if op in "+-*/^": op2 = evaluateStack( s ) op1 = evaluateStack( s ) return opn[op]( op1, op2 ) elif op == "PI": return math.pi # 3.1415926535 elif op == "E": return math.e # 2.718281828 elif op in fn: return fn[op]( evaluateStack( s ) ) elif op[0].isalpha(): raise Exception("invalid identifier '%s'" % op) else: return float( op ) if __name__ == "__main__": def test( s, expVal ): global exprStack exprStack[:] = [] try: results = BNF().parseString( s, parseAll=True ) val = evaluateStack( exprStack[:] ) except ParseException as e: print(s, "failed parse:", str(pe)) except Exception as e: print(s, "failed eval:", str(e)) else: if val == expVal: print(s, "=", val, results, "=>", exprStack) else: print(s+"!!!", val, "!=", expVal, results, "=>", exprStack) test( "9", 9 ) test( "-9", -9 ) test( "--9", 9 ) test( "-E", -math.e ) test( "9 + 3 + 6", 9 + 3 + 6 ) test( "9 + 3 / 11", 9 + 3.0 / 11 ) test( "(9 + 3)", (9 + 3) ) test( "(9+3) / 11", (9+3.0) / 11 ) test( "9 - 12 - 6", 9 - 12 - 6 ) test( "9 - (12 - 6)", 9 - (12 - 6) ) test( "2*3.14159", 2*3.14159 ) test( "3.1415926535*3.1415926535 / 10", 3.1415926535*3.1415926535 / 10 ) test( "PI * PI / 10", math.pi * math.pi / 10 ) test( "PI*PI/10", math.pi*math.pi/10 ) test( "PI^2", math.pi**2 ) test( "round(PI^2)", round(math.pi**2) ) test( "6.02E23 * 8.048", 6.02E23 * 8.048 ) test( "e / 3", math.e / 3 ) test( "sin(PI/2)", math.sin(math.pi/2) ) test( "trunc(E)", int(math.e) ) test( "trunc(-E)", int(-math.e) ) test( "round(E)", round(math.e) ) test( "round(-E)", round(-math.e) ) test( "E^PI", math.e**math.pi ) test( "exp(0)", 1 ) test( "exp(1)", math.e ) test( "2^3^2", 2**3**2 ) test( "2^3+2", 2**3+2 ) test( "2^3+5", 2**3+5 ) test( "2^9", 2**9 ) test( "sgn(-2)", -1 ) test( "sgn(0)", 0 ) test( "foo(0.1)", None ) test( "sgn(0.1)", 1 ) """ Test output: >pythonw -u fourFn.py 9 = 9.0 ['9'] => ['9'] 9 + 3 + 6 = 18.0 ['9', '+', '3', '+', '6'] => ['9', '3', '+', '6', '+'] 9 + 3 / 11 = 9.27272727273 ['9', '+', '3', '/', '11'] => ['9', '3', '11', '/', '+'] (9 + 3) = 12.0 [] => ['9', '3', '+'] (9+3) / 11 = 1.09090909091 ['/', '11'] => ['9', '3', '+', '11', '/'] 9 - 12 - 6 = -9.0 ['9', '-', '12', '-', '6'] => ['9', '12', '-', '6', '-'] 9 - (12 - 6) = 3.0 ['9', '-'] => ['9', '12', '6', '-', '-'] 2*3.14159 = 6.28318 ['2', '*', '3.14159'] => ['2', '3.14159', '*'] 3.1415926535*3.1415926535 / 10 = 0.986960440053 ['3.1415926535', '*', '3.1415926535', '/', '10'] => ['3.1415926535', '3.1415926535', '*', '10', '/'] PI * PI / 10 = 0.986960440109 ['PI', '*', 'PI', '/', '10'] => ['PI', 'PI', '*', '10', '/'] PI*PI/10 = 0.986960440109 ['PI', '*', 'PI', '/', '10'] => ['PI', 'PI', '*', '10', '/'] PI^2 = 9.86960440109 ['PI', '^', '2'] => ['PI', '2', '^'] 6.02E23 * 8.048 = 4.844896e+024 ['6.02E23', '*', '8.048'] => ['6.02E23', '8.048', '*'] e / 3 = 0.90609394282 ['E', '/', '3'] => ['E', '3', '/'] sin(PI/2) = 1.0 ['sin', 'PI', '/', '2'] => ['PI', '2', '/', 'sin'] trunc(E) = 2 ['trunc', 'E'] => ['E', 'trunc'] E^PI = 23.1406926328 ['E', '^', 'PI'] => ['E', 'PI', '^'] 2^3^2 = 512.0 ['2', '^', '3', '^', '2'] => ['2', '3', '2', '^', '^'] 2^3+2 = 10.0 ['2', '^', '3', '+', '2'] => ['2', '3', '^', '2', '+'] 2^9 = 512.0 ['2', '^', '9'] => ['2', '9', '^'] sgn(-2) = -1 ['sgn', '-2'] => ['-2', 'sgn'] sgn(0) = 0 ['sgn', '0'] => ['0', 'sgn'] sgn(0.1) = 1 ['sgn', '0.1'] => ['0.1', 'sgn'] >Exit code: 0 """ pyparsing-2.2.0+dfsg1/examples/greetingInKorean.py0000644000175000017500000000101212752442052020651 0ustar zigozigo# vim:fileencoding=utf-8 # # greetingInKorean.py # # Demonstration of the parsing module, on the prototypical "Hello, World!" example # # Copyright 2004-2016, by Paul McGuire # from pyparsing import Word, srange koreanChars = srange(r"[\0xac00-\0xd7a3]") koreanWord = Word(koreanChars,min=2) # define grammar greet = koreanWord + "," + koreanWord + "!" # input string hello = '\uc548\ub155, \uc5ec\ub7ec\ubd84!' #"Hello, World!" in Korean # parse input string print(greet.parseString( hello )) pyparsing-2.2.0+dfsg1/examples/parseTabularData.py0000644000175000017500000000326412641053622020646 0ustar zigozigo# # parseTabularData.py # # Example of parsing data that is formatted in a tabular listing, with # potential for missing values. Uses new addCondition method on # ParserElements. # # Copyright 2015, Paul McGuire # from pyparsing import col,Word,Optional,alphas,nums,ParseException table = """\ 1 2 12345678901234567890 COLOR S M L RED 10 2 2 BLUE 5 10 GREEN 3 5 PURPLE 8""" # function to create column-specific parse conditions def mustMatchCols(startloc,endloc): return lambda s,l,t: startloc <= col(l,s) <= endloc # helper to define values in a space-delimited table # (change empty_cell_is_zero to True if a value of 0 is desired for empty cells) def tableValue(expr, colstart, colend): empty_cell_is_zero = False if empty_cell_is_zero: return Optional(expr.copy().addCondition(mustMatchCols(colstart,colend), message="text not in expected columns"), default=0) else: return Optional(expr.copy().addCondition(mustMatchCols(colstart,colend), message="text not in expected columns")) # define the grammar for this simple table colorname = Word(alphas) integer = Word(nums).setParseAction(lambda t: int(t[0])).setName("integer") row = (colorname("name") + tableValue(integer, 11, 12)("S") + tableValue(integer, 15, 16)("M") + tableValue(integer, 19, 20)("L")) # parse the sample text - skip over the header and counter lines for line in table.splitlines()[3:]: print(line) print(row.parseString(line).dump()) print('') pyparsing-2.2.0+dfsg1/examples/TAP.py0000644000175000017500000001645312466013312016054 0ustar zigozigo# # TAP.py - TAP parser # # A pyparsing parser to process the output of the Perl # "Test Anything Protocol" # (http://search.cpan.org/~petdance/TAP-1.00/TAP.pm) # # TAP output lines are preceded or followed by a test number range: # 1..n # with 'n' TAP output lines. # # The general format of a TAP output line is: # ok/not ok (required) # Test number (recommended) # Description (recommended) # Directive (only when necessary) # # A TAP output line may also indicate abort of the test suit with the line: # Bail out! # optionally followed by a reason for bailing # # Copyright 2008, by Paul McGuire # from pyparsing import ParserElement,LineEnd,Optional,Word,nums,Regex,\ Literal,CaselessLiteral,Group,OneOrMore,Suppress,restOfLine,\ FollowedBy,empty __all__ = ['tapOutputParser', 'TAPTest', 'TAPSummary'] # newlines are significant whitespace, so set default skippable # whitespace to just spaces and tabs ParserElement.setDefaultWhitespaceChars(" \t") NL = LineEnd().suppress() integer = Word(nums) plan = '1..' + integer("ubound") OK,NOT_OK = map(Literal,['ok','not ok']) testStatus = (OK | NOT_OK) description = Regex("[^#\n]+") description.setParseAction(lambda t:t[0].lstrip('- ')) TODO,SKIP = map(CaselessLiteral,'TODO SKIP'.split()) directive = Group(Suppress('#') + (TODO + restOfLine | FollowedBy(SKIP) + restOfLine.copy().setParseAction(lambda t:['SKIP',t[0]]) )) commentLine = Suppress("#") + empty + restOfLine testLine = Group( Optional(OneOrMore(commentLine + NL))("comments") + testStatus("passed") + Optional(integer)("testNumber") + Optional(description)("description") + Optional(directive)("directive") ) bailLine = Group(Literal("Bail out!")("BAIL") + empty + Optional(restOfLine)("reason")) tapOutputParser = Optional(Group(plan)("plan") + NL) & \ Group(OneOrMore((testLine|bailLine) + NL))("tests") class TAPTest(object): def __init__(self,results): self.num = results.testNumber self.passed = (results.passed=="ok") self.skipped = self.todo = False if results.directive: self.skipped = (results.directive[0][0]=='SKIP') self.todo = (results.directive[0][0]=='TODO') @classmethod def bailedTest(cls,num): ret = TAPTest(empty.parseString("")) ret.num = num ret.skipped = True return ret class TAPSummary(object): def __init__(self,results): self.passedTests = [] self.failedTests = [] self.skippedTests = [] self.todoTests = [] self.bonusTests = [] self.bail = False if results.plan: expected = list(range(1, int(results.plan.ubound)+1)) else: expected = list(range(1,len(results.tests)+1)) for i,res in enumerate(results.tests): # test for bail out if res.BAIL: #~ print "Test suite aborted: " + res.reason #~ self.failedTests += expected[i:] self.bail = True self.skippedTests += [ TAPTest.bailedTest(ii) for ii in expected[i:] ] self.bailReason = res.reason break #~ print res.dump() testnum = i+1 if res.testNumber != "": if testnum != int(res.testNumber): print("ERROR! test %(testNumber)s out of sequence" % res) testnum = int(res.testNumber) res["testNumber"] = testnum test = TAPTest(res) if test.passed: self.passedTests.append(test) else: self.failedTests.append(test) if test.skipped: self.skippedTests.append(test) if test.todo: self.todoTests.append(test) if test.todo and test.passed: self.bonusTests.append(test) self.passedSuite = not self.bail and (set(self.failedTests)-set(self.todoTests) == set()) def summary(self, showPassed=False, showAll=False): testListStr = lambda tl : "[" + ",".join(str(t.num) for t in tl) + "]" summaryText = [] if showPassed or showAll: summaryText.append( "PASSED: %s" % testListStr(self.passedTests) ) if self.failedTests or showAll: summaryText.append( "FAILED: %s" % testListStr(self.failedTests) ) if self.skippedTests or showAll: summaryText.append( "SKIPPED: %s" % testListStr(self.skippedTests) ) if self.todoTests or showAll: summaryText.append( "TODO: %s" % testListStr(self.todoTests) ) if self.bonusTests or showAll: summaryText.append( "BONUS: %s" % testListStr(self.bonusTests) ) if self.passedSuite: summaryText.append( "PASSED" ) else: summaryText.append( "FAILED" ) return "\n".join(summaryText) # create TAPSummary objects from tapOutput parsed results, by setting # class as parse action tapOutputParser.setParseAction(TAPSummary) if __name__ == "__main__": test1 = """\ 1..4 ok 1 - Input file opened not ok 2 - First line of the input valid ok 3 - Read the rest of the file not ok 4 - Summarized correctly # TODO Not written yet """ test2 = """\ ok 1 not ok 2 some description # TODO with a directive ok 3 a description only, no directive ok 4 # TODO directive only ok a description only, no directive ok # Skipped only a directive, no description ok """ test3 = """\ ok - created Board ok ok not ok ok ok ok ok # +------+------+------+------+ # | |16G | |05C | # | |G N C | |C C G | # | | G | | C +| # +------+------+------+------+ # |10C |01G | |03C | # |R N G |G A G | |C C C | # | R | G | | C +| # +------+------+------+------+ # | |01G |17C |00C | # | |G A G |G N R |R N R | # | | G | R | G | # +------+------+------+------+ ok - board has 7 tiles + starter tile 1..9 """ test4 = """\ 1..4 ok 1 - Creating test program ok 2 - Test program runs, no error not ok 3 - infinite loop # TODO halting problem unsolved not ok 4 - infinite loop 2 # TODO halting problem unsolved """ test5 = """\ 1..20 ok - database handle not ok - failed database login Bail out! Couldn't connect to database. """ test6 = """\ ok 1 - retrieving servers from the database # need to ping 6 servers ok 2 - pinged diamond ok 3 - pinged ruby not ok 4 - pinged sapphire ok 5 - pinged onyx not ok 6 - pinged quartz ok 7 - pinged gold 1..7 """ for test in (test1,test2,test3,test4,test5,test6): print(test) tapResult = tapOutputParser.parseString(test)[0] print(tapResult.summary(showAll=True)) print() pyparsing-2.2.0+dfsg1/examples/mozilla.ics0000644000175000017500000000136012466013312017214 0ustar zigozigoBEGIN:VCALENDAR VERSION :2.0 PRODID :-//Mozilla.org/NONSGML Mozilla Calendar V1.0//EN METHOD :PUBLISH BEGIN:VEVENT UID :153ed0e0-1dd2-11b2-9d71-96da104537a4 SUMMARY :Test event DESCRIPTION :Some notes LOCATION :Somewhere over the rainbow CATEGORIES :Personal URL :http://personal.amec.fi STATUS :CONFIRMED CLASS :PRIVATE X ;MEMBER=AlarmEmailAddress :petri.savolainen@iki.fi X-MOZILLA-RECUR-DEFAULT-UNITS :months RRULE :FREQ=MONTHLY;UNTIL=20040914;INTERVAL=1 EXDATE :20040714T000000 DTSTART ;VALUE=DATE :20040714 DTEND ;VALUE=DATE :20040815 DTSTAMP :20040714T141219Z LAST-MODIFIED :20040714T141457Z BEGIN:VALARM TRIGGER ;VALUE=DURATION :PT15M END:VALARM END:VEVENT END:VCALENDAR pyparsing-2.2.0+dfsg1/examples/apicheck.py0000644000175000017500000000425112752444367017210 0ustar zigozigo# apicheck.py # A simple source code scanner for finding patterns of the form # [ procname1 $arg1 $arg2 ] # and verifying the number of arguments # # Copyright (c) 2004-2016, Paul McGuire # from pyparsing import * # define punctuation and simple tokens for locating API calls LBRACK,RBRACK,LBRACE,RBRACE = map(Suppress,"[]{}") ident = Word(alphas,alphanums+"_") | QuotedString("{",endQuoteChar="}") arg = "$" + ident # define an API call with a specific number of arguments - using '-' # will ensure that after matching procname, an incorrect number of args will # raise a ParseSyntaxException, which will interrupt the scanString def apiProc(name, numargs): return LBRACK + Keyword(name)("procname") - arg*numargs + RBRACK # create an apiReference, listing all API functions to be scanned for, and # their respective number of arguments. Beginning the overall expression # with FollowedBy allows us to quickly rule out non-api calls while scanning, # since all of the api calls begin with a "[" apiRef = FollowedBy("[") + MatchFirst([ apiProc("procname1", 2), apiProc("procname2", 1), apiProc("procname3", 2), ]) test = """[ procname1 $par1 $par2 ] other code here [ procname1 $par1 $par2 $par3 ] more code here [ procname1 $par1 ] [ procname3 ${arg with spaces} $par2 ]""" # now explicitly iterate through the scanner using next(), so that # we can trap ParseSyntaxException's that would be raised due to # an incorrect number of arguments. If an exception does occur, # then see how we reset the input text and scanner to advance to the # next line of source code api_scanner = apiRef.scanString(test) while 1: try: t,s,e = next(api_scanner) print("found %s on line %d" % (t.procname, lineno(s,test))) except ParseSyntaxException as pe: print("invalid arg count on line", pe.lineno) print(pe.lineno,':',pe.line) # reset api scanner to start after this exception location test = "\n"*(pe.lineno-1)+test[pe.loc+1:] api_scanner = apiRef.scanString(test) except StopIteration: break pyparsing-2.2.0+dfsg1/examples/pymicko.py0000644000175000017500000016627312466013312017111 0ustar zigozigo#!/usr/bin/python # Python/pyparsing educational microC compiler v1.0 # Copyright (C) 2009 Zarko Zivanov # (largely based on flex/bison microC compiler by Zorica Suvajdzin, used with her permission; # current version can be found at http://www.acs.uns.ac.rs, under "Programski Prevodioci" [Serbian site]) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # A copy of the GNU General Public License can be found at . from pyparsing import * from sys import stdin, stdout, stderr, argv, exit #defines debug level # 0 - no debug # 1 - print parsing results # 2 - print parsing results and symbol table # 3 - print parsing results only, without executing parse actions (grammar-only testing) DEBUG = 0 ########################################################################################## ########################################################################################## # About microC language and microC compiler # microC language and microC compiler are educational tools, and their goal is to show some basic principles # of writing a C language compiler. Compiler represents one (relatively simple) solution, not necessarily the best one. # This Python/pyparsing version is made using Python 2.6.4 and pyparsing 1.5.2 (and it may contain errors :) ) ########################################################################################## ########################################################################################## # Model of the used hypothetical processor # The reason behind using a hypothetical processor is to simplify code generation and to concentrate on the compiler itself. # This compiler can relatively easily be ported to x86, but one must know all the little details about which register # can be used for what, which registers are default for various operations, etc. # The hypothetical processor has 16 registers, called %0 to %15. Register %13 is used for the function return value (x86's eax), # %14 is the stack frame pointer (x86's ebp) and %15 is the stack pointer (x86's esp). All data-handling instructions can be # unsigned (suffix U), or signed (suffix S). These are ADD, SUB, MUL and DIV. These are three-address instructions, # the first two operands are input, the third one is output. Whether these operands are registers, memory or constant # is not relevant, all combinations are possible (except that output cannot be a constant). Constants are writen with a $ prefix (10-base only). # Conditional jumps are handled by JXXY instructions, where XX is LT, GT, LE, GE, EQ, NE (less than, greater than, less than or equal, etc.) # and Y is U or S (unsigned or signed, except for JEQ i JNE). Unconditional jump is JMP. The move instruction is MOV. # Function handling is done using CALL, RET, PUSH and POP (C style function calls). Static data is defined using the WORD directive # (example: variable: WORD 1), whose only argument defines the number of locations that are reserved. ########################################################################################## ########################################################################################## # Grammar of The microC Programming Language # (small subset of C made for compiler course at Faculty of Technical Sciences, Chair for Applied Computer Sciences, Novi Sad, Serbia) # Patterns: # letter # -> "_" | "a" | "A" | "b" | "B" | "c" | "C" | "d" | "D" | "e" | "E" | "f" # | "F" | "g" | "G" | "h" | "H" | "i" | "I" | "j" | "J" | "k" | "K" | "l" # | "L" | "m" | "M" | "n" | "N" | "o" | "O" | "p" | "P" | "q" | "Q" | "r" # | "R" | "s" | "S" | "t" | "T" | "u" | "U" | "v" | "V" | "w" | "W" | "x" # | "X" | "y" | "Y" | "z" | "Z" # digit # -> "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" # identifier # -> letter ( letter | digit )* # int_constant # -> digit + # unsigned_constant # -> digit + ( "u" | "U" ) # Productions: # program # -> variable_list function_list # -> function_list # variable_list # -> variable ";" # -> variable_list variable ";" # variable # -> type identifier # type # -> "int" # -> "unsigned" # function_list # -> function # -> function_list function # function # -> type identifier "(" parameters ")" body # parameters # -> # -> parameter_list # parameter_list # -> variable # -> parameter_list "," variable # body # -> "{" variable_list statement_list "}" # -> "{" statement_list "}" # statement_list # -> # -> statement_list statement # statement # -> assignement_statement # -> function_call_statement # -> if_statement # -> while_statement # -> return_statement # -> compound_statement # assignement_statement # -> identifier "=" num_exp ";" # num_exp # -> mul_exp # -> num_exp "+" mul_exp # -> num_exp "-" mul_exp # mul_exp # -> exp # -> mul_exp "*" exp # -> mul_exp "/" exp # exp # -> constant # -> identifier # -> function_call # -> "(" num_exp ")" # -> "+" exp # -> "-" exp # constant # -> int_constant # -> unsigned_constant # function_call # -> identifier "(" arguments ")" # arguments # -> # -> argument_list # argument_list # -> num_exp # -> argument_list "," num_exp # function_call_statement # -> function_call ";" # if_statement # -> "if" "(" log_exp ")" statement # -> "if" "(" log_exp ")" statement "else" statement # -> -> -> -> -> -> -> -> 2 # log_exp # -> and_exp # -> log_exp "||" and_exp # and_exp # -> rel_exp # -> and_exp "&&" rel_exp # rel_exp # -> num_exp "<" num_exp # -> num_exp ">" num_exp # -> num_exp "<=" num_exp # -> num_exp ">=" num_exp # -> num_exp "==" num_exp # -> num_exp "!=" num_exp # while_statement # -> "while" "(" log_exp ")" statement # return_statement # -> "return" num_exp ";" # compound_statement # -> "{" statement_list "}" # Comment: /* a comment */ ########################################################################################## ########################################################################################## class Enumerate(dict): """C enum emulation (original by Scott David Daniels)""" def __init__(self, names): for number, name in enumerate(names.split()): setattr(self, name, number) self[number] = name class SharedData(object): """Data used in all three main classes""" #Possible kinds of symbol table entries KINDS = Enumerate("NO_KIND WORKING_REGISTER GLOBAL_VAR FUNCTION PARAMETER LOCAL_VAR CONSTANT") #Supported types of functions and variables TYPES = Enumerate("NO_TYPE INT UNSIGNED") #bit size of variables TYPE_BIT_SIZE = 16 #min/max values of constants MIN_INT = -2 ** (TYPE_BIT_SIZE - 1) MAX_INT = 2 ** (TYPE_BIT_SIZE - 1) - 1 MAX_UNSIGNED = 2 ** TYPE_BIT_SIZE - 1 #available working registers (the last one is the register for function's return value!) REGISTERS = "%0 %1 %2 %3 %4 %5 %6 %7 %8 %9 %10 %11 %12 %13".split() #register for function's return value FUNCTION_REGISTER = len(REGISTERS) - 1 #the index of last working register LAST_WORKING_REGISTER = len(REGISTERS) - 2 #list of relational operators RELATIONAL_OPERATORS = "< > <= >= == !=".split() def __init__(self): #index of the currently parsed function self.functon_index = 0 #name of the currently parsed function self.functon_name = 0 #number of parameters of the currently parsed function self.function_params = 0 #number of local variables of the currently parsed function self.function_vars = 0 ########################################################################################## ########################################################################################## class ExceptionSharedData(object): """Class for exception handling data""" def __init__(self): #position in currently parsed text self.location = 0 #currently parsed text self.text = "" def setpos(self, location, text): """Helper function for setting curently parsed text and position""" self.location = location self.text = text exshared = ExceptionSharedData() class SemanticException(Exception): """Exception for semantic errors found during parsing, similar to ParseException. Introduced because ParseException is used internally in pyparsing and custom messages got lost and replaced by pyparsing's generic errors. """ def __init__(self, message, print_location=True): super(SemanticException,self).__init__() self._message = message self.location = exshared.location self.print_location = print_location if exshared.location != None: self.line = lineno(exshared.location, exshared.text) self.col = col(exshared.location, exshared.text) self.text = line(exshared.location, exshared.text) else: self.line = self.col = self.text = None def _get_message(self): return self._message def _set_message(self, message): self._message = message message = property(_get_message, _set_message) def __str__(self): """String representation of the semantic error""" msg = "Error" if self.print_location and (self.line != None): msg += " at line %d, col %d" % (self.line, self.col) msg += ": %s" % self.message if self.print_location and (self.line != None): msg += "\n%s" % self.text return msg ########################################################################################## ########################################################################################## class SymbolTableEntry(object): """Class which represents one symbol table entry.""" def __init__(self, sname = "", skind = 0, stype = 0, sattr = None, sattr_name = "None"): """Initialization of symbol table entry. sname - symbol name skind - symbol kind stype - symbol type sattr - symbol attribute sattr_name - symbol attribute name (used only for table display) """ self.name = sname self.kind = skind self.type = stype self.attribute = sattr self.attribute_name = sattr_name self.param_types = [] def set_attribute(self, name, value): """Sets attribute's name and value""" self.attribute_name = name self.attribute = value def attribute_str(self): """Returns attribute string (used only for table display)""" return "{0}={1}".format(self.attribute_name, self.attribute) if self.attribute != None else "None" class SymbolTable(object): """Class for symbol table of microC program""" def __init__(self, shared): """Initialization of the symbol table""" self.table = [] self.lable_len = 0 #put working registers in the symbol table for reg in range(SharedData.FUNCTION_REGISTER+1): self.insert_symbol(SharedData.REGISTERS[reg], SharedData.KINDS.WORKING_REGISTER, SharedData.TYPES.NO_TYPE) #shared data self.shared = shared def error(self, text=""): """Symbol table error exception. It should happen only if index is out of range while accessing symbol table. This exeption is not handled by the compiler, so as to allow traceback printing """ if text == "": raise Exception("Symbol table index out of range") else: raise Exception("Symbol table error: %s" % text) def display(self): """Displays the symbol table content""" #Finding the maximum length for each column sym_name = "Symbol name" sym_len = max(max(len(i.name) for i in self.table),len(sym_name)) kind_name = "Kind" kind_len = max(max(len(SharedData.KINDS[i.kind]) for i in self.table),len(kind_name)) type_name = "Type" type_len = max(max(len(SharedData.TYPES[i.type]) for i in self.table),len(type_name)) attr_name = "Attribute" attr_len = max(max(len(i.attribute_str()) for i in self.table),len(attr_name)) #print table header print("{0:3s} | {1:^{2}s} | {3:^{4}s} | {5:^{6}s} | {7:^{8}} | {9:s}".format(" No", sym_name, sym_len, kind_name, kind_len, type_name, type_len, attr_name, attr_len, "Parameters")) print("-----------------------------" + "-" * (sym_len + kind_len + type_len + attr_len)) #print symbol table for i,sym in enumerate(self.table): parameters = "" for p in sym.param_types: if parameters == "": parameters = "{0}".format(SharedData.TYPES[p]) else: parameters += ", {0}".format(SharedData.TYPES[p]) print("{0:3d} | {1:^{2}s} | {3:^{4}s} | {5:^{6}s} | {7:^{8}} | ({9})".format(i, sym.name, sym_len, SharedData.KINDS[sym.kind], kind_len, SharedData.TYPES[sym.type], type_len, sym.attribute_str(), attr_len, parameters)) def insert_symbol(self, sname, skind, stype): """Inserts new symbol at the end of the symbol table. Returns symbol index sname - symbol name skind - symbol kind stype - symbol type """ self.table.append(SymbolTableEntry(sname, skind, stype)) self.table_len = len(self.table) return self.table_len-1 def clear_symbols(self, index): """Clears all symbols begining with the index to the end of table""" try: del self.table[index:] except Exception: self.error() self.table_len = len(self.table) def lookup_symbol(self, sname, skind=list(SharedData.KINDS.keys()), stype=list(SharedData.TYPES.keys())): """Searches for symbol, from the end to the begining. Returns symbol index or None sname - symbol name skind - symbol kind (one kind, list of kinds, or None) deafult: any kind stype - symbol type (or None) default: any type """ skind = skind if isinstance(skind, list) else [skind] stype = stype if isinstance(stype, list) else [stype] for i, sym in [[x, self.table[x]] for x in range(len(self.table) - 1, SharedData.LAST_WORKING_REGISTER, -1)]: if (sym.name == sname) and (sym.kind in skind) and (sym.type in stype): return i return None def insert_id(self, sname, skind, skinds, stype): """Inserts a new identifier at the end of the symbol table, if possible. Returns symbol index, or raises an exception if the symbol alredy exists sname - symbol name skind - symbol kind skinds - symbol kinds to check for stype - symbol type """ index = self.lookup_symbol(sname, skinds) if index == None: index = self.insert_symbol(sname, skind, stype) return index else: raise SemanticException("Redefinition of '%s'" % sname) def insert_global_var(self, vname, vtype): "Inserts a new global variable" return self.insert_id(vname, SharedData.KINDS.GLOBAL_VAR, [SharedData.KINDS.GLOBAL_VAR, SharedData.KINDS.FUNCTION], vtype) def insert_local_var(self, vname, vtype, position): "Inserts a new local variable" index = self.insert_id(vname, SharedData.KINDS.LOCAL_VAR, [SharedData.KINDS.LOCAL_VAR, SharedData.KINDS.PARAMETER], vtype) self.table[index].attribute = position def insert_parameter(self, pname, ptype): "Inserts a new parameter" index = self.insert_id(pname, SharedData.KINDS.PARAMETER, SharedData.KINDS.PARAMETER, ptype) #set parameter's attribute to it's ordinal number self.table[index].set_attribute("Index", self.shared.function_params) #set parameter's type in param_types list of a function self.table[self.shared.function_index].param_types.append(ptype) return index def insert_function(self, fname, ftype): "Inserts a new function" index = self.insert_id(fname, SharedData.KINDS.FUNCTION, [SharedData.KINDS.GLOBAL_VAR, SharedData.KINDS.FUNCTION], ftype) self.table[index].set_attribute("Params",0) return index def insert_constant(self, cname, ctype): """Inserts a constant (or returns index if the constant already exists) Additionally, checks for range. """ index = self.lookup_symbol(cname, stype=ctype) if index == None: num = int(cname) if ctype == SharedData.TYPES.INT: if (num < SharedData.MIN_INT) or (num > SharedData.MAX_INT): raise SemanticException("Integer constant '%s' out of range" % cname) elif ctype == SharedData.TYPES.UNSIGNED: if (num < 0) or (num > SharedData.MAX_UNSIGNED): raise SemanticException("Unsigned constant '%s' out of range" % cname) index = self.insert_symbol(cname, SharedData.KINDS.CONSTANT, ctype) return index def same_types(self, index1, index2): """Returns True if both symbol table elements are of the same type""" try: same = self.table[index1].type == self.table[index2].type != SharedData.TYPES.NO_TYPE except Exception: self.error() return same def same_type_as_argument(self, index, function_index, argument_number): """Returns True if index and function's argument are of the same type index - index in symbol table function_index - function's index in symbol table argument_number - # of function's argument """ try: same = self.table[function_index].param_types[argument_number] == self.table[index].type except Exception: self.error() return same def get_attribute(self, index): try: return self.table[index].attribute except Exception: self.error() def set_attribute(self, index, value): try: self.table[index].attribute = value except Exception: self.error() def get_name(self, index): try: return self.table[index].name except Exception: self.error() def get_kind(self, index): try: return self.table[index].kind except Exception: self.error() def get_type(self, index): try: return self.table[index].type except Exception: self.error() def set_type(self, index, stype): try: self.table[index].type = stype except Exception: self.error() ########################################################################################## ########################################################################################## class CodeGenerator(object): """Class for code generation methods.""" #dictionary of relational operators RELATIONAL_DICT = dict([op,i] for i, op in enumerate(SharedData.RELATIONAL_OPERATORS)) #conditional jumps for relational operators CONDITIONAL_JUMPS = ["JLTS", "JGTS", "JLES", "JGES", "JEQ ", "JNE ", "JLTU", "JGTU", "JLEU", "JGEU", "JEQ ", "JNE "] #opposite conditional jumps for relational operators OPPOSITE_JUMPS = ["JGES", "JLES", "JGTS", "JLTS", "JNE ", "JEQ ", "JGEU", "JLEU", "JGTU", "JLTU", "JNE ", "JEQ "] #supported operations OPERATIONS = {"+" : "ADD", "-" : "SUB", "*" : "MUL", "/" : "DIV"} #suffixes for signed and unsigned operations (if no type is specified, unsigned will be assumed) OPSIGNS = {SharedData.TYPES.NO_TYPE : "U", SharedData.TYPES.INT : "S", SharedData.TYPES.UNSIGNED : "U"} #text at start of data segment DATA_START_TEXT = "#DATA" #text at start of code segment CODE_START_TEXT = "#CODE" def __init__(self, shared, symtab): #generated code self.code = "" #prefix for internal labels self.internal = "@" #suffix for label definition self.definition = ":" #list of free working registers self.free_registers = list(range(SharedData.FUNCTION_REGISTER, -1, -1)) #list of used working registers self.used_registers = [] #list of used registers needed when function call is inside of a function call self.used_registers_stack = [] #shared data self.shared = shared #symbol table self.symtab = symtab def error(self, text): """Compiler error exception. It should happen only if something is wrong with compiler. This exeption is not handled by the compiler, so as to allow traceback printing """ raise Exception("Compiler error: %s" % text) def take_register(self, rtype = SharedData.TYPES.NO_TYPE): """Reserves one working register and sets its type""" if len(self.free_registers) == 0: self.error("no more free registers") reg = self.free_registers.pop() self.used_registers.append(reg) self.symtab.set_type(reg, rtype) return reg def take_function_register(self, rtype = SharedData.TYPES.NO_TYPE): """Reserves register for function return value and sets its type""" reg = SharedData.FUNCTION_REGISTER if reg not in self.free_registers: self.error("function register already taken") self.free_registers.remove(reg) self.used_registers.append(reg) self.symtab.set_type(reg, rtype) return reg def free_register(self, reg): """Releases working register""" if reg not in self.used_registers: self.error("register %s is not taken" % self.REGISTERS[reg]) self.used_registers.remove(reg) self.free_registers.append(reg) self.free_registers.sort(reverse = True) def free_if_register(self, index): """If index is a working register, free it, otherwise just return (helper function)""" if (index < 0) or (index > SharedData.FUNCTION_REGISTER): return else: self.free_register(index) def label(self, name, internal=False, definition=False): """Generates label name (helper function) name - label name internal - boolean value, adds "@" prefix to label definition - boolean value, adds ":" suffix to label """ return "{0}{1}{2}".format(self.internal if internal else "", name, self.definition if definition else "") def symbol(self, index): """Generates symbol name from index""" #if index is actually a string, just return it if isinstance(index, str): return index elif (index < 0) or (index >= self.symtab.table_len): self.error("symbol table index out of range") sym = self.symtab.table[index] #local variables are located at negative offset from frame pointer register if sym.kind == SharedData.KINDS.LOCAL_VAR: return "-{0}(%14)".format(sym.attribute * 4 + 4) #parameters are located at positive offset from frame pointer register elif sym.kind == SharedData.KINDS.PARAMETER: return "{0}(%14)".format(8 + sym.attribute * 4) elif sym.kind == SharedData.KINDS.CONSTANT: return "${0}".format(sym.name) else: return "{0}".format(sym.name) def save_used_registers(self): """Pushes all used working registers before function call""" used = self.used_registers[:] del self.used_registers[:] self.used_registers_stack.append(used[:]) used.sort() for reg in used: self.newline_text("PUSH\t%s" % SharedData.REGISTERS[reg], True) self.free_registers.extend(used) self.free_registers.sort(reverse = True) def restore_used_registers(self): """Pops all used working registers after function call""" used = self.used_registers_stack.pop() self.used_registers = used[:] used.sort(reverse = True) for reg in used: self.newline_text("POP \t%s" % SharedData.REGISTERS[reg], True) self.free_registers.remove(reg) def text(self, text): """Inserts text into generated code""" self.code += text def prepare_data_segment(self): """Inserts text at the start of data segment""" self.text(self.DATA_START_TEXT) def prepare_code_segment(self): """Inserts text at the start of code segment""" self.newline_text(self.CODE_START_TEXT) def newline(self, indent=False): """Inserts a newline, optionally with indentation.""" self.text("\n") if indent: self.text("\t\t\t") def newline_text(self, text, indent = False): """Inserts a newline and text, optionally with indentation (helper function)""" self.newline(indent) self.text(text) def newline_label(self, name, internal=False, definition=False): """Inserts a newline and a label (helper function) name - label name internal - boolean value, adds "@" prefix to label definition - boolean value, adds ":" suffix to label """ self.newline_text(self.label("{0}{1}{2}".format("@" if internal else "", name, ":" if definition else ""))) def global_var(self, name): """Inserts a new static (global) variable definition""" self.newline_label(name, False, True) self.newline_text("WORD\t1", True) def arithmetic_mnemonic(self, op_name, op_type): """Generates an arithmetic instruction mnemonic""" return self.OPERATIONS[op_name] + self.OPSIGNS[op_type] def arithmetic(self, operation, operand1, operand2, operand3 = None): """Generates an arithmetic instruction operation - one of supporetd operations operandX - index in symbol table or text representation of operand First two operands are input, third one is output """ if isinstance(operand1, int): output_type = self.symtab.get_type(operand1) self.free_if_register(operand1) else: output_type = None if isinstance(operand2, int): output_type = self.symtab.get_type(operand2) if output_type == None else output_type self.free_if_register(operand2) else: output_type = SharedData.TYPES.NO_TYPE if output_type == None else output_type #if operand3 is not defined, reserve one free register for it output = self.take_register(output_type) if operand3 == None else operand3 mnemonic = self.arithmetic_mnemonic(operation, output_type) self.newline_text("{0}\t{1},{2},{3}".format(mnemonic, self.symbol(operand1), self.symbol(operand2), self.symbol(output)), True) return output def relop_code(self, relop, operands_type): """Returns code for relational operator relop - relational operator operands_type - int or unsigned """ code = self.RELATIONAL_DICT[relop] offset = 0 if operands_type == SharedData.TYPES.INT else len(SharedData.RELATIONAL_OPERATORS) return code + offset def jump(self, relcode, opposite, label): """Generates a jump instruction relcode - relational operator code opposite - generate normal or opposite jump label - jump label """ jump = self.OPPOSITE_JUMPS[relcode] if opposite else self.CONDITIONAL_JUMPS[relcode] self.newline_text("{0}\t{1}".format(jump, label), True) def unconditional_jump(self, label): """Generates an unconditional jump instruction label - jump label """ self.newline_text("JMP \t{0}".format(label), True) def move(self,operand1, operand2): """Generates a move instruction If the output operand (opernad2) is a working register, sets it's type operandX - index in symbol table or text representation of operand """ if isinstance(operand1, int): output_type = self.symtab.get_type(operand1) self.free_if_register(operand1) else: output_type = SharedData.TYPES.NO_TYPE self.newline_text("MOV \t{0},{1}".format(self.symbol(operand1), self.symbol(operand2)), True) if isinstance(operand2, int): if self.symtab.get_kind(operand2) == SharedData.KINDS.WORKING_REGISTER: self.symtab.set_type(operand2, output_type) def push(self, operand): """Generates a push operation""" self.newline_text("PUSH\t%s" % self.symbol(operand), True) def pop(self, operand): """Generates a pop instruction""" self.newline_text("POP \t%s" % self.symbol(operand), True) def compare(self, operand1, operand2): """Generates a compare instruction operandX - index in symbol table """ typ = self.symtab.get_type(operand1) self.free_if_register(operand1) self.free_if_register(operand2) self.newline_text("CMP{0}\t{1},{2}".format(self.OPSIGNS[typ], self.symbol(operand1), self.symbol(operand2)), True) def function_begin(self): """Inserts function name label and function frame initialization""" self.newline_label(self.shared.function_name, False, True) self.push("%14") self.move("%15", "%14") def function_body(self): """Inserts a local variable initialization and body label""" if self.shared.function_vars > 0: const = self.symtab.insert_constant("{0}".format(self.shared.function_vars * 4), SharedData.TYPES.UNSIGNED) self.arithmetic("-", "%15", const, "%15") self.newline_label(self.shared.function_name + "_body", True, True) def function_end(self): """Inserts an exit label and function return instructions""" self.newline_label(self.shared.function_name + "_exit", True, True) self.move("%14", "%15") self.pop("%14") self.newline_text("RET", True) def function_call(self, function, arguments): """Generates code for a function call function - function index in symbol table arguments - list of arguments (indexes in symbol table) """ #push each argument to stack for arg in arguments: self.push(self.symbol(arg)) self.free_if_register(arg) self.newline_text("CALL\t"+self.symtab.get_name(function), True) args = self.symtab.get_attribute(function) #generates stack cleanup if function has arguments if args > 0: args_space = self.symtab.insert_constant("{0}".format(args * 4), SharedData.TYPES.UNSIGNED) self.arithmetic("+", "%15", args_space, "%15") ########################################################################################## ########################################################################################## class MicroC(object): """Class for microC parser/compiler""" def __init__(self): #Definitions of terminal symbols for microC programming language self.tId = Word(alphas+"_",alphanums+"_") self.tInteger = Word(nums).setParseAction(lambda x : [x[0], SharedData.TYPES.INT]) self.tUnsigned = Regex(r"[0-9]+[uU]").setParseAction(lambda x : [x[0][:-1], SharedData.TYPES.UNSIGNED]) self.tConstant = (self.tUnsigned | self.tInteger).setParseAction(self.constant_action) self.tType = Keyword("int").setParseAction(lambda x : SharedData.TYPES.INT) | \ Keyword("unsigned").setParseAction(lambda x : SharedData.TYPES.UNSIGNED) self.tRelOp = oneOf(SharedData.RELATIONAL_OPERATORS) self.tMulOp = oneOf("* /") self.tAddOp = oneOf("+ -") #Definitions of rules for global variables self.rGlobalVariable = (self.tType("type") + self.tId("name") + FollowedBy(";")).setParseAction(self.global_variable_action) self.rGlobalVariableList = ZeroOrMore(self.rGlobalVariable + Suppress(";")) #Definitions of rules for numeric expressions self.rExp = Forward() self.rMulExp = Forward() self.rNumExp = Forward() self.rArguments = delimitedList(self.rNumExp("exp").setParseAction(self.argument_action)) self.rFunctionCall = ((self.tId("name") + FollowedBy("(")).setParseAction(self.function_call_prepare_action) + Suppress("(") + Optional(self.rArguments)("args") + Suppress(")")).setParseAction(self.function_call_action) self.rExp << (self.rFunctionCall | self.tConstant | self.tId("name").setParseAction(self.lookup_id_action) | Group(Suppress("(") + self.rNumExp + Suppress(")")) | Group("+" + self.rExp) | Group("-" + self.rExp)).setParseAction(lambda x : x[0]) self.rMulExp << ((self.rExp + ZeroOrMore(self.tMulOp + self.rExp))).setParseAction(self.mulexp_action) self.rNumExp << (self.rMulExp + ZeroOrMore(self.tAddOp + self.rMulExp)).setParseAction(self.numexp_action) #Definitions of rules for logical expressions (these are without parenthesis support) self.rAndExp = Forward() self.rLogExp = Forward() self.rRelExp = (self.rNumExp + self.tRelOp + self.rNumExp).setParseAction(self.relexp_action) self.rAndExp << (self.rRelExp("exp") + ZeroOrMore(Literal("&&").setParseAction(self.andexp_action) + self.rRelExp("exp")).setParseAction(lambda x : self.relexp_code)) self.rLogExp << (self.rAndExp("exp") + ZeroOrMore(Literal("||").setParseAction(self.logexp_action) + self.rAndExp("exp")).setParseAction(lambda x : self.andexp_code)) #Definitions of rules for statements self.rStatement = Forward() self.rStatementList = Forward() self.rReturnStatement = (Keyword("return") + self.rNumExp("exp") + Suppress(";")).setParseAction(self.return_action) self.rAssignmentStatement = (self.tId("var") + Suppress("=") + self.rNumExp("exp") + Suppress(";")).setParseAction(self.assignment_action) self.rFunctionCallStatement = self.rFunctionCall + Suppress(";") self.rIfStatement = ( (Keyword("if") + FollowedBy("(")).setParseAction(self.if_begin_action) + (Suppress("(") + self.rLogExp + Suppress(")")).setParseAction(self.if_body_action) + (self.rStatement + Empty()).setParseAction(self.if_else_action) + Optional(Keyword("else") + self.rStatement)).setParseAction(self.if_end_action) self.rWhileStatement = ( (Keyword("while") + FollowedBy("(")).setParseAction(self.while_begin_action) + (Suppress("(") + self.rLogExp + Suppress(")")).setParseAction(self.while_body_action) + self.rStatement).setParseAction(self.while_end_action) self.rCompoundStatement = Group(Suppress("{") + self.rStatementList + Suppress("}")) self.rStatement << (self.rReturnStatement | self.rIfStatement | self.rWhileStatement | self.rFunctionCallStatement | self.rAssignmentStatement | self.rCompoundStatement) self.rStatementList << ZeroOrMore(self.rStatement) self.rLocalVariable = (self.tType("type") + self.tId("name") + FollowedBy(";")).setParseAction(self.local_variable_action) self.rLocalVariableList = ZeroOrMore(self.rLocalVariable + Suppress(";")) self.rFunctionBody = Suppress("{") + Optional(self.rLocalVariableList).setParseAction(self.function_body_action) + \ self.rStatementList + Suppress("}") self.rParameter = (self.tType("type") + self.tId("name")).setParseAction(self.parameter_action) self.rParameterList = delimitedList(self.rParameter) self.rFunction = ( (self.tType("type") + self.tId("name")).setParseAction(self.function_begin_action) + Group(Suppress("(") + Optional(self.rParameterList)("params") + Suppress(")") + self.rFunctionBody)).setParseAction(self.function_end_action) self.rFunctionList = OneOrMore(self.rFunction) self.rProgram = (Empty().setParseAction(self.data_begin_action) + self.rGlobalVariableList + Empty().setParseAction(self.code_begin_action) + self.rFunctionList).setParseAction(self.program_end_action) #shared data self.shared = SharedData() #symbol table self.symtab = SymbolTable(self.shared) #code generator self.codegen = CodeGenerator(self.shared, self.symtab) #index of the current function call self.function_call_index = -1 #stack for the nested function calls self.function_call_stack = [] #arguments of the current function call self.function_arguments = [] #stack for arguments of the nested function calls self.function_arguments_stack = [] #number of arguments for the curent function call self.function_arguments_number = -1 #stack for the number of arguments for the nested function calls self.function_arguments_number_stack = [] #last relational expression self.relexp_code = None #last and expression self.andexp_code = None #label number for "false" internal labels self.false_label_number = -1 #label number for all other internal labels self.label_number = None #label stack for nested statements self.label_stack = [] def warning(self, message, print_location=True): """Displays warning message. Uses exshared for current location of parsing""" msg = "Warning" if print_location and (exshared.location != None): wline = lineno(exshared.location, exshared.text) wcol = col(exshared.location, exshared.text) wtext = line(exshared.location, exshared.text) msg += " at line %d, col %d" % (wline, wcol) msg += ": %s" % message if print_location and (exshared.location != None): msg += "\n%s" % wtext print(msg) def data_begin_action(self): """Inserts text at start of data segment""" self.codegen.prepare_data_segment() def code_begin_action(self): """Inserts text at start of code segment""" self.codegen.prepare_code_segment() def global_variable_action(self, text, loc, var): """Code executed after recognising a global variable""" exshared.setpos(loc, text) if DEBUG > 0: print("GLOBAL_VAR:",var) if DEBUG == 2: self.symtab.display() if DEBUG > 2: return index = self.symtab.insert_global_var(var.name, var.type) self.codegen.global_var(var.name) return index def local_variable_action(self, text, loc, var): """Code executed after recognising a local variable""" exshared.setpos(loc, text) if DEBUG > 0: print("LOCAL_VAR:",var, var.name, var.type) if DEBUG == 2: self.symtab.display() if DEBUG > 2: return index = self.symtab.insert_local_var(var.name, var.type, self.shared.function_vars) self.shared.function_vars += 1 return index def parameter_action(self, text, loc, par): """Code executed after recognising a parameter""" exshared.setpos(loc, text) if DEBUG > 0: print("PARAM:",par) if DEBUG == 2: self.symtab.display() if DEBUG > 2: return index = self.symtab.insert_parameter(par.name, par.type) self.shared.function_params += 1 return index def constant_action(self, text, loc, const): """Code executed after recognising a constant""" exshared.setpos(loc, text) if DEBUG > 0: print("CONST:",const) if DEBUG == 2: self.symtab.display() if DEBUG > 2: return return self.symtab.insert_constant(const[0], const[1]) def function_begin_action(self, text, loc, fun): """Code executed after recognising a function definition (type and function name)""" exshared.setpos(loc, text) if DEBUG > 0: print("FUN_BEGIN:",fun) if DEBUG == 2: self.symtab.display() if DEBUG > 2: return self.shared.function_index = self.symtab.insert_function(fun.name, fun.type) self.shared.function_name = fun.name self.shared.function_params = 0 self.shared.function_vars = 0 self.codegen.function_begin(); def function_body_action(self, text, loc, fun): """Code executed after recognising the beginning of function's body""" exshared.setpos(loc, text) if DEBUG > 0: print("FUN_BODY:",fun) if DEBUG == 2: self.symtab.display() if DEBUG > 2: return self.codegen.function_body() def function_end_action(self, text, loc, fun): """Code executed at the end of function definition""" if DEBUG > 0: print("FUN_END:",fun) if DEBUG == 2: self.symtab.display() if DEBUG > 2: return #set function's attribute to number of function parameters self.symtab.set_attribute(self.shared.function_index, self.shared.function_params) #clear local function symbols (but leave function name) self.symtab.clear_symbols(self.shared.function_index + 1) self.codegen.function_end() def return_action(self, text, loc, ret): """Code executed after recognising a return statement""" exshared.setpos(loc, text) if DEBUG > 0: print("RETURN:",ret) if DEBUG == 2: self.symtab.display() if DEBUG > 2: return if not self.symtab.same_types(self.shared.function_index, ret.exp[0]): raise SemanticException("Incompatible type in return") #set register for function's return value to expression value reg = self.codegen.take_function_register() self.codegen.move(ret.exp[0], reg) #after return statement, register for function's return value is available again self.codegen.free_register(reg) #jump to function's exit self.codegen.unconditional_jump(self.codegen.label(self.shared.function_name+"_exit", True)) def lookup_id_action(self, text, loc, var): """Code executed after recognising an identificator in expression""" exshared.setpos(loc, text) if DEBUG > 0: print("EXP_VAR:",var) if DEBUG == 2: self.symtab.display() if DEBUG > 2: return var_index = self.symtab.lookup_symbol(var.name, [SharedData.KINDS.GLOBAL_VAR, SharedData.KINDS.PARAMETER, SharedData.KINDS.LOCAL_VAR]) if var_index == None: raise SemanticException("'%s' undefined" % var.name) return var_index def assignment_action(self, text, loc, assign): """Code executed after recognising an assignment statement""" exshared.setpos(loc, text) if DEBUG > 0: print("ASSIGN:",assign) if DEBUG == 2: self.symtab.display() if DEBUG > 2: return var_index = self.symtab.lookup_symbol(assign.var, [SharedData.KINDS.GLOBAL_VAR, SharedData.KINDS.PARAMETER, SharedData.KINDS.LOCAL_VAR]) if var_index == None: raise SemanticException("Undefined lvalue '%s' in assignment" % assign.var) if not self.symtab.same_types(var_index, assign.exp[0]): raise SemanticException("Incompatible types in assignment") self.codegen.move(assign.exp[0], var_index) def mulexp_action(self, text, loc, mul): """Code executed after recognising a mulexp expression (something *|/ something)""" exshared.setpos(loc, text) if DEBUG > 0: print("MUL_EXP:",mul) if DEBUG == 2: self.symtab.display() if DEBUG > 2: return #iterate through all multiplications/divisions m = list(mul) while len(m) > 1: if not self.symtab.same_types(m[0], m[2]): raise SemanticException("Invalid opernads to binary '%s'" % m[1]) reg = self.codegen.arithmetic(m[1], m[0], m[2]) #replace first calculation with it's result m[0:3] = [reg] return m[0] def numexp_action(self, text, loc, num): """Code executed after recognising a numexp expression (something +|- something)""" exshared.setpos(loc, text) if DEBUG > 0: print("NUM_EXP:",num) if DEBUG == 2: self.symtab.display() if DEBUG > 2: return #iterate through all additions/substractions n = list(num) while len(n) > 1: if not self.symtab.same_types(n[0], n[2]): raise SemanticException("Invalid opernads to binary '%s'" % n[1]) reg = self.codegen.arithmetic(n[1], n[0], n[2]) #replace first calculation with it's result n[0:3] = [reg] return n[0] def function_call_prepare_action(self, text, loc, fun): """Code executed after recognising a function call (type and function name)""" exshared.setpos(loc, text) if DEBUG > 0: print("FUN_PREP:",fun) if DEBUG == 2: self.symtab.display() if DEBUG > 2: return index = self.symtab.lookup_symbol(fun.name, SharedData.KINDS.FUNCTION) if index == None: raise SemanticException("'%s' is not a function" % fun.name) #save any previous function call data (for nested function calls) self.function_call_stack.append(self.function_call_index) self.function_call_index = index self.function_arguments_stack.append(self.function_arguments[:]) del self.function_arguments[:] self.codegen.save_used_registers() def argument_action(self, text, loc, arg): """Code executed after recognising each of function's arguments""" exshared.setpos(loc, text) if DEBUG > 0: print("ARGUMENT:",arg.exp) if DEBUG == 2: self.symtab.display() if DEBUG > 2: return arg_ordinal = len(self.function_arguments) #check argument's type if not self.symtab.same_type_as_argument(arg.exp, self.function_call_index, arg_ordinal): raise SemanticException("Incompatible type for argument %d in '%s'" % (arg_ordinal + 1, self.symtab.get_name(self.function_call_index))) self.function_arguments.append(arg.exp) def function_call_action(self, text, loc, fun): """Code executed after recognising the whole function call""" exshared.setpos(loc, text) if DEBUG > 0: print("FUN_CALL:",fun) if DEBUG == 2: self.symtab.display() if DEBUG > 2: return #check number of arguments if len(self.function_arguments) != self.symtab.get_attribute(self.function_call_index): raise SemanticException("Wrong number of arguments for function '%s'" % fun.name) #arguments should be pushed to stack in reverse order self.function_arguments.reverse() self.codegen.function_call(self.function_call_index, self.function_arguments) self.codegen.restore_used_registers() return_type = self.symtab.get_type(self.function_call_index) #restore previous function call data self.function_call_index = self.function_call_stack.pop() self.function_arguments = self.function_arguments_stack.pop() register = self.codegen.take_register(return_type) #move result to a new free register, to allow the next function call self.codegen.move(self.codegen.take_function_register(return_type), register) return register def relexp_action(self, text, loc, arg): """Code executed after recognising a relexp expression (something relop something)""" if DEBUG > 0: print("REL_EXP:",arg) if DEBUG == 2: self.symtab.display() if DEBUG > 2: return exshared.setpos(loc, text) if not self.symtab.same_types(arg[0], arg[2]): raise SemanticException("Invalid operands for operator '{0}'".format(arg[1])) self.codegen.compare(arg[0], arg[2]) #return relational operator's code self.relexp_code = self.codegen.relop_code(arg[1], self.symtab.get_type(arg[0])) return self.relexp_code def andexp_action(self, text, loc, arg): """Code executed after recognising a andexp expression (something and something)""" exshared.setpos(loc, text) if DEBUG > 0: print("AND+EXP:",arg) if DEBUG == 2: self.symtab.display() if DEBUG > 2: return label = self.codegen.label("false{0}".format(self.false_label_number), True, False) self.codegen.jump(self.relexp_code, True, label) self.andexp_code = self.relexp_code return self.andexp_code def logexp_action(self, text, loc, arg): """Code executed after recognising logexp expression (something or something)""" exshared.setpos(loc, text) if DEBUG > 0: print("LOG_EXP:",arg) if DEBUG == 2: self.symtab.display() if DEBUG > 2: return label = self.codegen.label("true{0}".format(self.label_number), True, False) self.codegen.jump(self.relexp_code, False, label) self.codegen.newline_label("false{0}".format(self.false_label_number), True, True) self.false_label_number += 1 def if_begin_action(self, text, loc, arg): """Code executed after recognising an if statement (if keyword)""" exshared.setpos(loc, text) if DEBUG > 0: print("IF_BEGIN:",arg) if DEBUG == 2: self.symtab.display() if DEBUG > 2: return self.false_label_number += 1 self.label_number = self.false_label_number self.codegen.newline_label("if{0}".format(self.label_number), True, True) def if_body_action(self, text, loc, arg): """Code executed after recognising if statement's body""" exshared.setpos(loc, text) if DEBUG > 0: print("IF_BODY:",arg) if DEBUG == 2: self.symtab.display() if DEBUG > 2: return #generate conditional jump (based on last compare) label = self.codegen.label("false{0}".format(self.false_label_number), True, False) self.codegen.jump(self.relexp_code, True, label) #generate 'true' label (executes if condition is satisfied) self.codegen.newline_label("true{0}".format(self.label_number), True, True) #save label numbers (needed for nested if/while statements) self.label_stack.append(self.false_label_number) self.label_stack.append(self.label_number) def if_else_action(self, text, loc, arg): """Code executed after recognising if statement's else body""" exshared.setpos(loc, text) if DEBUG > 0: print("IF_ELSE:",arg) if DEBUG == 2: self.symtab.display() if DEBUG > 2: return #jump to exit after all statements for true condition are executed self.label_number = self.label_stack.pop() label = self.codegen.label("exit{0}".format(self.label_number), True, False) self.codegen.unconditional_jump(label) #generate final 'false' label (executes if condition isn't satisfied) self.codegen.newline_label("false{0}".format(self.label_stack.pop()), True, True) self.label_stack.append(self.label_number) def if_end_action(self, text, loc, arg): """Code executed after recognising a whole if statement""" exshared.setpos(loc, text) if DEBUG > 0: print("IF_END:",arg) if DEBUG == 2: self.symtab.display() if DEBUG > 2: return self.codegen.newline_label("exit{0}".format(self.label_stack.pop()), True, True) def while_begin_action(self, text, loc, arg): """Code executed after recognising a while statement (while keyword)""" exshared.setpos(loc, text) if DEBUG > 0: print("WHILE_BEGIN:",arg) if DEBUG == 2: self.symtab.display() if DEBUG > 2: return self.false_label_number += 1 self.label_number = self.false_label_number self.codegen.newline_label("while{0}".format(self.label_number), True, True) def while_body_action(self, text, loc, arg): """Code executed after recognising while statement's body""" exshared.setpos(loc, text) if DEBUG > 0: print("WHILE_BODY:",arg) if DEBUG == 2: self.symtab.display() if DEBUG > 2: return #generate conditional jump (based on last compare) label = self.codegen.label("false{0}".format(self.false_label_number), True, False) self.codegen.jump(self.relexp_code, True, label) #generate 'true' label (executes if condition is satisfied) self.codegen.newline_label("true{0}".format(self.label_number), True, True) self.label_stack.append(self.false_label_number) self.label_stack.append(self.label_number) def while_end_action(self, text, loc, arg): """Code executed after recognising a whole while statement""" exshared.setpos(loc, text) if DEBUG > 0: print("WHILE_END:",arg) if DEBUG == 2: self.symtab.display() if DEBUG > 2: return #jump to condition checking after while statement body self.label_number = self.label_stack.pop() label = self.codegen.label("while{0}".format(self.label_number), True, False) self.codegen.unconditional_jump(label) #generate final 'false' label and exit label self.codegen.newline_label("false{0}".format(self.label_stack.pop()), True, True) self.codegen.newline_label("exit{0}".format(self.label_number), True, True) def program_end_action(self, text, loc, arg): """Checks if there is a 'main' function and the type of 'main' function""" exshared.setpos(loc, text) if DEBUG > 0: print("PROGRAM_END:",arg) if DEBUG == 2: self.symtab.display() if DEBUG > 2: return index = self.symtab.lookup_symbol("main",SharedData.KINDS.FUNCTION) if index == None: raise SemanticException("Undefined reference to 'main'", False) elif self.symtab.get_type(index) != SharedData.TYPES.INT: self.warning("Return type of 'main' is not int", False) def parse_text(self,text): """Parse string (helper function)""" try: return self.rProgram.ignore(cStyleComment).parseString(text, parseAll=True) except SemanticException as err: print(err) exit(3) except ParseException as err: print(err) exit(3) def parse_file(self,filename): """Parse file (helper function)""" try: return self.rProgram.ignore(cStyleComment).parseFile(filename, parseAll=True) except SemanticException as err: print(err) exit(3) except ParseException as err: print(err) exit(3) ########################################################################################## ########################################################################################## if 0: #main program mc = MicroC() output_file = "output.asm" if len(argv) == 1: input_file = stdin elif len(argv) == 2: input_file = argv[1] elif len(argv) == 3: input_file = argv[1] output_file = argv[2] else: usage = """Usage: {0} [input_file [output_file]] If output file is omitted, output.asm is used If input file is omitted, stdin is used""".format(argv[0]) print(usage) exit(1) try: parse = stdin if input_file == stdin else open(input_file,'r') except Exception: print("Input file '%s' open error" % input_file) exit(2) mc.parse_file(parse) #if you want to see the final symbol table, uncomment next line #mc.symtab.display() try: out = open(output_file, 'w') out.write(mc.codegen.code) out.close except Exception: print("Output file '%s' open error" % output_file) exit(2) ########################################################################################## ########################################################################################## if __name__ == "__main__": test_program_example = """ int a; int b; int c; unsigned d; int fun1(int x, unsigned y) { return 123; } int fun2(int a) { return 1 + a * fun1(a, 456u); } int main(int x, int y) { int w; unsigned z; if (9 > 8 && 2 < 3 || 6 != 5 && a <= b && c < x || w >= y) { a = b + 1; if (x == y) while (d < 4u) x = x * w; else while (a + b < c - y && x > 3 || y < 2) if (z > d) a = a - 4; else b = a * b * c * x / y; } else c = 4; a = fun1(x,d) + fun2(fun1(fun2(w + 3 * 2) + 2 * c, 2u)); return 2; } """ mc = MicroC() mc.parse_text(test_program_example) print(mc.codegen.code)pyparsing-2.2.0+dfsg1/examples/greetingInGreek.py0000644000175000017500000000073512752442222020501 0ustar zigozigo# vim:fileencoding=utf-8 # # greetingInGreek.py # # Demonstration of the parsing module, on the prototypical "Hello, World!" example # # Copyright 2004-2016, by Paul McGuire # from pyparsing import Word # define grammar alphas = ''.join(chr(x) for x in range(0x386, 0x3ce)) greet = Word(alphas) + ',' + Word(alphas) + '!' # input string hello = "Καλημέρα, κόσμε!".decode('utf-8') # parse input string print(greet.parseString( hello )) pyparsing-2.2.0+dfsg1/examples/searchparser.py0000644000175000017500000002473312641073355020122 0ustar zigozigo"""Search query parser version 2006-03-09 This search query parser uses the excellent Pyparsing module (http://pyparsing.sourceforge.net/) to parse search queries by users. It handles: * 'and', 'or' and implicit 'and' operators; * parentheses; * quoted strings; * wildcards at the end of a search term (help*); Requirements: * Python * Pyparsing If you run this script, it will perform a number of tests. To use is as a module, you should use inheritance on the SearchQueryParser class and overwrite the Get... methods. The ParserTest class gives a very simple example of how this could work. ------------------------------------------------------------------------------- Copyright (c) 2006, Estrate, the Netherlands All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Estrate nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. CONTRIBUTORS: - Steven Mooij - Rudolph Froger - Paul McGuire TODO: - add more docs - ask someone to check my English texts - add more kinds of wildcards ('*' at the beginning and '*' inside a word)? """ from pyparsing import Word, alphanums, Keyword, Group, Combine, Forward, Suppress, Optional, OneOrMore, oneOf class SearchQueryParser: def __init__(self): self._methods = { 'and': self.evaluateAnd, 'or': self.evaluateOr, 'not': self.evaluateNot, 'parenthesis': self.evaluateParenthesis, 'quotes': self.evaluateQuotes, 'word': self.evaluateWord, 'wordwildcard': self.evaluateWordWildcard, } self._parser = self.parser() def parser(self): """ This function returns a parser. The grammar should be like most full text search engines (Google, Tsearch, Lucene). Grammar: - a query consists of alphanumeric words, with an optional '*' wildcard at the end of a word - a sequence of words between quotes is a literal string - words can be used together by using operators ('and' or 'or') - words with operators can be grouped with parenthesis - a word or group of words can be preceded by a 'not' operator - the 'and' operator precedes an 'or' operator - if an operator is missing, use an 'and' operator """ operatorOr = Forward() operatorWord = Group(Combine(Word(alphanums) + Suppress('*'))).setResultsName('wordwildcard') | \ Group(Word(alphanums)).setResultsName('word') operatorQuotesContent = Forward() operatorQuotesContent << ( (operatorWord + operatorQuotesContent) | operatorWord ) operatorQuotes = Group( Suppress('"') + operatorQuotesContent + Suppress('"') ).setResultsName("quotes") | operatorWord operatorParenthesis = Group( (Suppress("(") + operatorOr + Suppress(")")) ).setResultsName("parenthesis") | operatorQuotes operatorNot = Forward() operatorNot << (Group( Suppress(Keyword("not", caseless=True)) + operatorNot ).setResultsName("not") | operatorParenthesis) operatorAnd = Forward() operatorAnd << (Group( operatorNot + Suppress(Keyword("and", caseless=True)) + operatorAnd ).setResultsName("and") | Group( operatorNot + OneOrMore(~oneOf("and or") + operatorAnd) ).setResultsName("and") | operatorNot) operatorOr << (Group( operatorAnd + Suppress(Keyword("or", caseless=True)) + operatorOr ).setResultsName("or") | operatorAnd) return operatorOr.parseString def evaluateAnd(self, argument): return self.evaluate(argument[0]).intersection(self.evaluate(argument[1])) def evaluateOr(self, argument): return self.evaluate(argument[0]).union(self.evaluate(argument[1])) def evaluateNot(self, argument): return self.GetNot(self.evaluate(argument[0])) def evaluateParenthesis(self, argument): return self.evaluate(argument[0]) def evaluateQuotes(self, argument): """Evaluate quoted strings First is does an 'and' on the indidual search terms, then it asks the function GetQuoted to only return the subset of ID's that contain the literal string. """ r = set() search_terms = [] for item in argument: search_terms.append(item[0]) if len(r) == 0: r = self.evaluate(item) else: r = r.intersection(self.evaluate(item)) return self.GetQuotes(' '.join(search_terms), r) def evaluateWord(self, argument): return self.GetWord(argument[0]) def evaluateWordWildcard(self, argument): return self.GetWordWildcard(argument[0]) def evaluate(self, argument): return self._methods[argument.getName()](argument) def Parse(self, query): #print self._parser(query)[0] return self.evaluate(self._parser(query)[0]) def GetWord(self, word): return set() def GetWordWildcard(self, word): return set() def GetQuotes(self, search_string, tmp_result): return set() def GetNot(self, not_set): return set().difference(not_set) class ParserTest(SearchQueryParser): """Tests the parser with some search queries tests containts a dictionary with tests and expected results. """ tests = { 'help': set([1, 2, 4, 5]), 'help or hulp': set([1, 2, 3, 4, 5]), 'help and hulp': set([2]), 'help hulp': set([2]), 'help and hulp or hilp': set([2, 3, 4]), 'help or hulp and hilp': set([1, 2, 3, 4, 5]), 'help or hulp or hilp or halp': set([1, 2, 3, 4, 5, 6]), '(help or hulp) and (hilp or halp)': set([3, 4, 5]), 'help and (hilp or halp)': set([4, 5]), '(help and (hilp or halp)) or hulp': set([2, 3, 4, 5]), 'not help': set([3, 6, 7, 8]), 'not hulp and halp': set([5, 6]), 'not (help and halp)': set([1, 2, 3, 4, 6, 7, 8]), '"help me please"': set([2]), '"help me please" or hulp': set([2, 3]), '"help me please" or (hulp and halp)': set([2]), 'help*': set([1, 2, 4, 5, 8]), 'help or hulp*': set([1, 2, 3, 4, 5]), 'help* and hulp': set([2]), 'help and hulp* or hilp': set([2, 3, 4]), 'help* or hulp or hilp or halp': set([1, 2, 3, 4, 5, 6, 8]), '(help or hulp*) and (hilp* or halp)': set([3, 4, 5]), 'help* and (hilp* or halp*)': set([4, 5]), '(help and (hilp* or halp)) or hulp*': set([2, 3, 4, 5]), 'not help* and halp': set([6]), 'not (help* and helpe*)': set([1, 2, 3, 4, 5, 6, 7]), '"help* me please"': set([2]), '"help* me* please" or hulp*': set([2, 3]), '"help me please*" or (hulp and halp)': set([2]), '"help me please" not (hulp and halp)': set([2]), '"help me please" hulp': set([2]), 'help and hilp and not holp': set([4]), 'help hilp not holp': set([4]), 'help hilp and not holp': set([4]), } docs = { 1: 'help', 2: 'help me please hulp', 3: 'hulp hilp', 4: 'help hilp', 5: 'halp thinks he needs help', 6: 'he needs halp', 7: 'nothing', 8: 'helper', } index = { 'help': set((1, 2, 4, 5)), 'me': set((2,)), 'please': set((2,)), 'hulp': set((2, 3,)), 'hilp': set((3, 4,)), 'halp': set((5, 6,)), 'thinks': set((5,)), 'he': set((5, 6,)), 'needs': set((5, 6,)), 'nothing': set((7,)), 'helper': set((8,)), } def GetWord(self, word): if (word in self.index): return self.index[word] else: return set() def GetWordWildcard(self, word): result = set() for item in list(self.index.keys()): if word == item[0:len(word)]: result = result.union(self.index[item]) return result def GetQuotes(self, search_string, tmp_result): result = set() for item in tmp_result: if self.docs[item].count(search_string): result.add(item) return result def GetNot(self, not_set): all = set(list(self.docs.keys())) return all.difference(not_set) def Test(self): all_ok = True for item in list(self.tests.keys()): print(item) r = self.Parse(item) e = self.tests[item] print('Result: %s' % r) print('Expect: %s' % e) if e == r: print('Test OK') else: all_ok = False print('>>>>>>>>>>>>>>>>>>>>>>Test ERROR<<<<<<<<<<<<<<<<<<<<<') print('') return all_ok if __name__=='__main__': if ParserTest().Test(): print('All tests OK') else: print('One or more tests FAILED') pyparsing-2.2.0+dfsg1/examples/simpleBool.py0000644000175000017500000000547012466013312017532 0ustar zigozigo# # simpleBool.py # # Example of defining a boolean logic parser using # the operatorGrammar helper method in pyparsing. # # In this example, parse actions associated with each # operator expression will "compile" the expression # into BoolXXX class instances, which can then # later be evaluated for their boolean value. # # Copyright 2006, by Paul McGuire # Updated 2013-Sep-14 - improved Python 2/3 cross-compatibility # from pyparsing import infixNotation, opAssoc, Keyword, Word, alphas # define classes to be built at parse time, as each matching # expression type is parsed class BoolOperand(object): def __init__(self,t): self.label = t[0] self.value = eval(t[0]) def __bool__(self): return self.value def __str__(self): return self.label __repr__ = __str__ __nonzero__ = __bool__ class BoolBinOp(object): def __init__(self,t): self.args = t[0][0::2] def __str__(self): sep = " %s " % self.reprsymbol return "(" + sep.join(map(str,self.args)) + ")" def __bool__(self): return self.evalop(bool(a) for a in self.args) __nonzero__ = __bool__ __repr__ = __str__ class BoolAnd(BoolBinOp): reprsymbol = '&' evalop = all class BoolOr(BoolBinOp): reprsymbol = '|' evalop = any class BoolNot(object): def __init__(self,t): self.arg = t[0][1] def __bool__(self): v = bool(self.arg) return not v def __str__(self): return "~" + str(self.arg) __repr__ = __str__ __nonzero__ = __bool__ TRUE = Keyword("True") FALSE = Keyword("False") boolOperand = TRUE | FALSE | Word(alphas,max=1) boolOperand.setParseAction(BoolOperand) # define expression, based on expression operand and # list of operations in precedence order boolExpr = infixNotation( boolOperand, [ ("not", 1, opAssoc.RIGHT, BoolNot), ("and", 2, opAssoc.LEFT, BoolAnd), ("or", 2, opAssoc.LEFT, BoolOr), ]) if __name__ == "__main__": p = True q = False r = True tests = [("p", True), ("q", False), ("p and q", False), ("p and not q", True), ("not not p", True), ("not(p and q)", True), ("q or not p and r", False), ("q or not p or not r", False), ("q or not (p and r)", False), ("p or q or r", True), ("p or q or r and False", True), ("(p or q or r) and False", False), ] print("p =", p) print("q =", q) print("r =", r) print() for t,expected in tests: res = boolExpr.parseString(t)[0] success = "PASS" if bool(res) == expected else "FAIL" print (t,'\n', res, '=', bool(res),'\n', success, '\n') pyparsing-2.2.0+dfsg1/examples/getNTPserversNew.py0000644000175000017500000000257212716764010020660 0ustar zigozigo# getNTPserversNew.py # # Demonstration of the parsing module, implementing a HTML page scanner, # to extract a list of NTP time servers from the NIST web site. # # Copyright 2004-2010, by Paul McGuire # September, 2010 - updated to more current use of setResultsName, new NIST URL # from pyparsing import (Word, Combine, Suppress, SkipTo, nums, makeHTMLTags, delimitedList, alphas, alphanums) try: import urllib.request urlopen = urllib.request.urlopen except ImportError: import urllib urlopen = urllib.urlopen integer = Word(nums) ipAddress = Combine( integer + "." + integer + "." + integer + "." + integer ) hostname = delimitedList(Word(alphas,alphanums+"-_"),".",combine=True) tdStart,tdEnd = makeHTMLTags("td") timeServerPattern = (tdStart + hostname("hostname") + tdEnd + tdStart + ipAddress("ipAddr") + tdEnd + tdStart + SkipTo(tdEnd)("loc") + tdEnd) # get list of time servers nistTimeServerURL = "http://tf.nist.gov/tf-cgi/servers.cgi#" serverListPage = urlopen( nistTimeServerURL ) serverListHTML = serverListPage.read().decode("UTF-8") serverListPage.close() addrs = {} for srvr,startloc,endloc in timeServerPattern.scanString( serverListHTML ): print("%s (%s) - %s" % (srvr.ipAddr, srvr.hostname.strip(), srvr.loc.strip())) addrs[srvr.ipAddr] = srvr.loc pyparsing-2.2.0+dfsg1/examples/withAttribute.py0000644000175000017500000000156712466013312020267 0ustar zigozigo# # withAttribute.py # Copyright, 2007 - Paul McGuire # # Simple example of using withAttribute parse action helper # to define # data = """\  49.950   50.950   51.950  """ from pyparsing import * tdS,tdE = makeHTMLTags("TD") fontS,fontE = makeHTMLTags("FONT") realNum = Combine( Word(nums) + "." + Word(nums) ).setParseAction(lambda t:float(t[0])) NBSP = Literal(" ") patt = tdS + fontS + NBSP + realNum("value") + NBSP + fontE + tdE tdS.setParseAction( withAttribute(align="right",width="80") ) for s in patt.searchString(data): print(s.value) pyparsing-2.2.0+dfsg1/examples/gen_ctypes.py0000644000175000017500000001231512752442347017575 0ustar zigozigo# # gen_ctypes.py # # Parse a .h header file to generate ctypes argtype and return type definitions # # Copyright 2004-2016, by Paul McGuire # from pyparsing import * typemap = { "byte" : "c_byte", "char" : "c_char", "char *" : "c_char_p", "double" : "c_double", "float" : "c_float", "int" : "c_int", "int16" : "c_int16", "int32" : "c_int32", "int64" : "c_int64", "int8" : "c_int8", "long" : "c_long", "longlong" : "c_longlong", "short" : "c_short", "size_t" : "c_size_t", "ubyte" : "c_ubyte", "uchar" : "c_ubyte", "u_char" : "c_ubyte", "uint" : "c_uint", "u_int" : "c_uint", "uint16" : "c_uint16", "uint32" : "c_uint32", "uint64" : "c_uint64", "uint8" : "c_uint8", "u_long" : "c_ulong", "ulong" : "c_ulong", "ulonglong" : "c_ulonglong", "ushort" : "c_ushort", "u_short" : "c_ushort", "void *" : "c_void_p", "voidp" : "c_voidp", "wchar" : "c_wchar", "wchar *" : "c_wchar_p", "Bool" : "c_bool", "void" : "None", } LPAR,RPAR,LBRACE,RBRACE,COMMA,SEMI = map(Suppress,"(){},;") ident = Word(alphas, alphanums + "_") integer = Regex(r"[+-]?\d+") hexinteger = Regex(r"0x[0-9a-fA-F]+") const = Suppress("const") primitiveType = oneOf(t for t in typemap if not t.endswith("*")) structType = Suppress("struct") + ident vartype = (Optional(const) + (primitiveType | structType | ident) + Optional(Word("*")("ptr"))) def normalizetype(t): if isinstance(t, ParseResults): return ' '.join(t) #~ ret = ParseResults([' '.join(t)]) #~ return ret vartype.setParseAction(normalizetype) arg = Group(vartype("argtype") + Optional(ident("argname"))) func_def = (vartype("fn_type") + ident("fn_name") + LPAR + Optional(delimitedList(arg|"..."))("fn_args") + RPAR + SEMI) def derivefields(t): if t.fn_args and t.fn_args[-1] == "...": t["varargs"]=True func_def.setParseAction(derivefields) fn_typedef = "typedef" + func_def var_typedef = "typedef" + primitiveType("primType") + ident("name") + SEMI enum_def = (Keyword("enum") + LBRACE + delimitedList(Group(ident("name") + '=' + (hexinteger|integer)("value")))("evalues") + Optional(COMMA) + RBRACE) c_header = open("snmp_api.h").read() module = "pynetsnmp" user_defined_types = set() typedefs = [] fn_typedefs = [] functions = [] enum_constants = [] # add structures commonly included from std lib headers def addStdType(t,namespace=""): fullname = namespace+'_'+t if namespace else t typemap[t] = fullname user_defined_types.add(t) addStdType("fd_set", "sys_select") addStdType("timeval", "sys_time") def getUDType(typestr): key = typestr.rstrip(" *") if key not in typemap: user_defined_types.add(key) typemap[key] = "%s_%s" % (module, key) def typeAsCtypes(typestr): if typestr in typemap: return typemap[typestr] if typestr.endswith("*"): return "POINTER(%s)" % typeAsCtypes(typestr.rstrip(" *")) return typestr # scan input header text for primitive typedefs for td,_,_ in var_typedef.scanString(c_header): typedefs.append( (td.name, td.primType) ) # add typedef type to typemap to map to itself typemap[td.name] = td.name # scan input header text for function typedefs fn_typedefs = fn_typedef.searchString(c_header) # add each function typedef to typemap to map to itself for fntd in fn_typedefs: typemap[fntd.fn_name] = fntd.fn_name # scan input header text, and keep running list of user-defined types for fn,_,_ in (cStyleComment.suppress() | fn_typedef.suppress() | func_def).scanString(c_header): if not fn: continue getUDType(fn.fn_type) for arg in fn.fn_args: if arg != "...": if arg.argtype not in typemap: getUDType(arg.argtype) functions.append(fn) # scan input header text for enums enum_def.ignore(cppStyleComment) for en_,_,_ in enum_def.scanString(c_header): for ev in en_.evalues: enum_constants.append( (ev.name, ev.value) ) print("from ctypes import *") print("%s = CDLL('%s.dll')" % (module, module)) print() print("# user defined types") for tdname,tdtyp in typedefs: print("%s = %s" % (tdname, typemap[tdtyp])) for fntd in fn_typedefs: print("%s = CFUNCTYPE(%s)" % (fntd.fn_name, ',\n '.join(typeAsCtypes(a.argtype) for a in fntd.fn_args))) for udtype in user_defined_types: print("class %s(Structure): pass" % typemap[udtype]) print() print("# constant definitions") for en,ev in enum_constants: print("%s = %s" % (en,ev)) print() print("# functions") for fn in functions: prefix = "%s.%s" % (module, fn.fn_name) print("%s.restype = %s" % (prefix, typeAsCtypes(fn.fn_type))) if fn.varargs: print("# warning - %s takes variable argument list" % prefix) del fn.fn_args[-1] if fn.fn_args.asList() != [['void']]: print("%s.argtypes = (%s,)" % (prefix, ','.join(typeAsCtypes(a.argtype) for a in fn.fn_args))) else: print("%s.argtypes = ()" % (prefix)) pyparsing-2.2.0+dfsg1/examples/nested.py0000644000175000017500000000114112466013312016676 0ustar zigozigo# # nested.py # Copyright, 2007 - Paul McGuire # # Simple example of using nestedExpr to define expressions using # paired delimiters for grouping lists and sublists # from pyparsing import * import pprint data = """ { { item1 "item with } in it" } { {item2a item2b } {item3} } } """ # use {}'s for nested lists nestedItems = nestedExpr("{", "}") print(( (nestedItems+stringEnd).parseString(data).asList() )) # use default delimiters of ()'s mathExpr = nestedExpr() print(( mathExpr.parseString( "((( ax + by)*C) *(Z | (E^F) & D))") )) pyparsing-2.2.0+dfsg1/examples/jsonParser.py0000644000175000017500000000634412752437611017566 0ustar zigozigo# jsonParser.py # # Implementation of a simple JSON parser, returning a hierarchical # ParseResults object support both list- and dict-style data access. # # Copyright 2006, by Paul McGuire # # Updated 8 Jan 2007 - fixed dict grouping bug, and made elements and # members optional in array and object collections # # Updated 9 Aug 2016 - use more current pyparsing constructs/idioms # json_bnf = """ object { members } {} members string : value members , string : value array [ elements ] [] elements value elements , value value string number object array true false null """ from pyparsing import * def make_keyword(kwd_str, kwd_value): return Keyword(kwd_str).setParseAction(replaceWith(kwd_value)) TRUE = make_keyword("true", True) FALSE = make_keyword("false", False) NULL = make_keyword("null", None) LBRACK, RBRACK, LBRACE, RBRACE, COLON = map(Suppress, "[]{}:") jsonString = dblQuotedString().setParseAction(removeQuotes) jsonNumber = pyparsing_common.number() jsonObject = Forward() jsonValue = Forward() jsonElements = delimitedList( jsonValue ) jsonArray = Group(LBRACK + Optional(jsonElements, []) + RBRACK) jsonValue << (jsonString | jsonNumber | Group(jsonObject) | jsonArray | TRUE | FALSE | NULL) memberDef = Group(jsonString + COLON + jsonValue) jsonMembers = delimitedList(memberDef) jsonObject << Dict(LBRACE + Optional(jsonMembers) + RBRACE) jsonComment = cppStyleComment jsonObject.ignore(jsonComment) if __name__ == "__main__": testdata = """ { "glossary": { "title": "example glossary", "GlossDiv": { "title": "S", "GlossList": { "ID": "SGML", "SortAs": "SGML", "GlossTerm": "Standard Generalized Markup Language", "TrueValue": true, "FalseValue": false, "Gravity": -9.8, "LargestPrimeLessThan100": 97, "AvogadroNumber": 6.02E23, "EvenPrimesGreaterThan2": null, "PrimesLessThan10" : [2,3,5,7], "Acronym": "SGML", "Abbrev": "ISO 8879:1986", "GlossDef": "A meta-markup language, used to create markup languages such as DocBook.", "GlossSeeAlso": ["GML", "XML", "markup"], "EmptyDict" : {}, "EmptyList" : [] } } } } """ import pprint results = jsonObject.parseString(testdata) pprint.pprint( results.asList() ) print() def testPrint(x): print(type(x),repr(x)) print(list(results.glossary.GlossDiv.GlossList.keys())) testPrint( results.glossary.title ) testPrint( results.glossary.GlossDiv.GlossList.ID ) testPrint( results.glossary.GlossDiv.GlossList.FalseValue ) testPrint( results.glossary.GlossDiv.GlossList.Acronym ) testPrint( results.glossary.GlossDiv.GlossList.EvenPrimesGreaterThan2 ) testPrint( results.glossary.GlossDiv.GlossList.PrimesLessThan10 ) pyparsing-2.2.0+dfsg1/examples/pythonGrammarParser.py0000644000175000017500000002004713056137001021425 0ustar zigozigo# pythonGrammarParser.py # # Copyright, 2006, by Paul McGuire # from pyparsing import * # should probably read this from the Grammar file provided with the Python source, but # this just skips that step and inlines the bnf text directly - this grammar was taken from # Python 2.4.1 # grammar = r""" # Grammar for Python # Note: Changing the grammar specified in this file will most likely # require corresponding changes in the parser module # (../Modules/parsermodule.c). If you can't make the changes to # that module yourself, please co-ordinate the required changes # with someone who can; ask around on python-dev for help. Fred # Drake will probably be listening there. # Commands for Kees Blom's railroad program #diagram:token NAME #diagram:token NUMBER #diagram:token STRING #diagram:token NEWLINE #diagram:token ENDMARKER #diagram:token INDENT #diagram:output\input python.bla #diagram:token DEDENT #diagram:output\textwidth 20.04cm\oddsidemargin 0.0cm\evensidemargin 0.0cm #diagram:rules # Start symbols for the grammar: # single_input is a single interactive statement; # file_input is a module or sequence of commands read from an input file; # eval_input is the input for the eval() and input() functions. # NB: compound_stmt in single_input is followed by extra NEWLINE! single_input: NEWLINE | simple_stmt | compound_stmt NEWLINE file_input: (NEWLINE | stmt)* ENDMARKER eval_input: testlist NEWLINE* ENDMARKER decorator: '@' dotted_name [ '(' [arglist] ')' ] NEWLINE decorators: decorator+ funcdef: [decorators] 'def' NAME parameters ':' suite parameters: '(' [varargslist] ')' varargslist: (fpdef ['=' test] ',')* ('*' NAME [',' '**' NAME] | '**' NAME) | fpdef ['=' test] (',' fpdef ['=' test])* [','] fpdef: NAME | '(' fplist ')' fplist: fpdef (',' fpdef)* [','] stmt: simple_stmt | compound_stmt simple_stmt: small_stmt (';' small_stmt)* [';'] NEWLINE small_stmt: expr_stmt | print_stmt | del_stmt | pass_stmt | flow_stmt | import_stmt | global_stmt | exec_stmt | assert_stmt expr_stmt: testlist (augassign testlist | ('=' testlist)*) augassign: '+=' | '-=' | '*=' | '/=' | '%=' | '&=' | '|=' | '^=' | '<<=' | '>>=' | '**=' | '//=' # For normal assignments, additional restrictions enforced by the interpreter print_stmt: 'print' ( [ test (',' test)* [','] ] | '>>' test [ (',' test)+ [','] ] ) del_stmt: 'del' exprlist pass_stmt: 'pass' flow_stmt: break_stmt | continue_stmt | return_stmt | raise_stmt | yield_stmt break_stmt: 'break' continue_stmt: 'continue' return_stmt: 'return' [testlist] yield_stmt: 'yield' testlist raise_stmt: 'raise' [test [',' test [',' test]]] import_stmt: import_name | import_from import_name: 'import' dotted_as_names import_from: 'from' dotted_name 'import' ('*' | '(' import_as_names ')' | import_as_names) import_as_name: NAME [NAME NAME] dotted_as_name: dotted_name [NAME NAME] import_as_names: import_as_name (',' import_as_name)* [','] dotted_as_names: dotted_as_name (',' dotted_as_name)* dotted_name: NAME ('.' NAME)* global_stmt: 'global' NAME (',' NAME)* exec_stmt: 'exec' expr ['in' test [',' test]] assert_stmt: 'assert' test [',' test] #35 compound_stmt: if_stmt | while_stmt | for_stmt | try_stmt | funcdef | classdef if_stmt: 'if' test ':' suite ('elif' test ':' suite)* ['else' ':' suite] while_stmt: 'while' test ':' suite ['else' ':' suite] for_stmt: 'for' exprlist 'in' testlist ':' suite ['else' ':' suite] try_stmt: ('try' ':' suite (except_clause ':' suite)+ #diagram:break ['else' ':' suite] | 'try' ':' suite 'finally' ':' suite) # NB compile.c makes sure that the default except clause is last except_clause: 'except' [test [',' test]] suite: simple_stmt | NEWLINE INDENT stmt+ DEDENT test: and_test ('or' and_test)* | lambdef and_test: not_test ('and' not_test)* not_test: 'not' not_test | comparison comparison: expr (comp_op expr)* comp_op: '<'|'>'|'=='|'>='|'<='|'<>'|'!='|'in'|'not' 'in'|'is'|'is' 'not' expr: xor_expr ('|' xor_expr)* xor_expr: and_expr ('^' and_expr)* and_expr: shift_expr ('&' shift_expr)* shift_expr: arith_expr (('<<'|'>>') arith_expr)* arith_expr: term (('+'|'-') term)* term: factor (('*'|'/'|'%'|'//') factor)* factor: ('+'|'-'|'~') factor | power power: atom trailer* ['**' factor] atom: '(' [testlist_gexp] ')' | '[' [listmaker] ']' | '{' [dictmaker] '}' | '`' testlist1 '`' | NAME | NUMBER | STRING+ listmaker: test ( list_for | (',' test)* [','] ) testlist_gexp: test ( gen_for | (',' test)* [','] ) lambdef: 'lambda' [varargslist] ':' test trailer: '(' [arglist] ')' | '[' subscriptlist ']' | '.' NAME subscriptlist: subscript (',' subscript)* [','] subscript: '.' '.' '.' | test | [test] ':' [test] [sliceop] sliceop: ':' [test] exprlist: expr (',' expr)* [','] testlist: test (',' test)* [','] testlist_safe: test [(',' test)+ [',']] dictmaker: test ':' test (',' test ':' test)* [','] classdef: 'class' NAME ['(' testlist ')'] ':' suite arglist: (argument ',')* (argument [',']| '*' test [',' '**' test] | '**' test) argument: [test '='] test [gen_for] # Really [keyword '='] test list_iter: list_for | list_if list_for: 'for' exprlist 'in' testlist_safe [list_iter] list_if: 'if' test [list_iter] gen_iter: gen_for | gen_if gen_for: 'for' exprlist 'in' test [gen_iter] gen_if: 'if' test [gen_iter] testlist1: test (',' test)* # not used in grammar, but may appear in "node" passed from Parser to Compiler encoding_decl: NAME """ class SemanticGroup(object): def __init__(self,contents): self.contents = contents while self.contents[-1].__class__ == self.__class__: self.contents = self.contents[:-1] + self.contents[-1].contents def __str__(self): return "%s(%s)" % (self.label, " ".join([isinstance(c,str) and c or str(c) for c in self.contents]) ) class OrList(SemanticGroup): label = "OR" pass class AndList(SemanticGroup): label = "AND" pass class OptionalGroup(SemanticGroup): label = "OPT" pass class Atom(SemanticGroup): def __init__(self,contents): if len(contents) > 1: self.rep = contents[1] else: self.rep = "" if isinstance(contents,str): self.contents = contents else: self.contents = contents[0] def __str__(self): return "%s%s" % (self.rep, self.contents) def makeGroupObject(cls): def groupAction(s,l,t): try: return cls(t[0].asList()) except: return cls(t) return groupAction # bnf punctuation LPAREN = Suppress("(") RPAREN = Suppress(")") LBRACK = Suppress("[") RBRACK = Suppress("]") COLON = Suppress(":") ALT_OP = Suppress("|") # bnf grammar ident = Word(alphanums+"_") bnfToken = Word(alphanums+"_") + ~FollowedBy(":") repSymbol = oneOf("* +") bnfExpr = Forward() optionalTerm = Group(LBRACK + bnfExpr + RBRACK).setParseAction(makeGroupObject(OptionalGroup)) bnfTerm = ( (bnfToken | quotedString | optionalTerm | ( LPAREN + bnfExpr + RPAREN )) + Optional(repSymbol) ).setParseAction(makeGroupObject(Atom)) andList = Group(bnfTerm + OneOrMore(bnfTerm)).setParseAction(makeGroupObject(AndList)) bnfFactor = andList | bnfTerm orList = Group( bnfFactor + OneOrMore( ALT_OP + bnfFactor ) ).setParseAction(makeGroupObject(OrList)) bnfExpr << ( orList | bnfFactor ) bnfLine = ident + COLON + bnfExpr bnfComment = "#" + restOfLine # build return tokens as a dictionary bnf = Dict(OneOrMore(Group(bnfLine))) bnf.ignore(bnfComment) # bnf is defined, parse the grammar text bnfDefs = bnf.parseString(grammar) # correct answer is 78 expected = 78 assert len(bnfDefs) == expected, \ "Error, found %d BNF defns, expected %d" % (len(bnfDefs), expected) # list out defns in order they were parsed (to verify accuracy of parsing) for k,v in bnfDefs: print(k,"=",v) print() # list out parsed grammar defns (demonstrates dictionary access to parsed tokens) for k in list(bnfDefs.keys()): print(k,"=",bnfDefs[k]) pyparsing-2.2.0+dfsg1/examples/oc.py0000644000175000017500000000766712771530535016052 0ustar zigozigo# oc.py # # A subset-C parser, (BNF taken from 1996 International Obfuscated C Code Contest) # # Copyright, 2010, Paul McGuire # """ http://www.ioccc.org/1996/august.hint The following is a description of the OC grammar: OC grammar ========== Terminals are in quotes, () is used for bracketing. program: decl* decl: vardecl fundecl vardecl: type NAME ; type NAME "[" INT "]" ; fundecl: type NAME "(" args ")" "{" body "}" args: /*empty*/ ( arg "," )* arg arg: type NAME body: vardecl* stmt* stmt: ifstmt whilestmt dowhilestmt "return" expr ";" expr ";" "{" stmt* "}" ";" ifstmt: "if" "(" expr ")" stmt "if" "(" expr ")" stmt "else" stmt whilestmt: "while" "(" expr ")" stmt dowhilestmt: "do" stmt "while" "(" expr ")" ";" expr: expr binop expr unop expr expr "[" expr "]" "(" expr ")" expr "(" exprs ")" NAME INT CHAR STRING exprs: /*empty*/ (expr ",")* expr binop: "+" | "-" | "*" | "/" | "%" | "=" | "<" | "==" | "!=" unop: "!" | "-" | "*" type: "int" stars "char" stars stars: "*"* """ from pyparsing import * LPAR,RPAR,LBRACK,RBRACK,LBRACE,RBRACE,SEMI,COMMA = map(Suppress, "()[]{};,") INT, CHAR, WHILE, DO, IF, ELSE, RETURN = map(Keyword, "int char while do if else return".split()) NAME = Word(alphas+"_", alphanums+"_") integer = Regex(r"[+-]?\d+") char = Regex(r"'.'") string_ = dblQuotedString TYPE = Group((INT | CHAR) + ZeroOrMore("*")) expr = Forward() operand = NAME | integer | char | string_ expr << (infixNotation(operand, [ (oneOf('! - *'), 1, opAssoc.RIGHT), (oneOf('++ --'), 1, opAssoc.RIGHT), (oneOf('++ --'), 1, opAssoc.LEFT), (oneOf('* / %'), 2, opAssoc.LEFT), (oneOf('+ -'), 2, opAssoc.LEFT), (oneOf('< == > <= >= !='), 2, opAssoc.LEFT), (Regex(r'=[^=]'), 2, opAssoc.LEFT), ]) + Optional( LBRACK + expr + RBRACK | LPAR + Group(Optional(delimitedList(expr))) + RPAR ) ) stmt = Forward() ifstmt = IF - LPAR + expr + RPAR + stmt + Optional(ELSE + stmt) whilestmt = WHILE - LPAR + expr + RPAR + stmt dowhilestmt = DO - stmt + WHILE + LPAR + expr + RPAR + SEMI returnstmt = RETURN - expr + SEMI stmt << Group( ifstmt | whilestmt | dowhilestmt | returnstmt | expr + SEMI | LBRACE + ZeroOrMore(stmt) + RBRACE | SEMI) vardecl = Group(TYPE + NAME + Optional(LBRACK + integer + RBRACK)) + SEMI arg = Group(TYPE + NAME) body = ZeroOrMore(vardecl) + ZeroOrMore(stmt) fundecl = Group(TYPE + NAME + LPAR + Optional(Group(delimitedList(arg))) + RPAR + LBRACE + Group(body) + RBRACE) decl = fundecl | vardecl program = ZeroOrMore(decl) program.ignore(cStyleComment) # set parser element names for vname in ("ifstmt whilestmt dowhilestmt returnstmt TYPE " "NAME fundecl vardecl program arg body stmt".split()): v = vars()[vname] v.setName(vname) #~ for vname in "fundecl stmt".split(): #~ v = vars()[vname] #~ v.setDebug() test = r""" /* A factorial program */ int putstr(char *s) { while(*s) putchar(*s++); } int fac(int n) { if (n == 0) return 1; else return n*fac(n-1); } int putn(int n) { if (9 < n) putn(n / 10); putchar((n%10) + '0'); } int facpr(int n) { putstr("factorial "); putn(n); putstr(" = "); putn(fac(n)); putstr("\n"); } int main() { int i; i = 0; while(i < 10) facpr(i++); return 0; } """ ast = program.parseString(test, parseAll=True) ast.pprint() pyparsing-2.2.0+dfsg1/examples/macroExpander.py0000644000175000017500000000344712641074630020224 0ustar zigozigo# macroExpander.py # # Example pyparsing program for performing macro expansion, similar to # the C pre-processor. This program is not as fully-featured, simply # processing macros of the form: # #def xxx yyyyy # and replacing xxx with yyyyy in the rest of the input string. Macros # can also be composed using other macros, such as # #def zzz xxx+1 # Since xxx was previously defined as yyyyy, then zzz will be replaced # with yyyyy+1. # # Copyright 2007 by Paul McGuire # from pyparsing import * # define the structure of a macro definition (the empty term is used # to advance to the next non-whitespace character) identifier = Word(alphas+"_",alphanums+"_") macroDef = "#def" + identifier("macro") + empty + restOfLine("value") # define a placeholder for defined macros - initially nothing macroExpr = Forward() macroExpr << NoMatch() # global dictionary for macro definitions macros = {} # parse action for macro definitions def processMacroDefn(s,l,t): macroVal = macroExpander.transformString(t.value) macros[t.macro] = macroVal macroExpr << MatchFirst(map(Keyword, macros.keys())) return "#def " + t.macro + " " + macroVal # parse action to replace macro references with their respective definition def processMacroRef(s,l,t): return macros[t[0]] # attach parse actions to expressions macroExpr.setParseAction(processMacroRef) macroDef.setParseAction(processMacroDefn) # define pattern for scanning through the input string macroExpander = macroExpr | macroDef # test macro substitution using transformString testString = """ #def A 100 #def ALEN A+1 char Astring[ALEN]; char AA[A]; typedef char[ALEN] Acharbuf; """ print(macroExpander.transformString(testString)) print(macros) pyparsing-2.2.0+dfsg1/examples/getNTPservers.py0000644000175000017500000000211512716764103020202 0ustar zigozigo# getNTPservers.py # # Demonstration of the parsing module, implementing a HTML page scanner, # to extract a list of NTP time servers from the NIST web site. # # Copyright 2004, by Paul McGuire # from pyparsing import Word, Combine, Suppress, CharsNotIn, nums import urllib.request, urllib.parse, urllib.error integer = Word(nums) ipAddress = Combine( integer + "." + integer + "." + integer + "." + integer ) tdStart = Suppress("") tdEnd = Suppress("") timeServerPattern = tdStart + ipAddress.setResultsName("ipAddr") + tdEnd + \ tdStart + CharsNotIn("<").setResultsName("loc") + tdEnd # get list of time servers nistTimeServerURL = "http://www.boulder.nist.gov/timefreq/service/time-servers.html" serverListPage = urllib.request.urlopen( nistTimeServerURL ) serverListHTML = serverListPage.read() serverListPage.close() addrs = {} for srvr,startloc,endloc in timeServerPattern.scanString( serverListHTML ): print(srvr.ipAddr, "-", srvr.loc) addrs[srvr.ipAddr] = srvr.loc # or do this: #~ addr,loc = srvr #~ print addr, "-", loc pyparsing-2.2.0+dfsg1/examples/parsePythonValue.py0000644000175000017500000000436712466013312020742 0ustar zigozigo# parsePythonValue.py # # Copyright, 2006, by Paul McGuire # from __future__ import print_function from pyparsing import * cvtBool = lambda t:t[0]=='True' cvtInt = lambda toks: int(toks[0]) cvtReal = lambda toks: float(toks[0]) cvtTuple = lambda toks : tuple(toks.asList()) cvtDict = lambda toks: dict(toks.asList()) cvtList = lambda toks: [toks.asList()] # define punctuation as suppressed literals lparen,rparen,lbrack,rbrack,lbrace,rbrace,colon = \ map(Suppress,"()[]{}:") integer = Regex(r"[+-]?\d+")\ .setName("integer")\ .setParseAction( cvtInt ) real = Regex(r"[+-]?\d+\.\d*([Ee][+-]?\d+)?")\ .setName("real")\ .setParseAction( cvtReal ) tupleStr = Forward() listStr = Forward() dictStr = Forward() unicodeString.setParseAction(lambda t:t[0][2:-1].decode('unicode-escape')) quotedString.setParseAction(lambda t:t[0][1:-1].decode('string-escape')) boolLiteral = oneOf("True False").setParseAction(cvtBool) noneLiteral = Literal("None").setParseAction(replaceWith(None)) listItem = real|integer|quotedString|unicodeString|boolLiteral|noneLiteral| \ Group(listStr) | tupleStr | dictStr tupleStr << ( Suppress("(") + Optional(delimitedList(listItem)) + Optional(Suppress(",")) + Suppress(")") ) tupleStr.setParseAction( cvtTuple ) listStr << (lbrack + Optional(delimitedList(listItem) + Optional(Suppress(","))) + rbrack) listStr.setParseAction(cvtList, lambda t: t[0]) dictEntry = Group( listItem + colon + listItem ) dictStr << (lbrace + Optional(delimitedList(dictEntry) + \ Optional(Suppress(","))) + rbrace) dictStr.setParseAction( cvtDict ) tests = """['a', 100, ('A', [101,102]), 3.14, [ +2.718, 'xyzzy', -1.414] ] [{0: [2], 1: []}, {0: [], 1: [], 2: []}, {0: [1, 2]}] { 'A':1, 'B':2, 'C': {'a': 1.2, 'b': 3.4} } 3.14159 42 6.02E23 6.02e+023 1.0e-7 'a quoted string'""".split("\n") for test in tests: print("Test:", test.strip()) result = listItem.parseString(test)[0] print("Result:", result) try: for dd in result: if isinstance(dd,dict): print(list(dd.items())) except TypeError as te: pass print() pyparsing-2.2.0+dfsg1/examples/position.py0000644000175000017500000000425112466013312017265 0ustar zigozigofrom pyparsing import * text = """Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum""" # find all words beginning with a vowel vowels = "aeiouAEIOU" initialVowelWord = Word(vowels,alphas) # Unfortunately, searchString will advance character by character through # the input text, so it will detect that the initial "Lorem" is not an # initialVowelWord, but then it will test "orem" and think that it is. So # we need to add a do-nothing term that will match the words that start with # consonants, but we will just throw them away when we match them. The key is # that, in having been matched, the parser will skip over them entirely when # looking for initialVowelWords. consonants = ''.join(c for c in alphas if c not in vowels) initialConsWord = Word(consonants, alphas).suppress() # using scanString to locate where tokens are matched for t,start,end in (initialConsWord|initialVowelWord).scanString(text): if t: print(start,':', t[0]) # add parse action to annotate the parsed tokens with their location in the # input string def addLocnToTokens(s,l,t): t['locn'] = l t['word'] = t[0] initialVowelWord.setParseAction(addLocnToTokens) for ivowelInfo in (initialConsWord | initialVowelWord).searchString(text): if not ivowelInfo: continue print(ivowelInfo.locn, ':', ivowelInfo.word) # alternative - add an Empty that will save the current location def location(name): return Empty().setParseAction(lambda s,l,t: t.__setitem__(name,l)) locateInitialVowels = location("locn") + initialVowelWord("word") # search through the input text for ivowelInfo in (initialConsWord | locateInitialVowels).searchString(text): if not ivowelInfo: continue print(ivowelInfo.locn, ':', ivowelInfo.word) pyparsing-2.2.0+dfsg1/examples/readJson.py0000644000175000017500000036137312466013312017201 0ustar zigozigo #~ url = "http://cmsdoc.cern.ch/cms/test/aprom/phedex/dev/gowri/datasvc/tbedi/requestDetails" #~ params = {'format':'json'} #~ import urllib #~ eparams = urllib.urlencode(params) #~ import urllib2 #~ request = urllib2.Request(url,eparams) #~ response = urllib2.urlopen(request) #~ s = response.read() #~ response.close() #~ print s s = """ {"phedex":{"request":[{"last_update":"1188037561", "numofapproved":"1", "id":"7425"}, {"last_update":"1188751826", "numofapproved":"1", "id":"8041"}, {"last_update":"1190116795", "numofapproved":"1", "id":"9281"}, {"last_update":"1190248781", "numofapproved":"1", "id":"9521"}, {"last_update":"1192615612", "numofapproved":"1", "id":"12821"}, {"last_update":"1192729887", "numofapproved":"1", "id":"13121"}, {"last_update":"1193152971", "numofapproved":"1", "id":"13501"}, {"last_update":"1194022054", "numofapproved":"1", "id":"14782"}, {"last_update":"1194429365", "numofapproved":"1", "id":"15081"}, {"last_update":"1195069848", "numofapproved":"1", "id":"16661"}, {"last_update":"1178403225", "numofapproved":"1", "id":"1281"}, {"last_update":"1179239056", "numofapproved":"1", "id":"1387"}, {"last_update":"1179842205", "numofapproved":"1", "id":"1665"}, {"last_update":"1179842040", "numofapproved":"1", "id":"1661"}, {"last_update":"1179935333", "numofapproved":"1", "id":"1741"}, {"last_update":"1183151195", "numofapproved":"1", "id":"3841"}, {"last_update":"1187031531", "numofapproved":"1", "id":"6601"}, {"last_update":"1188820478", "numofapproved":"1", "id":"8121"}, {"last_update":"1190652719", "numofapproved":"1", "id":"9983"}, {"last_update":"1192628950", "numofapproved":"1", "id":"12841"}, {"last_update":"1193075426", "numofapproved":"1", "id":"13341"}, {"last_update":"1194214609", "numofapproved":"1", "id":"14882"}, {"last_update":"1194387864", "numofapproved":"1", "id":"15062"}, {"last_update":"1195134504", "numofapproved":"1", "id":"16741"}, {"last_update":"1182431453", "numofapproved":"1", "id":"3421"}, {"last_update":"1183448188", "numofapproved":"1", "id":"4061"}, {"last_update":"1184588081", "numofapproved":"1", "id":"4908"}, {"last_update":"1184681258", "numofapproved":"1", "id":"4913"}, {"last_update":"1188039048", "numofapproved":"1", "id":"7426"}, {"last_update":"1192699041", "numofapproved":"1", "id":"12982"}, {"last_update":"1193219685", "numofapproved":"1", "id":"13529"}, {"last_update":"1193401408", "numofapproved":"1", "id":"14081"}, {"last_update":"1194454724", "numofapproved":"1", "id":"15201"}, {"last_update":"1194937690", "numofapproved":"1", "id":"16044"}, {"last_update":"1194947125", "numofapproved":"1", "id":"16103"}, {"last_update":"1195134890", "numofapproved":"1", "id":"16761"}, {"last_update":"1195486898", "numofapproved":"1", "id":"17301"}, {"last_update":"1195497774", "numofapproved":"1", "id":"17341"}, {"last_update":"1184744080", "numofapproved":"1", "id":"4941"}, {"last_update":"1186558911", "numofapproved":"1", "id":"6321"}, {"last_update":"1189524520", "numofapproved":"1", "id":"8802"}, {"last_update":"1192683178", "numofapproved":"1", "id":"12921"}, {"last_update":"1193260655", "numofapproved":"1", "id":"13530"}, {"last_update":"1194280038", "numofapproved":"1", "id":"15002"}, {"last_update":"1182077478", "numofapproved":"1", "id":"3162"}, {"last_update":"1183386650", "numofapproved":"1", "id":"3961"}, {"last_update":"1192063369", "numofapproved":"1", "id":"12182"}, {"last_update":"1181931262", "numofapproved":"1", "id":"3101"}, {"last_update":"1178648271", "numofapproved":"1", "id":"1308"}, {"last_update":"1179239923", "numofapproved":"1", "id":"1405"}, {"last_update":"1184370745", "numofapproved":"1", "id":"4861"}, {"last_update":"1185280568", "numofapproved":"1", "id":"5302"}, {"last_update":"1187875115", "numofapproved":"1", "id":"7344"}, {"last_update":"1189140441", "numofapproved":"1", "id":"8541"}, {"last_update":"1189180903", "numofapproved":"1", "id":"8661"}, {"last_update":"1189767643", "numofapproved":"1", "id":"9001"}, {"last_update":"1190726167", "numofapproved":"1", "id":"10101"}, {"last_update":"1190972990", "numofapproved":"1", "id":"10661"}, {"last_update":"1190990720", "numofapproved":"1", "id":"10712"}, {"last_update":"1192004838", "numofapproved":"1", "id":"12021"}, {"last_update":"1192612211", "numofapproved":"1", "id":"12803"}, {"last_update":"1194441407", "numofapproved":"1", "id":"15103"}, {"last_update":"1194792356", "numofapproved":"1", "id":"15681"}, {"last_update":"1194860650", "numofapproved":"1", "id":"15801"}, {"last_update":"1194877395", "numofapproved":"1", "id":"15881"}, {"last_update":"1194950552", "numofapproved":"1", "id":"16124"}, {"last_update":"1194992714", "numofapproved":"1", "id":"16421"}, {"last_update":"1195054500", "numofapproved":"1", "id":"16581"}, {"last_update":"1195228524", "numofapproved":"1", "id":"17001"}, {"last_update":"1195469382", "numofapproved":"1", "id":"17161"}, {"last_update":"1178035947", "numofapproved":"1", "id":"1202"}, {"last_update":"1178869668", "numofapproved":"1", "id":"1356"}, {"last_update":"1183563268", "numofapproved":"1", "id":"4201"}, {"last_update":"1185314677", "numofapproved":"1", "id":"5361"}, {"last_update":"1188467567", "numofapproved":"1", "id":"7781"}, {"last_update":"1190011821", "numofapproved":"1", "id":"9202"}, {"last_update":"1190206214", "numofapproved":"1", "id":"9481"}, {"last_update":"1190973037", "numofapproved":"1", "id":"10663"}, {"last_update":"1190819127", "numofapproved":"1", "id":"10342"}, {"last_update":"1192154959", "numofapproved":"1", "id":"12381"}, {"last_update":"1192634509", "numofapproved":"1", "id":"12862"}, {"last_update":"1194004677", "numofapproved":"1", "id":"14722"}, {"last_update":"1195548191", "numofapproved":"1", "id":"17501"}, {"last_update":"1195548953", "numofapproved":"1", "id":"17502"}, {"last_update":"1195559809", "numofapproved":"1", "id":"17541"}, {"last_update":"1177589103", "numofapproved":"1", "id":"1044"}, {"last_update":"1183416879", "numofapproved":"1", "id":"4041"}, {"last_update":"1186646977", "numofapproved":"1", "id":"6342"}, {"last_update":"1189656586", "numofapproved":"1", "id":"8902"}, {"last_update":"1190150645", "numofapproved":"1", "id":"9421"}, {"last_update":"1190409040", "numofapproved":"1", "id":"9741"}, {"last_update":"1190973011", "numofapproved":"1", "id":"10662"}, {"last_update":"1190993896", "numofapproved":"1", "id":"10761"}, {"last_update":"1193973610", "numofapproved":"1", "id":"14661"}, {"last_update":"1193973848", "numofapproved":"1", "id":"14664"}, {"last_update":"1194539978", "numofapproved":"1", "id":"15381"}, {"last_update":"1194947356", "numofapproved":"1", "id":"16105"}, {"last_update":"1195399589", "numofapproved":"1", "id":"17101"}, {"last_update":"1195464953", "numofapproved":"1", "id":"17141"}, {"last_update":"1171962221", "numofapproved":"1", "id":"109"}, {"last_update":"1173113812", "numofapproved":"1", "id":"247"}, {"last_update":"1173975435", "numofapproved":"1", "id":"343"}, {"last_update":"1174050971", "numofapproved":"1", "id":"353"}, {"last_update":"1174301484", "numofapproved":"1", "id":"393"}, {"last_update":"1172565853", "numofapproved":"1", "id":"208"}, {"last_update":"1172593328", "numofapproved":"1", "id":"215"}, {"last_update":"1175267391", "numofapproved":"1", "id":"565"}, {"last_update":"1171379845", "numofapproved":"1", "id":"25"}, {"last_update":"1171477466", "numofapproved":"1", "id":"53"}, {"last_update":"1171799296", "numofapproved":"1", "id":"77"}, {"last_update":"1172671474", "numofapproved":"1", "id":"223"}, {"last_update":"1174301354", "numofapproved":"1", "id":"388"}, {"last_update":"1174899552", "numofapproved":"1", "id":"511"}, {"last_update":"1174899458", "numofapproved":"1", "id":"505"}, {"last_update":"1175502936", "numofapproved":"1", "id":"604"}, {"last_update":"1175613825", "numofapproved":"1", "id":"665"}, {"last_update":"1175776232", "numofapproved":"1", "id":"673"}, {"last_update":"1171621302", "numofapproved":"1", "id":"68"}, {"last_update":"1171904738", "numofapproved":"1", "id":"98"}, {"last_update":"1171968012", "numofapproved":"1", "id":"115"}, {"last_update":"1172145037", "numofapproved":"1", "id":"168"}, {"last_update":"1172246599", "numofapproved":"1", "id":"185"}, {"last_update":"1173886280", "numofapproved":"1", "id":"318"}, {"last_update":"1174562010", "numofapproved":"1", "id":"423"}, {"last_update":"1176308974", "numofapproved":"1", "id":"884"}, {"last_update":"1176482150", "numofapproved":"1", "id":"943"}, {"last_update":"1176702424", "numofapproved":"1", "id":"1001"}, {"last_update":"1176748776", "numofapproved":"1", "id":"984"}, {"last_update":"1172669745", "numofapproved":"1", "id":"222"}, {"last_update":"1174899538", "numofapproved":"1", "id":"510"}, {"last_update":"1174899143", "numofapproved":"1", "id":"493"}, {"last_update":"1174899043", "numofapproved":"1", "id":"488"}, {"last_update":"1175711780", "numofapproved":"1", "id":"667"}, {"last_update":"1175712851", "numofapproved":"1", "id":"705"}, {"last_update":"1176296548", "numofapproved":"1", "id":"841"}, {"last_update":"1175862269", "numofapproved":"1", "id":"781"}, {"last_update":"1171483107", "numofapproved":"1", "id":"54"}, {"last_update":"1171645737", "numofapproved":"1", "id":"71"}, {"last_update":"1172253423", "numofapproved":"1", "id":"188"}, {"last_update":"1173888726", "numofapproved":"1", "id":"321"}, {"last_update":"1173975649", "numofapproved":"1", "id":"346"}, {"last_update":"1174299379", "numofapproved":"1", "id":"363"}, {"last_update":"1174301359", "numofapproved":"1", "id":"389"}, {"last_update":"1174301073", "numofapproved":"1", "id":"379"}, {"last_update":"1174300650", "numofapproved":"1", "id":"371"}, {"last_update":"1171485069", "numofapproved":"1", "id":"55"}, {"last_update":"1171799178", "numofapproved":"1", "id":"73"}, {"last_update":"1171896809", "numofapproved":"1", "id":"95"}, {"last_update":"1172672959", "numofapproved":"1", "id":"224"}, {"last_update":"1172693619", "numofapproved":"1", "id":"230"}, {"last_update":"1173207656", "numofapproved":"1", "id":"253"}, {"last_update":"1174059533", "numofapproved":"1", "id":"356"}, {"last_update":"1174300538", "numofapproved":"1", "id":"368"}, {"last_update":"1176137457", "numofapproved":"1", "id":"807"}, {"last_update":"1173728124", "numofapproved":"1", "id":"305"}, {"last_update":"1172507633", "numofapproved":"1", "id":"198"}, {"last_update":"1174301173", "numofapproved":"1", "id":"383"}, {"last_update":"1174899102", "numofapproved":"1", "id":"491"}, {"last_update":"1174301362", "numofapproved":"1", "id":"390"}, {"last_update":"1175254095", "numofapproved":"1", "id":"561"}, {"last_update":"1174037250", "numofapproved":"1", "id":"348"}, {"last_update":"1175865081", "numofapproved":"1", "id":"782"}, {"last_update":"1177591942", "numofapproved":"1", "id":"1046"}, {"last_update":"1177989191", "numofapproved":"1", "id":"1201"}, {"last_update":"1178743279", "numofapproved":"1", "id":"1323"}, {"last_update":"1178876587", "numofapproved":"1", "id":"1357"}, {"last_update":"1179239620", "numofapproved":"1", "id":"1401"}, {"last_update":"1180725458", "numofapproved":"1", "id":"2141"}, {"last_update":"1181205209", "numofapproved":"1", "id":"2421"}, {"last_update":"1181575615", "numofapproved":"1", "id":"2761"}, {"last_update":"1182184775", "numofapproved":"1", "id":"3201"}, {"last_update":"1182963728", "numofapproved":"1", "id":"3661"}, {"last_update":"1178727735", "numofapproved":"1", "id":"1349"}, {"last_update":"1182497720", "numofapproved":"1", "id":"3441"}, {"last_update":"1184381847", "numofapproved":"1", "id":"4881"}, {"last_update":"1184568423", "numofapproved":"1", "id":"4904"}, {"last_update":"1185364813", "numofapproved":"1", "id":"5421"}, {"last_update":"1188043594", "numofapproved":"1", "id":"7441"}, {"last_update":"1188675287", "numofapproved":"1", "id":"7981"}, {"last_update":"1188741594", "numofapproved":"1", "id":"8021"}, {"last_update":"1189144234", "numofapproved":"1", "id":"8561"}, {"last_update":"1189170150", "numofapproved":"1", "id":"8641"}, {"last_update":"1189501508", "numofapproved":"1", "id":"8761"}, {"last_update":"1189811918", "numofapproved":"1", "id":"9041"}, {"last_update":"1189812095", "numofapproved":"1", "id":"9042"}, {"last_update":"1177591716", "numofapproved":"1", "id":"1045"}, {"last_update":"1178040595", "numofapproved":"1", "id":"1203"}, {"last_update":"1182437936", "numofapproved":"1", "id":"3423"}, {"last_update":"1190480042", "numofapproved":"1", "id":"9781"}, {"last_update":"1190821494", "numofapproved":"1", "id":"10361"}, {"last_update":"1190959672", "numofapproved":"1", "id":"10602"}, {"last_update":"1190964023", "numofapproved":"1", "id":"10621"}, {"last_update":"1190991147", "numofapproved":"1", "id":"10721"}, {"last_update":"1190992132", "numofapproved":"1", "id":"10741"}, {"last_update":"1190990410", "numofapproved":"1", "id":"10706"}, {"last_update":"1181667132", "numofapproved":"1", "id":"2861"}, {"last_update":"1183746653", "numofapproved":"1", "id":"4321"}, {"last_update":"1191184539", "numofapproved":"1", "id":"10861"}, {"last_update":"1191490599", "numofapproved":"1", "id":"11261"}, {"last_update":"1191834884", "numofapproved":"1", "id":"11801"}, {"last_update":"1191834899", "numofapproved":"1", "id":"11802"}, {"last_update":"1191940759", "numofapproved":"1", "id":"11961"}, {"last_update":"1179971250", "numofapproved":"1", "id":"1643"}, {"last_update":"1181663618", "numofapproved":"1", "id":"2841"}, {"last_update":"1181932994", "numofapproved":"1", "id":"3102"}, {"last_update":"1182420732", "numofapproved":"1", "id":"3382"}, {"last_update":"1192118127", "numofapproved":"1", "id":"12281"}, {"last_update":"1192222036", "numofapproved":"1", "id":"12481"}, {"last_update":"1192155814", "numofapproved":"1", "id":"12364"}, {"last_update":"1192563924", "numofapproved":"1", "id":"12761"}, {"last_update":"1193124530", "numofapproved":"1", "id":"13441"}, {"last_update":"1193345545", "numofapproved":"1", "id":"13921"}, {"last_update":"1193396927", "numofapproved":"1", "id":"14041"}, {"last_update":"1180015411", "numofapproved":"1", "id":"1651"}, {"last_update":"1180107815", "numofapproved":"1", "id":"1658"}, {"last_update":"1186050394", "numofapproved":"1", "id":"6021"}, {"last_update":"1188519417", "numofapproved":"1", "id":"7841"}, {"last_update":"1193222002", "numofapproved":"1", "id":"13541"}, {"last_update":"1193965081", "numofapproved":"1", "id":"14641"}, {"last_update":"1193660582", "numofapproved":"1", "id":"14381"}, {"last_update":"1194088240", "numofapproved":"1", "id":"14821"}, {"last_update":"1194110475", "numofapproved":"1", "id":"14841"}, {"last_update":"1194246367", "numofapproved":"1", "id":"14902"}, {"last_update":"1194464283", "numofapproved":"1", "id":"15221"}, {"last_update":"1194622250", "numofapproved":"1", "id":"15461"}, {"last_update":"1194635632", "numofapproved":"1", "id":"15601"}, {"last_update":"1179147506", "numofapproved":"1", "id":"1382"}, {"last_update":"1179240025", "numofapproved":"1", "id":"1388"}, {"last_update":"1179748089", "numofapproved":"1", "id":"1561"}, {"last_update":"1179868997", "numofapproved":"1", "id":"1681"}, {"last_update":"1183019667", "numofapproved":"1", "id":"3702"}, {"last_update":"1184531598", "numofapproved":"1", "id":"4902"}, {"last_update":"1187294472", "numofapproved":"1", "id":"6841"}, {"last_update":"1189521494", "numofapproved":"1", "id":"8801"}, {"last_update":"1192726867", "numofapproved":"1", "id":"13081"}, {"last_update":"1193049178", "numofapproved":"1", "id":"13301"}, {"last_update":"1193387050", "numofapproved":"1", "id":"13947"}, {"last_update":"1194277280", "numofapproved":"1", "id":"14981"}, {"last_update":"1179150720", "numofapproved":"1", "id":"1383"}, {"last_update":"1179842104", "numofapproved":"1", "id":"1663"}, {"last_update":"1183766887", "numofapproved":"1", "id":"4341"}, {"last_update":"1185542132", "numofapproved":"1", "id":"5682"}, {"last_update":"1186737114", "numofapproved":"1", "id":"6382"}, {"last_update":"1187015679", "numofapproved":"1", "id":"6521"}, {"last_update":"1190326980", "numofapproved":"1", "id":"9641"}, {"last_update":"1191595711", "numofapproved":"1", "id":"11622"}, {"last_update":"1192106288", "numofapproved":"1", "id":"12221"}, {"last_update":"1192454432", "numofapproved":"1", "id":"12622"}, {"last_update":"1194339640", "numofapproved":"1", "id":"15021"}, {"last_update":"1177758209", "numofapproved":"1", "id":"1181"}, {"last_update":"1179842392", "numofapproved":"1", "id":"1669"}, {"last_update":"1179872870", "numofapproved":"1", "id":"1682"}, {"last_update":"1181233887", "numofapproved":"1", "id":"2541"}, {"last_update":"1182349297", "numofapproved":"1", "id":"3342"}, {"last_update":"1182375421", "numofapproved":"1", "id":"3350"}, {"last_update":"1183485259", "numofapproved":"1", "id":"4081"}, {"last_update":"1184319308", "numofapproved":"1", "id":"4821"}, {"last_update":"1187626648", "numofapproved":"1", "id":"6981"}, {"last_update":"1193153090", "numofapproved":"1", "id":"13502"}, {"last_update":"1194366368", "numofapproved":"1", "id":"15041"}, {"last_update":"1194617018", "numofapproved":"1", "id":"15421"}, {"last_update":"1195230640", "numofapproved":"1", "id":"17021"}, {"last_update":"1179908379", "numofapproved":"1", "id":"1701"}, {"last_update":"1188049228", "numofapproved":"1", "id":"7427"}, {"last_update":"1177581166", "numofapproved":"1", "id":"1061"}, {"last_update":"1187160654", "numofapproved":"1", "id":"6661"}, {"last_update":"1192983992", "numofapproved":"1", "id":"13222"}, {"last_update":"1193388978", "numofapproved":"1", "id":"13954"}, {"last_update":"1194617112", "numofapproved":"1", "id":"15422"}, {"last_update":"1195398876", "numofapproved":"1", "id":"17081"}, {"last_update":"1184262511", "numofapproved":"1", "id":"4801"}, {"last_update":"1192112284", "numofapproved":"1", "id":"12241"}, {"last_update":"1193082767", "numofapproved":"1", "id":"13401"}, {"last_update":"1193179243", "numofapproved":"1", "id":"13526"}, {"last_update":"1178142915", "numofapproved":"1", "id":"1206"}, {"last_update":"1178648333", "numofapproved":"1", "id":"1310"}, {"last_update":"1179279626", "numofapproved":"1", "id":"1391"}, {"last_update":"1182882268", "numofapproved":"1", "id":"3584"}, {"last_update":"1183128448", "numofapproved":"1", "id":"3823"}, {"last_update":"1183377394", "numofapproved":"1", "id":"3941"}, {"last_update":"1188582729", "numofapproved":"1", "id":"7902"}, {"last_update":"1189695063", "numofapproved":"1", "id":"8962"}, {"last_update":"1192001165", "numofapproved":"1", "id":"12001"}, {"last_update":"1192155647", "numofapproved":"1", "id":"12363"}, {"last_update":"1193418304", "numofapproved":"1", "id":"14202"}, {"last_update":"1193632105", "numofapproved":"1", "id":"14341"}, {"last_update":"1194011106", "numofapproved":"1", "id":"14741"}, {"last_update":"1194818628", "numofapproved":"1", "id":"15701"}, {"last_update":"1194875153", "numofapproved":"1", "id":"15861"}, {"last_update":"1194727029", "numofapproved":"1", "id":"15665"}, {"last_update":"1194950210", "numofapproved":"1", "id":"16122"}, {"last_update":"1194976681", "numofapproved":"1", "id":"16241"}, {"last_update":"1194979189", "numofapproved":"1", "id":"16281"}, {"last_update":"1194962224", "numofapproved":"1", "id":"16201"}, {"last_update":"1195046085", "numofapproved":"1", "id":"16481"}, {"last_update":"1195399919", "numofapproved":"1", "id":"17102"}, {"last_update":"1183113736", "numofapproved":"1", "id":"3782"}, {"last_update":"1183114202", "numofapproved":"1", "id":"3783"}, {"last_update":"1189017904", "numofapproved":"1", "id":"8441"}, {"last_update":"1189694944", "numofapproved":"1", "id":"8961"}, {"last_update":"1190766842", "numofapproved":"1", "id":"10181"}, {"last_update":"1190973066", "numofapproved":"1", "id":"10665"}, {"last_update":"1190990264", "numofapproved":"1", "id":"10702"}, {"last_update":"1193043204", "numofapproved":"1", "id":"13281"}, {"last_update":"1194627082", "numofapproved":"1", "id":"15561"}, {"last_update":"1194894589", "numofapproved":"1", "id":"15941"}, {"last_update":"1195485915", "numofapproved":"1", "id":"17281"}, {"last_update":"1195485806", "numofapproved":"1", "id":"17261"}, {"last_update":"1195498836", "numofapproved":"1", "id":"17361"}, {"last_update":"1195514951", "numofapproved":"1", "id":"17421"}, {"last_update":"1183722351", "numofapproved":"1", "id":"4261"}, {"last_update":"1184218083", "numofapproved":"1", "id":"4682"}, {"last_update":"1186848968", "numofapproved":"1", "id":"6441"}, {"last_update":"1187023846", "numofapproved":"1", "id":"6561"}, {"last_update":"1187870812", "numofapproved":"1", "id":"7342"}, {"last_update":"1188657717", "numofapproved":"1", "id":"7961"}, {"last_update":"1190541897", "numofapproved":"1", "id":"9841"}, {"last_update":"1190629135", "numofapproved":"1", "id":"9922"}, {"last_update":"1191226530", "numofapproved":"1", "id":"10922"}, {"last_update":"1191505214", "numofapproved":"1", "id":"11321"}, {"last_update":"1192304524", "numofapproved":"1", "id":"12541"}, {"last_update":"1193948730", "numofapproved":"1", "id":"14601"}, {"last_update":"1194073812", "numofapproved":"1", "id":"14801"}, {"last_update":"1194387224", "numofapproved":"1", "id":"14892"}, {"last_update":"1194464384", "numofapproved":"1", "id":"15223"}, {"last_update":"1194726799", "numofapproved":"1", "id":"15663"}, {"last_update":"1171969969", "numofapproved":"1", "id":"119"}, {"last_update":"1174444717", "numofapproved":"1", "id":"405"}, {"last_update":"1174899431", "numofapproved":"1", "id":"504"}, {"last_update":"1174899204", "numofapproved":"1", "id":"496"}, {"last_update":"1174925591", "numofapproved":"1", "id":"530"}, {"last_update":"1176902523", "numofapproved":"1", "id":"1008"}, {"last_update":"1172765523", "numofapproved":"1", "id":"232"}, {"last_update":"1173315950", "numofapproved":"1", "id":"260"}, {"last_update":"1174899524", "numofapproved":"1", "id":"509"}, {"last_update":"1174300691", "numofapproved":"1", "id":"373"}, {"last_update":"1175502917", "numofapproved":"1", "id":"625"}, {"last_update":"1175601578", "numofapproved":"1", "id":"662"}, {"last_update":"1175608600", "numofapproved":"1", "id":"684"}, {"last_update":"1176755309", "numofapproved":"1", "id":"985"}, {"last_update":"1171386411", "numofapproved":"1", "id":"45"}, {"last_update":"1171800366", "numofapproved":"1", "id":"81"}, {"last_update":"1172847417", "numofapproved":"1", "id":"241"}, {"last_update":"1174734904", "numofapproved":"1", "id":"462"}, {"last_update":"1174735234", "numofapproved":"1", "id":"469"}, {"last_update":"1174735074", "numofapproved":"1", "id":"465"}, {"last_update":"1175267646", "numofapproved":"1", "id":"566"}, {"last_update":"1176331857", "numofapproved":"1", "id":"888"}, {"last_update":"1176387926", "numofapproved":"1", "id":"890"}, {"last_update":"1176458401", "numofapproved":"1", "id":"904"}, {"last_update":"1173088626", "numofapproved":"1", "id":"244"}, {"last_update":"1173109009", "numofapproved":"1", "id":"246"}, {"last_update":"1173671557", "numofapproved":"1", "id":"284"}, {"last_update":"1174927658", "numofapproved":"1", "id":"532"}, {"last_update":"1175592399", "numofapproved":"1", "id":"661"}, {"last_update":"1176480402", "numofapproved":"1", "id":"941"}, {"last_update":"1176561564", "numofapproved":"1", "id":"945"}, {"last_update":"1172218707", "numofapproved":"1", "id":"180"}, {"last_update":"1172771475", "numofapproved":"1", "id":"233"}, {"last_update":"1173267863", "numofapproved":"1", "id":"257"}, {"last_update":"1176493803", "numofapproved":"1", "id":"963"}, {"last_update":"1171449646", "numofapproved":"1", "id":"49"}, {"last_update":"1171471549", "numofapproved":"1", "id":"51"}, {"last_update":"1171800487", "numofapproved":"1", "id":"88"}, {"last_update":"1171800431", "numofapproved":"1", "id":"85"}, {"last_update":"1175502995", "numofapproved":"1", "id":"627"}, {"last_update":"1175712797", "numofapproved":"1", "id":"704"}, {"last_update":"1171122384", "numofapproved":"1", "id":"3"}, {"last_update":"1171380774", "numofapproved":"1", "id":"26"}, {"last_update":"1171904757", "numofapproved":"1", "id":"99"}, {"last_update":"1174300705", "numofapproved":"1", "id":"374"}, {"last_update":"1174924802", "numofapproved":"1", "id":"526"}, {"last_update":"1175935441", "numofapproved":"1", "id":"801"}, {"last_update":"1175610915", "numofapproved":"1", "id":"686"}, {"last_update":"1171977081", "numofapproved":"1", "id":"125"}, {"last_update":"1173165324", "numofapproved":"1", "id":"249"}, {"last_update":"1173888337", "numofapproved":"1", "id":"319"}, {"last_update":"1173889473", "numofapproved":"1", "id":"331"}, {"last_update":"1172180902", "numofapproved":"1", "id":"175"}, {"last_update":"1174058063", "numofapproved":"1", "id":"354"}, {"last_update":"1174300674", "numofapproved":"1", "id":"372"}, {"last_update":"1171886332", "numofapproved":"1", "id":"93"}, {"last_update":"1176731068", "numofapproved":"1", "id":"1003"}, {"last_update":"1178645848", "numofapproved":"1", "id":"1306"}, {"last_update":"1178706683", "numofapproved":"1", "id":"1321"}, {"last_update":"1179240076", "numofapproved":"1", "id":"1406"}, {"last_update":"1180380411", "numofapproved":"1", "id":"1862"}, {"last_update":"1180683561", "numofapproved":"1", "id":"2041"}, {"last_update":"1181229731", "numofapproved":"1", "id":"2521"}, {"last_update":"1182210982", "numofapproved":"1", "id":"3203"}, {"last_update":"1182421105", "numofapproved":"1", "id":"3401"}, {"last_update":"1182199404", "numofapproved":"1", "id":"3202"}, {"last_update":"1182258596", "numofapproved":"1", "id":"3241"}, {"last_update":"1183556842", "numofapproved":"1", "id":"4161"}, {"last_update":"1184146825", "numofapproved":"1", "id":"4601"}, {"last_update":"1184771229", "numofapproved":"1", "id":"4981"}, {"last_update":"1185355415", "numofapproved":"1", "id":"5401"}, {"last_update":"1185377130", "numofapproved":"1", "id":"5481"}, {"last_update":"1185483994", "numofapproved":"1", "id":"5621"}, {"last_update":"1186496707", "numofapproved":"1", "id":"6261"}, {"last_update":"1187704347", "numofapproved":"1", "id":"7001"}, {"last_update":"1187758331", "numofapproved":"1", "id":"7101"}, {"last_update":"1187765716", "numofapproved":"1", "id":"7161"}, {"last_update":"1188284185", "numofapproved":"1", "id":"7581"}, {"last_update":"1188463286", "numofapproved":"1", "id":"7761"}, {"last_update":"1189012058", "numofapproved":"1", "id":"8421"}, {"last_update":"1189814265", "numofapproved":"1", "id":"9061"}, {"last_update":"1180880867", "numofapproved":"1", "id":"2161"}, {"last_update":"1181218244", "numofapproved":"1", "id":"2463"}, {"last_update":"1183515137", "numofapproved":"1", "id":"4141"}, {"last_update":"1183515248", "numofapproved":"1", "id":"4142"}, {"last_update":"1188311100", "numofapproved":"1", "id":"7641"}, {"last_update":"1190011501", "numofapproved":"1", "id":"9201"}, {"last_update":"1190012299", "numofapproved":"1", "id":"9221"}, {"last_update":"1190149196", "numofapproved":"1", "id":"9382"}, {"last_update":"1190202046", "numofapproved":"1", "id":"9461"}, {"last_update":"1190626607", "numofapproved":"1", "id":"9881"}, {"last_update":"1190632230", "numofapproved":"1", "id":"9941"}, {"last_update":"1190660429", "numofapproved":"1", "id":"10002"}, {"last_update":"1190819102", "numofapproved":"1", "id":"10341"}, {"last_update":"1190824319", "numofapproved":"1", "id":"10382"}, {"last_update":"1190825791", "numofapproved":"1", "id":"10402"}, {"last_update":"1190847397", "numofapproved":"1", "id":"10421"}, {"last_update":"1190876679", "numofapproved":"1", "id":"10441"}, {"last_update":"1190918894", "numofapproved":"1", "id":"10541"}, {"last_update":"1190924961", "numofapproved":"1", "id":"10582"}, {"last_update":"1190991179", "numofapproved":"1", "id":"10723"}, {"last_update":"1190663960", "numofapproved":"1", "id":"10042"}, {"last_update":"1191222270", "numofapproved":"1", "id":"10881"}, {"last_update":"1178869580", "numofapproved":"1", "id":"1355"}, {"last_update":"1180054057", "numofapproved":"1", "id":"1655"}, {"last_update":"1180428815", "numofapproved":"1", "id":"1881"}, {"last_update":"1183369278", "numofapproved":"1", "id":"3901"}, {"last_update":"1185018445", "numofapproved":"1", "id":"5163"}, {"last_update":"1185201628", "numofapproved":"1", "id":"5221"}, {"last_update":"1189345395", "numofapproved":"1", "id":"8741"}, {"last_update":"1191406141", "numofapproved":"1", "id":"11041"}, {"last_update":"1191410914", "numofapproved":"1", "id":"11067"}, {"last_update":"1191558362", "numofapproved":"1", "id":"11461"}, {"last_update":"1191584539", "numofapproved":"1", "id":"11541"}, {"last_update":"1191584660", "numofapproved":"1", "id":"11542"}, {"last_update":"1191599491", "numofapproved":"1", "id":"11661"}, {"last_update":"1191813292", "numofapproved":"1", "id":"11781"}, {"last_update":"1191856553", "numofapproved":"1", "id":"11842"}, {"last_update":"1191861142", "numofapproved":"1", "id":"11862"}, {"last_update":"1177509523", "numofapproved":"1", "id":"1041"}, {"last_update":"1190627650", "numofapproved":"1", "id":"9901"}, {"last_update":"1192034749", "numofapproved":"1", "id":"12141"}, {"last_update":"1192165574", "numofapproved":"1", "id":"12401"}, {"last_update":"1192431750", "numofapproved":"1", "id":"12581"}, {"last_update":"1192536591", "numofapproved":"1", "id":"12721"}, {"last_update":"1193035428", "numofapproved":"1", "id":"13261"}, {"last_update":"1193239266", "numofapproved":"1", "id":"13581"}, {"last_update":"1193314455", "numofapproved":"1", "id":"13841"}, {"last_update":"1193333733", "numofapproved":"1", "id":"13901"}, {"last_update":"1193389116", "numofapproved":"1", "id":"14001"}, {"last_update":"1184970339", "numofapproved":"1", "id":"5121"}, {"last_update":"1190892760", "numofapproved":"1", "id":"10481"}, {"last_update":"1192823398", "numofapproved":"1", "id":"13182"}, {"last_update":"1193911671", "numofapproved":"1", "id":"14541"}, {"last_update":"1193916761", "numofapproved":"1", "id":"14543"}, {"last_update":"1194212665", "numofapproved":"1", "id":"14881"}, {"last_update":"1194248205", "numofapproved":"1", "id":"14921"}, {"last_update":"1194513600", "numofapproved":"1", "id":"15110"}, {"last_update":"1194539704", "numofapproved":"1", "id":"15361"}, {"last_update":"1194569643", "numofapproved":"1", "id":"15112"}, {"last_update":"1194619794", "numofapproved":"1", "id":"15441"}, {"last_update":"1194623621", "numofapproved":"1", "id":"15501"}, {"last_update":"1194624477", "numofapproved":"1", "id":"15521"}, {"last_update":"1194635685", "numofapproved":"1", "id":"15602"}, {"last_update":"1179311539", "numofapproved":"1", "id":"1393"}, {"last_update":"1179672561", "numofapproved":"1", "id":"1521"}, {"last_update":"1180712413", "numofapproved":"1", "id":"2101"}, {"last_update":"1181646264", "numofapproved":"1", "id":"2821"}, {"last_update":"1181807696", "numofapproved":"1", "id":"2921"}, {"last_update":"1181824523", "numofapproved":"1", "id":"2942"}, {"last_update":"1181835089", "numofapproved":"1", "id":"2981"}, {"last_update":"1182000147", "numofapproved":"1", "id":"3141"}, {"last_update":"1182952133", "numofapproved":"1", "id":"3641"}, {"last_update":"1188811518", "numofapproved":"1", "id":"8101"}, {"last_update":"1188975549", "numofapproved":"1", "id":"8321"}, {"last_update":"1190122760", "numofapproved":"1", "id":"9301"}, {"last_update":"1190124712", "numofapproved":"1", "id":"9321"}, {"last_update":"1194526560", "numofapproved":"1", "id":"15281"}, {"last_update":"1195149112", "numofapproved":"1", "id":"16821"}, {"last_update":"1179823256", "numofapproved":"1", "id":"1602"}, {"last_update":"1186332011", "numofapproved":"1", "id":"6165"}, {"last_update":"1187263451", "numofapproved":"1", "id":"6781"}, {"last_update":"1190312346", "numofapproved":"1", "id":"9621"}, {"last_update":"1193178728", "numofapproved":"1", "id":"13525"}, {"last_update":"1193908534", "numofapproved":"1", "id":"14524"}, {"last_update":"1194279992", "numofapproved":"1", "id":"15001"}, {"last_update":"1194947169", "numofapproved":"1", "id":"16104"}, {"last_update":"1195139978", "numofapproved":"1", "id":"16801"}, {"last_update":"1195152323", "numofapproved":"1", "id":"16841"}, {"last_update":"1188086146", "numofapproved":"1", "id":"7428"}, {"last_update":"1192143475", "numofapproved":"1", "id":"12341"}, {"last_update":"1192529949", "numofapproved":"1", "id":"12664"}, {"last_update":"1192721072", "numofapproved":"1", "id":"13041"}, {"last_update":"1193844156", "numofapproved":"1", "id":"14501"}, {"last_update":"1177597683", "numofapproved":"1", "id":"1063"}, {"last_update":"1180975406", "numofapproved":"1", "id":"2184"}, {"last_update":"1184681435", "numofapproved":"1", "id":"4914"}, {"last_update":"1187596457", "numofapproved":"1", "id":"6922"}, {"last_update":"1190661113", "numofapproved":"1", "id":"10003"}, {"last_update":"1192721357", "numofapproved":"1", "id":"13042"}, {"last_update":"1193130120", "numofapproved":"1", "id":"13461"}, {"last_update":"1193388868", "numofapproved":"1", "id":"13953"}, {"last_update":"1194861534", "numofapproved":"1", "id":"15821"}, {"last_update":"1182357592", "numofapproved":"1", "id":"3345"}, {"last_update":"1183722862", "numofapproved":"1", "id":"4262"}, {"last_update":"1186066354", "numofapproved":"1", "id":"6041"}, {"last_update":"1192698982", "numofapproved":"1", "id":"12981"}, {"last_update":"1181237191", "numofapproved":"1", "id":"2561"}, {"last_update":"1184569090", "numofapproved":"1", "id":"4906"}, {"last_update":"1185397555", "numofapproved":"1", "id":"5501"}, {"last_update":"1185541935", "numofapproved":"1", "id":"5681"}, {"last_update":"1193385832", "numofapproved":"1", "id":"13941"}, {"last_update":"1185482424", "numofapproved":"1", "id":"5581"}, {"last_update":"1195508796", "numofapproved":"1", "id":"17401"}, {"last_update":"1178718386", "numofapproved":"1", "id":"1347"}, {"last_update":"1178788813", "numofapproved":"1", "id":"1351"}, {"last_update":"1178877332", "numofapproved":"1", "id":"1358"}, {"last_update":"1183208679", "numofapproved":"1", "id":"3861"}, {"last_update":"1187885439", "numofapproved":"1", "id":"7347"}, {"last_update":"1188985190", "numofapproved":"1", "id":"8341"}, {"last_update":"1189687132", "numofapproved":"1", "id":"8941"}, {"last_update":"1189864330", "numofapproved":"1", "id":"9121"}, {"last_update":"1190990605", "numofapproved":"1", "id":"10709"}, {"last_update":"1192634449", "numofapproved":"1", "id":"12861"}, {"last_update":"1194723756", "numofapproved":"1", "id":"15641"}, {"last_update":"1194792428", "numofapproved":"1", "id":"15682"}, {"last_update":"1194725734", "numofapproved":"1", "id":"15661"}, {"last_update":"1194945618", "numofapproved":"1", "id":"16061"}, {"last_update":"1194946006", "numofapproved":"1", "id":"16081"}, {"last_update":"1194949774", "numofapproved":"1", "id":"16121"}, {"last_update":"1194950925", "numofapproved":"1", "id":"16126"}, {"last_update":"1194979238", "numofapproved":"1", "id":"16282"}, {"last_update":"1195051013", "numofapproved":"1", "id":"16543"}, {"last_update":"1195050956", "numofapproved":"1", "id":"16542"}, {"last_update":"1195047036", "numofapproved":"1", "id":"16501"}, {"last_update":"1195221919", "numofapproved":"1", "id":"16942"}, {"last_update":"1178035892", "numofapproved":"1", "id":"1221"}, {"last_update":"1178570265", "numofapproved":"1", "id":"1302"}, {"last_update":"1178811921", "numofapproved":"1", "id":"1354"}, {"last_update":"1182344326", "numofapproved":"1", "id":"3321"}, {"last_update":"1184999048", "numofapproved":"1", "id":"5141"}, {"last_update":"1188994511", "numofapproved":"1", "id":"8361"}, {"last_update":"1189161726", "numofapproved":"1", "id":"8601"}, {"last_update":"1190500875", "numofapproved":"1", "id":"9803"}, {"last_update":"1190817424", "numofapproved":"1", "id":"10321"}, {"last_update":"1191327796", "numofapproved":"1", "id":"11001"}, {"last_update":"1191410544", "numofapproved":"1", "id":"11062"}, {"last_update":"1192009739", "numofapproved":"1", "id":"12062"}, {"last_update":"1193973669", "numofapproved":"1", "id":"14662"}, {"last_update":"1194035149", "numofapproved":"1", "id":"14783"}, {"last_update":"1194465519", "numofapproved":"1", "id":"15106"}, {"last_update":"1194464336", "numofapproved":"1", "id":"15222"}, {"last_update":"1194861398", "numofapproved":"1", "id":"15802"}, {"last_update":"1194950791", "numofapproved":"1", "id":"16125"}, {"last_update":"1195501394", "numofapproved":"1", "id":"17381"}, {"last_update":"1195546583", "numofapproved":"1", "id":"17461"}, {"last_update":"1177607652", "numofapproved":"1", "id":"1048"}, {"last_update":"1182349136", "numofapproved":"1", "id":"3322"}, {"last_update":"1184217665", "numofapproved":"1", "id":"4681"}, {"last_update":"1185510733", "numofapproved":"1", "id":"5641"}, {"last_update":"1187875988", "numofapproved":"1", "id":"7345"}, {"last_update":"1188384227", "numofapproved":"1", "id":"7701"}, {"last_update":"1188935650", "numofapproved":"1", "id":"8261"}, {"last_update":"1188951982", "numofapproved":"1", "id":"8301"}, {"last_update":"1190391010", "numofapproved":"1", "id":"9701"}, {"last_update":"1191169581", "numofapproved":"1", "id":"10841"}, {"last_update":"1194435269", "numofapproved":"1", "id":"15101"}, {"last_update":"1171800457", "numofapproved":"1", "id":"86"}, {"last_update":"1171968036", "numofapproved":"1", "id":"116"}, {"last_update":"1171984640", "numofapproved":"1", "id":"129"}, {"last_update":"1171987101", "numofapproved":"1", "id":"130"}, {"last_update":"1172588327", "numofapproved":"1", "id":"213"}, {"last_update":"1173736730", "numofapproved":"1", "id":"306"}, {"last_update":"1174735009", "numofapproved":"1", "id":"463"}, {"last_update":"1172314484", "numofapproved":"1", "id":"192"}, {"last_update":"1172580739", "numofapproved":"1", "id":"212"}, {"last_update":"1173889335", "numofapproved":"1", "id":"328"}, {"last_update":"1171799339", "numofapproved":"1", "id":"79"}, {"last_update":"1171882669", "numofapproved":"1", "id":"91"}, {"last_update":"1172561300", "numofapproved":"1", "id":"207"}, {"last_update":"1172565919", "numofapproved":"1", "id":"209"}, {"last_update":"1172600401", "numofapproved":"1", "id":"217"}, {"last_update":"1174040553", "numofapproved":"1", "id":"350"}, {"last_update":"1174300376", "numofapproved":"1", "id":"365"}, {"last_update":"1171800419", "numofapproved":"1", "id":"84"}, {"last_update":"1171800471", "numofapproved":"1", "id":"87"}, {"last_update":"1171904826", "numofapproved":"1", "id":"102"}, {"last_update":"1171962248", "numofapproved":"1", "id":"110"}, {"last_update":"1171968056", "numofapproved":"1", "id":"117"}, {"last_update":"1172180757", "numofapproved":"1", "id":"174"}, {"last_update":"1172249286", "numofapproved":"1", "id":"186"}, {"last_update":"1172331355", "numofapproved":"1", "id":"194"}, {"last_update":"1172838799", "numofapproved":"1", "id":"235"}, {"last_update":"1173839361", "numofapproved":"1", "id":"316"}, {"last_update":"1176141087", "numofapproved":"1", "id":"809"}, {"last_update":"1176293168", "numofapproved":"1", "id":"827"}, {"last_update":"1176314927", "numofapproved":"1", "id":"887"}, {"last_update":"1172147490", "numofapproved":"1", "id":"169"}, {"last_update":"1172673371", "numofapproved":"1", "id":"225"}, {"last_update":"1175021309", "numofapproved":"1", "id":"539"}, {"last_update":"1175719394", "numofapproved":"1", "id":"708"}, {"last_update":"1175797177", "numofapproved":"1", "id":"741"}, {"last_update":"1175797204", "numofapproved":"1", "id":"761"}, {"last_update":"1173888948", "numofapproved":"1", "id":"323"}, {"last_update":"1171050355", "numofapproved":"1", "id":"1"}, {"last_update":"1171904868", "numofapproved":"1", "id":"104"}, {"last_update":"1174301476", "numofapproved":"1", "id":"392"}, {"last_update":"1174396679", "numofapproved":"1", "id":"401"}, {"last_update":"1174735025", "numofapproved":"1", "id":"464"}, {"last_update":"1171894147", "numofapproved":"1", "id":"94"}, {"last_update":"1172226240", "numofapproved":"1", "id":"181"}, {"last_update":"1172442130", "numofapproved":"1", "id":"195"}, {"last_update":"1174300588", "numofapproved":"1", "id":"370"}, {"last_update":"1174899082", "numofapproved":"1", "id":"490"}, {"last_update":"1174899309", "numofapproved":"1", "id":"501"}, {"last_update":"1173724444", "numofapproved":"1", "id":"304"}, {"last_update":"1176314883", "numofapproved":"1", "id":"886"}, {"last_update":"1173284377", "numofapproved":"1", "id":"259"}, {"last_update":"1172244974", "numofapproved":"1", "id":"184"}, {"last_update":"1173825356", "numofapproved":"1", "id":"315"}, {"last_update":"1174898980", "numofapproved":"1", "id":"485"}, {"last_update":"1175713133", "numofapproved":"1", "id":"706"}, {"last_update":"1175872869", "numofapproved":"1", "id":"784"}, {"last_update":"1174301161", "numofapproved":"1", "id":"380"}, {"last_update":"1176710519", "numofapproved":"1", "id":"1002"}, {"last_update":"1176776871", "numofapproved":"1", "id":"1006"}, {"last_update":"1176383102", "numofapproved":"1", "id":"901"}, {"last_update":"1176391153", "numofapproved":"1", "id":"902"}, {"last_update":"1176562039", "numofapproved":"1", "id":"946"}, {"last_update":"1175713172", "numofapproved":"1", "id":"668"}, {"last_update":"1178045208", "numofapproved":"1", "id":"1204"}, {"last_update":"1178648231", "numofapproved":"1", "id":"1307"}, {"last_update":"1178876638", "numofapproved":"1", "id":"1362"}, {"last_update":"1181120419", "numofapproved":"1", "id":"2341"}, {"last_update":"1181217997", "numofapproved":"1", "id":"2462"}, {"last_update":"1181292688", "numofapproved":"1", "id":"2622"}, {"last_update":"1182246090", "numofapproved":"1", "id":"3205"}, {"last_update":"1182982710", "numofapproved":"1", "id":"3681"}, {"last_update":"1177496084", "numofapproved":"1", "id":"1021"}, {"last_update":"1177496190", "numofapproved":"1", "id":"1022"}, {"last_update":"1178310654", "numofapproved":"1", "id":"1261"}, {"last_update":"1182861963", "numofapproved":"1", "id":"3582"}, {"last_update":"1183392466", "numofapproved":"1", "id":"3981"}, {"last_update":"1183971409", "numofapproved":"1", "id":"4404"}, {"last_update":"1183984082", "numofapproved":"1", "id":"4421"}, {"last_update":"1184101764", "numofapproved":"1", "id":"4581"}, {"last_update":"1185805036", "numofapproved":"1", "id":"5821"}, {"last_update":"1186071563", "numofapproved":"1", "id":"6061"}, {"last_update":"1186331614", "numofapproved":"1", "id":"6221"}, {"last_update":"1187103429", "numofapproved":"1", "id":"6623"}, {"last_update":"1187359405", "numofapproved":"1", "id":"6901"}, {"last_update":"1187764462", "numofapproved":"1", "id":"7121"}, {"last_update":"1187765742", "numofapproved":"1", "id":"7181"}, {"last_update":"1187821663", "numofapproved":"1", "id":"7281"}, {"last_update":"1187851593", "numofapproved":"1", "id":"7301"}, {"last_update":"1188829369", "numofapproved":"1", "id":"8141"}, {"last_update":"1189006834", "numofapproved":"1", "id":"8401"}, {"last_update":"1189656411", "numofapproved":"1", "id":"8901"}, {"last_update":"1181824325", "numofapproved":"1", "id":"2961"}, {"last_update":"1184699326", "numofapproved":"1", "id":"4922"}, {"last_update":"1185981618", "numofapproved":"1", "id":"5981"}, {"last_update":"1186476979", "numofapproved":"1", "id":"6169"}, {"last_update":"1186501212", "numofapproved":"1", "id":"6301"}, {"last_update":"1187111728", "numofapproved":"1", "id":"6624"}, {"last_update":"1187275194", "numofapproved":"1", "id":"6821"}, {"last_update":"1190232587", "numofapproved":"1", "id":"9501"}, {"last_update":"1190379779", "numofapproved":"1", "id":"9661"}, {"last_update":"1190500551", "numofapproved":"1", "id":"9801"}, {"last_update":"1190555711", "numofapproved":"1", "id":"9861"}, {"last_update":"1190664200", "numofapproved":"1", "id":"10061"}, {"last_update":"1190662067", "numofapproved":"1", "id":"10021"}, {"last_update":"1190887692", "numofapproved":"1", "id":"10461"}, {"last_update":"1190887880", "numofapproved":"1", "id":"10462"}, {"last_update":"1190924576", "numofapproved":"1", "id":"10581"}, {"last_update":"1190990748", "numofapproved":"1", "id":"10713"}, {"last_update":"1190990297", "numofapproved":"1", "id":"10703"}, {"last_update":"1182792178", "numofapproved":"1", "id":"3541"}, {"last_update":"1189505682", "numofapproved":"1", "id":"8781"}, {"last_update":"1191410630", "numofapproved":"1", "id":"11081"}, {"last_update":"1191431148", "numofapproved":"1", "id":"11141"}, {"last_update":"1191446393", "numofapproved":"1", "id":"11181"}, {"last_update":"1191559326", "numofapproved":"1", "id":"11481"}, {"last_update":"1191860159", "numofapproved":"1", "id":"11861"}, {"last_update":"1191933842", "numofapproved":"1", "id":"11901"}, {"last_update":"1181765760", "numofapproved":"1", "id":"2901"}, {"last_update":"1187098770", "numofapproved":"1", "id":"6622"}, {"last_update":"1192155125", "numofapproved":"1", "id":"12382"}, {"last_update":"1192449036", "numofapproved":"1", "id":"12601"}, {"last_update":"1192604489", "numofapproved":"1", "id":"12781"}, {"last_update":"1193265229", "numofapproved":"1", "id":"13681"}, {"last_update":"1193304550", "numofapproved":"1", "id":"13781"}, {"last_update":"1193401945", "numofapproved":"1", "id":"14101"}, {"last_update":"1193305327", "numofapproved":"1", "id":"13801"}, {"last_update":"1179912412", "numofapproved":"1", "id":"1722"}, {"last_update":"1188295203", "numofapproved":"1", "id":"7621"}, {"last_update":"1188580008", "numofapproved":"1", "id":"7881"}, {"last_update":"1189115708", "numofapproved":"1", "id":"8521"}, {"last_update":"1193864375", "numofapproved":"1", "id":"14522"}, {"last_update":"1193973963", "numofapproved":"1", "id":"14666"}, {"last_update":"1194003054", "numofapproved":"1", "id":"14701"}, {"last_update":"1194262755", "numofapproved":"1", "id":"14885"}, {"last_update":"1194262860", "numofapproved":"1", "id":"14886"}, {"last_update":"1194366475", "numofapproved":"1", "id":"15042"}, {"last_update":"1194505568", "numofapproved":"1", "id":"15108"}, {"last_update":"1194507434", "numofapproved":"1", "id":"15109"}, {"last_update":"1194625505", "numofapproved":"1", "id":"15542"}, {"last_update":"1194635569", "numofapproved":"1", "id":"15583"}, {"last_update":"1179319405", "numofapproved":"1", "id":"1394"}, {"last_update":"1179409867", "numofapproved":"1", "id":"1441"}, {"last_update":"1179431647", "numofapproved":"1", "id":"1481"}, {"last_update":"1179842302", "numofapproved":"1", "id":"1667"}, {"last_update":"1180710254", "numofapproved":"1", "id":"2081"}, {"last_update":"1181855583", "numofapproved":"1", "id":"3041"}, {"last_update":"1182100211", "numofapproved":"1", "id":"3182"}, {"last_update":"1183377220", "numofapproved":"1", "id":"3921"}, {"last_update":"1184677615", "numofapproved":"1", "id":"4910"}, {"last_update":"1184679060", "numofapproved":"1", "id":"4911"}, {"last_update":"1184679348", "numofapproved":"1", "id":"4912"}, {"last_update":"1184749371", "numofapproved":"1", "id":"4943"}, {"last_update":"1186734180", "numofapproved":"1", "id":"6381"}, {"last_update":"1187012463", "numofapproved":"1", "id":"6501"}, {"last_update":"1187209404", "numofapproved":"1", "id":"6741"}, {"last_update":"1192687257", "numofapproved":"1", "id":"12941"}, {"last_update":"1193385868", "numofapproved":"1", "id":"13942"}, {"last_update":"1193386346", "numofapproved":"1", "id":"13943"}, {"last_update":"1194937571", "numofapproved":"1", "id":"16042"}, {"last_update":"1194855975", "numofapproved":"1", "id":"15761"}, {"last_update":"1194960221", "numofapproved":"1", "id":"16161"}, {"last_update":"1184058679", "numofapproved":"1", "id":"4541"}, {"last_update":"1185865315", "numofapproved":"1", "id":"5842"}, {"last_update":"1187178780", "numofapproved":"1", "id":"6681"}, {"last_update":"1194884625", "numofapproved":"1", "id":"15921"}, {"last_update":"1195134032", "numofapproved":"1", "id":"16721"}, {"last_update":"1195164570", "numofapproved":"1", "id":"16901"}, {"last_update":"1182336429", "numofapproved":"1", "id":"3301"}, {"last_update":"1182415670", "numofapproved":"1", "id":"3353"}, {"last_update":"1184575801", "numofapproved":"1", "id":"4907"}, {"last_update":"1185483718", "numofapproved":"1", "id":"5601"}, {"last_update":"1186402874", "numofapproved":"1", "id":"6166"}, {"last_update":"1186750969", "numofapproved":"1", "id":"6383"}, {"last_update":"1192725360", "numofapproved":"1", "id":"13061"}, {"last_update":"1193314911", "numofapproved":"1", "id":"13822"}, {"last_update":"1183448275", "numofapproved":"1", "id":"4062"}, {"last_update":"1187321039", "numofapproved":"1", "id":"6861"}, {"last_update":"1188287578", "numofapproved":"1", "id":"7601"}, {"last_update":"1194464420", "numofapproved":"1", "id":"15224"}, {"last_update":"1195139641", "numofapproved":"1", "id":"16781"}, {"last_update":"1186147124", "numofapproved":"1", "id":"6107"}, {"last_update":"1188821750", "numofapproved":"1", "id":"8122"}, {"last_update":"1192531864", "numofapproved":"1", "id":"12665"}, {"last_update":"1192984220", "numofapproved":"1", "id":"13223"}, {"last_update":"1195225246", "numofapproved":"1", "id":"16982"}, {"last_update":"1182410787", "numofapproved":"1", "id":"3351"}, {"last_update":"1184531419", "numofapproved":"1", "id":"4901"}, {"last_update":"1188801472", "numofapproved":"1", "id":"8081"}, {"last_update":"1192524288", "numofapproved":"1", "id":"12661"}, {"last_update":"1180950691", "numofapproved":"1", "id":"2181"}, {"last_update":"1184016732", "numofapproved":"1", "id":"4501"}, {"last_update":"1186074085", "numofapproved":"1", "id":"6081"}, {"last_update":"1194937650", "numofapproved":"1", "id":"16043"}, {"last_update":"1182937178", "numofapproved":"1", "id":"3623"}, {"last_update":"1191419601", "numofapproved":"1", "id":"11101"}, {"last_update":"1191856562", "numofapproved":"1", "id":"11843"}, {"last_update":"1192525042", "numofapproved":"1", "id":"12681"}, {"last_update":"1194625494", "numofapproved":"1", "id":"15541"}, {"last_update":"1194982850", "numofapproved":"1", "id":"16361"}, {"last_update":"1194989219", "numofapproved":"1", "id":"16401"}, {"last_update":"1195066723", "numofapproved":"1", "id":"16641"}, {"last_update":"1183971226", "numofapproved":"1", "id":"4403"}, {"last_update":"1185526866", "numofapproved":"1", "id":"5661"}, {"last_update":"1185741495", "numofapproved":"1", "id":"5741"}, {"last_update":"1185905429", "numofapproved":"1", "id":"5881"}, {"last_update":"1186137969", "numofapproved":"1", "id":"6104"}, {"last_update":"1189267536", "numofapproved":"1", "id":"8701"}, {"last_update":"1190115042", "numofapproved":"1", "id":"9261"}, {"last_update":"1190664258", "numofapproved":"1", "id":"10062"}, {"last_update":"1190774949", "numofapproved":"1", "id":"10201"}, {"last_update":"1190965042", "numofapproved":"1", "id":"10641"}, {"last_update":"1191493379", "numofapproved":"1", "id":"11301"}, {"last_update":"1191578051", "numofapproved":"1", "id":"11501"}, {"last_update":"1192188840", "numofapproved":"1", "id":"12421"}, {"last_update":"1194000252", "numofapproved":"1", "id":"14682"}, {"last_update":"1194622556", "numofapproved":"1", "id":"15462"}, {"last_update":"1194981068", "numofapproved":"1", "id":"16341"}, {"last_update":"1185795733", "numofapproved":"1", "id":"5782"}, {"last_update":"1186646854", "numofapproved":"1", "id":"6341"}, {"last_update":"1187087291", "numofapproved":"1", "id":"6621"}, {"last_update":"1187951800", "numofapproved":"1", "id":"7401"}, {"last_update":"1189170373", "numofapproved":"1", "id":"8642"}, {"last_update":"1191007934", "numofapproved":"1", "id":"10781"}, {"last_update":"1190985695", "numofapproved":"1", "id":"10681"}, {"last_update":"1192009758", "numofapproved":"1", "id":"12063"}, {"last_update":"1193062543", "numofapproved":"1", "id":"13321"}, {"last_update":"1194950304", "numofapproved":"1", "id":"16123"}, {"last_update":"1171882085", "numofapproved":"1", "id":"90"}, {"last_update":"1171962264", "numofapproved":"1", "id":"111"}, {"last_update":"1172646556", "numofapproved":"1", "id":"219"}, {"last_update":"1174040139", "numofapproved":"1", "id":"349"}, {"last_update":"1174059263", "numofapproved":"1", "id":"355"}, {"last_update":"1174899063", "numofapproved":"1", "id":"489"}, {"last_update":"1173797557", "numofapproved":"1", "id":"310"}, {"last_update":"1174735191", "numofapproved":"1", "id":"468"}, {"last_update":"1174899259", "numofapproved":"1", "id":"499"}, {"last_update":"1174899354", "numofapproved":"1", "id":"502"}, {"last_update":"1175254120", "numofapproved":"1", "id":"562"}, {"last_update":"1171126391", "numofapproved":"1", "id":"4"}, {"last_update":"1171800381", "numofapproved":"1", "id":"82"}, {"last_update":"1171799224", "numofapproved":"1", "id":"75"}, {"last_update":"1171972550", "numofapproved":"1", "id":"123"}, {"last_update":"1174301165", "numofapproved":"1", "id":"381"}, {"last_update":"1171904847", "numofapproved":"1", "id":"103"}, {"last_update":"1172260956", "numofapproved":"1", "id":"190"}, {"last_update":"1172803368", "numofapproved":"1", "id":"234"}, {"last_update":"1173199576", "numofapproved":"1", "id":"250"}, {"last_update":"1173206201", "numofapproved":"1", "id":"252"}, {"last_update":"1175258941", "numofapproved":"1", "id":"563"}, {"last_update":"1176232231", "numofapproved":"1", "id":"825"}, {"last_update":"1176475088", "numofapproved":"1", "id":"921"}, {"last_update":"1172082181", "numofapproved":"1", "id":"166"}, {"last_update":"1172595205", "numofapproved":"1", "id":"216"}, {"last_update":"1174898892", "numofapproved":"1", "id":"481"}, {"last_update":"1174899696", "numofapproved":"1", "id":"518"}, {"last_update":"1174924777", "numofapproved":"1", "id":"525"}, {"last_update":"1175598588", "numofapproved":"1", "id":"682"}, {"last_update":"1175602572", "numofapproved":"1", "id":"683"}, {"last_update":"1175707879", "numofapproved":"1", "id":"666"}, {"last_update":"1175710528", "numofapproved":"1", "id":"703"}, {"last_update":"1175715728", "numofapproved":"1", "id":"707"}, {"last_update":"1176137267", "numofapproved":"1", "id":"806"}, {"last_update":"1176306491", "numofapproved":"1", "id":"883"}, {"last_update":"1172069972", "numofapproved":"1", "id":"134"}, {"last_update":"1173889144", "numofapproved":"1", "id":"324"}, {"last_update":"1175502804", "numofapproved":"1", "id":"623"}, {"last_update":"1175772530", "numofapproved":"1", "id":"711"}, {"last_update":"1176297526", "numofapproved":"1", "id":"861"}, {"last_update":"1171445818", "numofapproved":"1", "id":"47"}, {"last_update":"1171884505", "numofapproved":"1", "id":"92"}, {"last_update":"1172250708", "numofapproved":"1", "id":"187"}, {"last_update":"1173749631", "numofapproved":"1", "id":"307"}, {"last_update":"1173889164", "numofapproved":"1", "id":"325"}, {"last_update":"1174301168", "numofapproved":"1", "id":"382"}, {"last_update":"1171904807", "numofapproved":"1", "id":"101"}, {"last_update":"1171970405", "numofapproved":"1", "id":"120"}, {"last_update":"1172218677", "numofapproved":"1", "id":"179"}, {"last_update":"1173125028", "numofapproved":"1", "id":"248"}, {"last_update":"1171978122", "numofapproved":"1", "id":"126"}, {"last_update":"1172676736", "numofapproved":"1", "id":"226"}, {"last_update":"1173975473", "numofapproved":"1", "id":"344"}, {"last_update":"1172072582", "numofapproved":"1", "id":"165"}, {"last_update":"1173888774", "numofapproved":"1", "id":"322"}, {"last_update":"1174560347", "numofapproved":"1", "id":"422"}, {"last_update":"1174899242", "numofapproved":"1", "id":"498"}, {"last_update":"1174735110", "numofapproved":"1", "id":"466"}, {"last_update":"1176735630", "numofapproved":"1", "id":"1004"}, {"last_update":"1175725931", "numofapproved":"1", "id":"670"}, {"last_update":"1176498072", "numofapproved":"1", "id":"944"}, {"last_update":"1178264233", "numofapproved":"1", "id":"1241"}, {"last_update":"1178746727", "numofapproved":"1", "id":"1350"}, {"last_update":"1178798992", "numofapproved":"1", "id":"1352"}, {"last_update":"1180011647", "numofapproved":"1", "id":"1649"}, {"last_update":"1180430823", "numofapproved":"1", "id":"1901"}, {"last_update":"1180649952", "numofapproved":"1", "id":"2021"}, {"last_update":"1180966506", "numofapproved":"1", "id":"2183"}, {"last_update":"1180987142", "numofapproved":"1", "id":"2241"}, {"last_update":"1181127788", "numofapproved":"1", "id":"2322"}, {"last_update":"1181217668", "numofapproved":"1", "id":"2461"}, {"last_update":"1182789542", "numofapproved":"1", "id":"3522"}, {"last_update":"1182851714", "numofapproved":"1", "id":"3581"}, {"last_update":"1179268837", "numofapproved":"1", "id":"1407"}, {"last_update":"1179999486", "numofapproved":"1", "id":"1645"}, {"last_update":"1180019568", "numofapproved":"1", "id":"1653"}, {"last_update":"1180082061", "numofapproved":"1", "id":"1821"}, {"last_update":"1184181871", "numofapproved":"1", "id":"4642"}, {"last_update":"1184251955", "numofapproved":"1", "id":"4741"}, {"last_update":"1184346893", "numofapproved":"1", "id":"4841"}, {"last_update":"1184773981", "numofapproved":"1", "id":"5001"}, {"last_update":"1185272905", "numofapproved":"1", "id":"5281"}, {"last_update":"1185484083", "numofapproved":"1", "id":"5622"}, {"last_update":"1185897961", "numofapproved":"1", "id":"5861"}, {"last_update":"1186951708", "numofapproved":"1", "id":"6462"}, {"last_update":"1187596311", "numofapproved":"1", "id":"6941"}, {"last_update":"1187766852", "numofapproved":"1", "id":"7201"}, {"last_update":"1188158133", "numofapproved":"1", "id":"7481"}, {"last_update":"1188233835", "numofapproved":"1", "id":"7501"}, {"last_update":"1188269273", "numofapproved":"1", "id":"7561"}, {"last_update":"1177672684", "numofapproved":"1", "id":"1141"}, {"last_update":"1178042016", "numofapproved":"1", "id":"1222"}, {"last_update":"1181646022", "numofapproved":"1", "id":"2801"}, {"last_update":"1181853920", "numofapproved":"1", "id":"3021"}, {"last_update":"1183715836", "numofapproved":"1", "id":"4241"}, {"last_update":"1183726859", "numofapproved":"1", "id":"4281"}, {"last_update":"1189860355", "numofapproved":"1", "id":"9101"}, {"last_update":"1189871747", "numofapproved":"1", "id":"9141"}, {"last_update":"1190380660", "numofapproved":"1", "id":"9681"}, {"last_update":"1190510808", "numofapproved":"1", "id":"9821"}, {"last_update":"1190542013", "numofapproved":"1", "id":"9843"}, {"last_update":"1190665412", "numofapproved":"1", "id":"10081"}, {"last_update":"1190299519", "numofapproved":"1", "id":"9601"}, {"last_update":"1191410594", "numofapproved":"1", "id":"11063"}, {"last_update":"1191505786", "numofapproved":"1", "id":"11341"}, {"last_update":"1191583652", "numofapproved":"1", "id":"11522"}, {"last_update":"1191599712", "numofapproved":"1", "id":"11681"}, {"last_update":"1191602931", "numofapproved":"1", "id":"11721"}, {"last_update":"1191762572", "numofapproved":"1", "id":"11761"}, {"last_update":"1191856256", "numofapproved":"1", "id":"11841"}, {"last_update":"1191937041", "numofapproved":"1", "id":"11921"}, {"last_update":"1179325639", "numofapproved":"1", "id":"1409"}, {"last_update":"1179912165", "numofapproved":"1", "id":"1721"}, {"last_update":"1181119430", "numofapproved":"1", "id":"2321"}, {"last_update":"1184696743", "numofapproved":"1", "id":"4921"}, {"last_update":"1192154847", "numofapproved":"1", "id":"12361"}, {"last_update":"1192237071", "numofapproved":"1", "id":"12501"}, {"last_update":"1178637394", "numofapproved":"1", "id":"1304"}, {"last_update":"1178716778", "numofapproved":"1", "id":"1344"}, {"last_update":"1182937057", "numofapproved":"1", "id":"3622"}, {"last_update":"1183113642", "numofapproved":"1", "id":"3781"}, {"last_update":"1183995467", "numofapproved":"1", "id":"4461"}, {"last_update":"1184223331", "numofapproved":"1", "id":"4721"}, {"last_update":"1190990692", "numofapproved":"1", "id":"10711"}, {"last_update":"1193269310", "numofapproved":"1", "id":"13761"}, {"last_update":"1193735756", "numofapproved":"1", "id":"14441"}, {"last_update":"1194635738", "numofapproved":"1", "id":"15603"}, {"last_update":"1194901721", "numofapproved":"1", "id":"15961"}, {"last_update":"1194949951", "numofapproved":"1", "id":"16141"}, {"last_update":"1194960695", "numofapproved":"1", "id":"16182"}, {"last_update":"1194973974", "numofapproved":"1", "id":"16221"}, {"last_update":"1194946810", "numofapproved":"1", "id":"16102"}, {"last_update":"1194977452", "numofapproved":"1", "id":"16261"}, {"last_update":"1195040385", "numofapproved":"1", "id":"16461"}, {"last_update":"1195053483", "numofapproved":"1", "id":"16561"}, {"last_update":"1195053518", "numofapproved":"1", "id":"16562"}, {"last_update":"1195218698", "numofapproved":"1", "id":"16921"}, {"last_update":"1195225049", "numofapproved":"1", "id":"16961"}, {"last_update":"1195164270", "numofapproved":"1", "id":"16881"}, {"last_update":"1195080947", "numofapproved":"1", "id":"16681"}, {"last_update":"1195469884", "numofapproved":"1", "id":"17181"}, {"last_update":"1185314804", "numofapproved":"1", "id":"5381"}, {"last_update":"1188401767", "numofapproved":"1", "id":"7721"}, {"last_update":"1190286841", "numofapproved":"1", "id":"9582"}, {"last_update":"1190733096", "numofapproved":"1", "id":"10141"}, {"last_update":"1190847451", "numofapproved":"1", "id":"10422"}, {"last_update":"1190990526", "numofapproved":"1", "id":"10707"}, {"last_update":"1192009711", "numofapproved":"1", "id":"12061"}, {"last_update":"1192155478", "numofapproved":"1", "id":"12362"}, {"last_update":"1192468382", "numofapproved":"1", "id":"12641"}, {"last_update":"1193332032", "numofapproved":"1", "id":"13881"}, {"last_update":"1195497290", "numofapproved":"1", "id":"17321"}, {"last_update":"1195519935", "numofapproved":"1", "id":"17441"}, {"last_update":"1195549826", "numofapproved":"1", "id":"17521"}, {"last_update":"1177668131", "numofapproved":"1", "id":"1101"}, {"last_update":"1186835348", "numofapproved":"1", "id":"6421"}, {"last_update":"1191057903", "numofapproved":"1", "id":"10802"}, {"last_update":"1193973906", "numofapproved":"1", "id":"14665"}, {"last_update":"1171904780", "numofapproved":"1", "id":"100"}, {"last_update":"1172677750", "numofapproved":"1", "id":"227"}, {"last_update":"1172686704", "numofapproved":"1", "id":"229"}, {"last_update":"1173101684", "numofapproved":"1", "id":"245"}, {"last_update":"1173466151", "numofapproved":"1", "id":"282"}, {"last_update":"1174301263", "numofapproved":"1", "id":"386"}, {"last_update":"1174302366", "numofapproved":"1", "id":"399"}, {"last_update":"1174501294", "numofapproved":"1", "id":"421"}, {"last_update":"1174899635", "numofapproved":"1", "id":"515"}, {"last_update":"1174924556", "numofapproved":"1", "id":"523"}, {"last_update":"1175141200", "numofapproved":"1", "id":"541"}, {"last_update":"1171799271", "numofapproved":"1", "id":"76"}, {"last_update":"1171900163", "numofapproved":"1", "id":"97"}, {"last_update":"1174301267", "numofapproved":"1", "id":"387"}, {"last_update":"1174735156", "numofapproved":"1", "id":"467"}, {"last_update":"1174899569", "numofapproved":"1", "id":"512"}, {"last_update":"1174926970", "numofapproved":"1", "id":"531"}, {"last_update":"1175502757", "numofapproved":"1", "id":"602"}, {"last_update":"1175603425", "numofapproved":"1", "id":"663"}, {"last_update":"1176194967", "numofapproved":"1", "id":"822"}, {"last_update":"1171800398", "numofapproved":"1", "id":"83"}, {"last_update":"1171968376", "numofapproved":"1", "id":"118"}, {"last_update":"1172070063", "numofapproved":"1", "id":"135"}, {"last_update":"1173821159", "numofapproved":"1", "id":"314"}, {"last_update":"1176559052", "numofapproved":"1", "id":"964"}, {"last_update":"1171299245", "numofapproved":"1", "id":"23"}, {"last_update":"1171535160", "numofapproved":"1", "id":"57"}, {"last_update":"1171564542", "numofapproved":"1", "id":"65"}, {"last_update":"1172646592", "numofapproved":"1", "id":"220"}, {"last_update":"1174899489", "numofapproved":"1", "id":"507"}, {"last_update":"1174924890", "numofapproved":"1", "id":"528"}, {"last_update":"1175687005", "numofapproved":"1", "id":"701"}, {"last_update":"1176132888", "numofapproved":"1", "id":"805"}, {"last_update":"1171286610", "numofapproved":"1", "id":"21"}, {"last_update":"1172184441", "numofapproved":"1", "id":"176"}, {"last_update":"1172187221", "numofapproved":"1", "id":"178"}, {"last_update":"1173386668", "numofapproved":"1", "id":"261"}, {"last_update":"1173809115", "numofapproved":"1", "id":"312"}, {"last_update":"1175609126", "numofapproved":"1", "id":"685"}, {"last_update":"1175791369", "numofapproved":"1", "id":"712"}, {"last_update":"1176480434", "numofapproved":"1", "id":"942"}, {"last_update":"1171503567", "numofapproved":"1", "id":"56"}, {"last_update":"1171799204", "numofapproved":"1", "id":"74"}, {"last_update":"1172236765", "numofapproved":"1", "id":"183"}, {"last_update":"1175598013", "numofapproved":"1", "id":"681"}, {"last_update":"1175610956", "numofapproved":"1", "id":"687"}, {"last_update":"1175725436", "numofapproved":"1", "id":"710"}, {"last_update":"1171905052", "numofapproved":"1", "id":"105"}, {"last_update":"1172268920", "numofapproved":"1", "id":"191"}, {"last_update":"1173264110", "numofapproved":"1", "id":"256"}, {"last_update":"1173889179", "numofapproved":"1", "id":"326"}, {"last_update":"1174301066", "numofapproved":"1", "id":"378"}, {"last_update":"1174300399", "numofapproved":"1", "id":"366"}, {"last_update":"1174387980", "numofapproved":"1", "id":"400"}, {"last_update":"1176823766", "numofapproved":"1", "id":"1007"}, {"last_update":"1171970585", "numofapproved":"1", "id":"122"}, {"last_update":"1172071500", "numofapproved":"1", "id":"145"}, {"last_update":"1172580279", "numofapproved":"1", "id":"211"}, {"last_update":"1172658493", "numofapproved":"1", "id":"221"}, {"last_update":"1174301611", "numofapproved":"1", "id":"397"}, {"last_update":"1176900132", "numofapproved":"1", "id":"989"}, {"last_update":"1171965754", "numofapproved":"1", "id":"114"}, {"last_update":"1173797482", "numofapproved":"1", "id":"309"}, {"last_update":"1174300513", "numofapproved":"1", "id":"367"}, {"last_update":"1174301493", "numofapproved":"1", "id":"395"}, {"last_update":"1174899124", "numofapproved":"1", "id":"492"}, {"last_update":"1174899677", "numofapproved":"1", "id":"517"}, {"last_update":"1174924235", "numofapproved":"1", "id":"522"}, {"last_update":"1174925568", "numofapproved":"1", "id":"529"}, {"last_update":"1174933088", "numofapproved":"1", "id":"533"}, {"last_update":"1174933338", "numofapproved":"1", "id":"538"}, {"last_update":"1174044629", "numofapproved":"1", "id":"352"}, {"last_update":"1175713207", "numofapproved":"1", "id":"669"}, {"last_update":"1178339569", "numofapproved":"1", "id":"1262"}, {"last_update":"1178611427", "numofapproved":"1", "id":"1303"}, {"last_update":"1178707269", "numofapproved":"1", "id":"1341"}, {"last_update":"1179411388", "numofapproved":"1", "id":"1461"}, {"last_update":"1180000879", "numofapproved":"1", "id":"1648"}, {"last_update":"1180097993", "numofapproved":"1", "id":"1657"}, {"last_update":"1180107947", "numofapproved":"1", "id":"1659"}, {"last_update":"1180515935", "numofapproved":"1", "id":"1922"}, {"last_update":"1180712418", "numofapproved":"1", "id":"2102"}, {"last_update":"1180731895", "numofapproved":"1", "id":"2063"}, {"last_update":"1180731763", "numofapproved":"1", "id":"2143"}, {"last_update":"1180951519", "numofapproved":"1", "id":"2201"}, {"last_update":"1180954763", "numofapproved":"1", "id":"2182"}, {"last_update":"1181134185", "numofapproved":"1", "id":"2361"}, {"last_update":"1181206368", "numofapproved":"1", "id":"2441"}, {"last_update":"1181207556", "numofapproved":"1", "id":"2442"}, {"last_update":"1183065868", "numofapproved":"1", "id":"3741"}, {"last_update":"1183124436", "numofapproved":"1", "id":"3822"}, {"last_update":"1183118631", "numofapproved":"1", "id":"3802"}, {"last_update":"1183515629", "numofapproved":"1", "id":"4144"}, {"last_update":"1184169495", "numofapproved":"1", "id":"4621"}, {"last_update":"1184777700", "numofapproved":"1", "id":"5021"}, {"last_update":"1185371099", "numofapproved":"1", "id":"5441"}, {"last_update":"1185460060", "numofapproved":"1", "id":"5521"}, {"last_update":"1185462514", "numofapproved":"1", "id":"5541"}, {"last_update":"1185573050", "numofapproved":"1", "id":"5721"}, {"last_update":"1185795586", "numofapproved":"1", "id":"5781"}, {"last_update":"1185962181", "numofapproved":"1", "id":"5901"}, {"last_update":"1185987024", "numofapproved":"1", "id":"6001"}, {"last_update":"1186138150", "numofapproved":"1", "id":"6105"}, {"last_update":"1186500528", "numofapproved":"1", "id":"6281"}, {"last_update":"1187765075", "numofapproved":"1", "id":"7141"}, {"last_update":"1188158263", "numofapproved":"1", "id":"7482"}, {"last_update":"1189094579", "numofapproved":"1", "id":"8461"}, {"last_update":"1189327635", "numofapproved":"1", "id":"8721"}, {"last_update":"1182356521", "numofapproved":"1", "id":"3344"}, {"last_update":"1185017921", "numofapproved":"1", "id":"5161"}, {"last_update":"1185271167", "numofapproved":"1", "id":"5261"}, {"last_update":"1190663796", "numofapproved":"1", "id":"10041"}, {"last_update":"1190726728", "numofapproved":"1", "id":"10121"}, {"last_update":"1190801144", "numofapproved":"1", "id":"10241"}, {"last_update":"1190894441", "numofapproved":"1", "id":"10502"}, {"last_update":"1190973098", "numofapproved":"1", "id":"10667"}, {"last_update":"1190925124", "numofapproved":"1", "id":"10584"}, {"last_update":"1191249884", "numofapproved":"1", "id":"10961"}, {"last_update":"1187732431", "numofapproved":"1", "id":"7081"}, {"last_update":"1189259179", "numofapproved":"1", "id":"8681"}, {"last_update":"1191446517", "numofapproved":"1", "id":"11183"}, {"last_update":"1191510643", "numofapproved":"1", "id":"11381"}, {"last_update":"1191529640", "numofapproved":"1", "id":"11421"}, {"last_update":"1191588726", "numofapproved":"1", "id":"11602"}, {"last_update":"1191903050", "numofapproved":"1", "id":"11881"}, {"last_update":"1181218459", "numofapproved":"1", "id":"2464"}, {"last_update":"1187024536", "numofapproved":"1", "id":"6581"}, {"last_update":"1192009094", "numofapproved":"1", "id":"12041"}, {"last_update":"1192064048", "numofapproved":"1", "id":"12183"}, {"last_update":"1192061973", "numofapproved":"1", "id":"12181"}, {"last_update":"1193026780", "numofapproved":"1", "id":"13241"}, {"last_update":"1193416409", "numofapproved":"1", "id":"14161"}, {"last_update":"1186992495", "numofapproved":"1", "id":"6481"}, {"last_update":"1191410811", "numofapproved":"1", "id":"11066"}, {"last_update":"1193440748", "numofapproved":"1", "id":"14241"}, {"last_update":"1194252005", "numofapproved":"1", "id":"14884"}, {"last_update":"1194362364", "numofapproved":"1", "id":"14889"}, {"last_update":"1179240103", "numofapproved":"1", "id":"1389"}, {"last_update":"1181812262", "numofapproved":"1", "id":"2922"}, {"last_update":"1182093916", "numofapproved":"1", "id":"3181"}, {"last_update":"1182767688", "numofapproved":"1", "id":"3501"}, {"last_update":"1184181747", "numofapproved":"1", "id":"4661"}, {"last_update":"1186505570", "numofapproved":"1", "id":"6170"}, {"last_update":"1186751068", "numofapproved":"1", "id":"6384"}, {"last_update":"1187558925", "numofapproved":"1", "id":"6921"}, {"last_update":"1188037477", "numofapproved":"1", "id":"7424"}, {"last_update":"1194937530", "numofapproved":"1", "id":"16041"}, {"last_update":"1179754250", "numofapproved":"1", "id":"1562"}, {"last_update":"1183416194", "numofapproved":"1", "id":"4021"}, {"last_update":"1185835616", "numofapproved":"1", "id":"5841"}, {"last_update":"1192731190", "numofapproved":"1", "id":"13141"}, {"last_update":"1193178120", "numofapproved":"1", "id":"13523"}, {"last_update":"1193844805", "numofapproved":"1", "id":"14503"}, {"last_update":"1193909242", "numofapproved":"1", "id":"14525"}, {"last_update":"1195474767", "numofapproved":"1", "id":"17221"}, {"last_update":"1177690781", "numofapproved":"1", "id":"1142"}, {"last_update":"1185373614", "numofapproved":"1", "id":"5461"}, {"last_update":"1192520088", "numofapproved":"1", "id":"12624"}, {"last_update":"1193194444", "numofapproved":"1", "id":"13527"}, {"last_update":"1193387684", "numofapproved":"1", "id":"13950"}, {"last_update":"1193388786", "numofapproved":"1", "id":"13952"}, {"last_update":"1194616895", "numofapproved":"1", "id":"15401"}, {"last_update":"1195034817", "numofapproved":"1", "id":"16441"}, {"last_update":"1183107374", "numofapproved":"1", "id":"3761"}, {"last_update":"1183515040", "numofapproved":"1", "id":"4121"}, {"last_update":"1184744160", "numofapproved":"1", "id":"4942"}, {"last_update":"1192094830", "numofapproved":"1", "id":"12201"}, {"last_update":"1193314411", "numofapproved":"1", "id":"13821"}, {"last_update":"1193391901", "numofapproved":"1", "id":"13957"}, {"last_update":"1193399824", "numofapproved":"1", "id":"14043"}, {"last_update":"1194450353", "numofapproved":"1", "id":"15181"}, {"last_update":"1194474719", "numofapproved":"1", "id":"15241"}, {"last_update":"1194622799", "numofapproved":"1", "id":"15481"}, {"last_update":"1194880827", "numofapproved":"1", "id":"15901"}, {"last_update":"1182363929", "numofapproved":"1", "id":"3347"}, {"last_update":"1182952243", "numofapproved":"1", "id":"3642"}, {"last_update":"1183386876", "numofapproved":"1", "id":"3962"}, {"last_update":"1193178314", "numofapproved":"1", "id":"13524"}, {"last_update":"1195376577", "numofapproved":"1", "id":"17061"}, {"last_update":"1179832847", "numofapproved":"1", "id":"1621"}, {"last_update":"1184053269", "numofapproved":"1", "id":"4521"}, {"last_update":"1185024744", "numofapproved":"1", "id":"5181"}, {"last_update":"1186130324", "numofapproved":"1", "id":"6101"}, {"last_update":"1192529640", "numofapproved":"1", "id":"12662"}, {"last_update":"1193158482", "numofapproved":"1", "id":"13521"}, {"last_update":"1194247788", "numofapproved":"1", "id":"14883"}, {"last_update":"1182363717", "numofapproved":"1", "id":"3346"}, {"last_update":"1193386824", "numofapproved":"1", "id":"13944"}, {"last_update":"1193844655", "numofapproved":"1", "id":"14502"}, {"last_update":"1180732326", "numofapproved":"1", "id":"2064"}, {"last_update":"1182247493", "numofapproved":"1", "id":"3222"}, {"last_update":"1183515318", "numofapproved":"1", "id":"4143"}, {"last_update":"1184840285", "numofapproved":"1", "id":"5061"}, {"last_update":"1188458821", "numofapproved":"1", "id":"7741"}, {"last_update":"1188919582", "numofapproved":"1", "id":"8241"}, {"last_update":"1190990231", "numofapproved":"1", "id":"10701"}, {"last_update":"1190990557", "numofapproved":"1", "id":"10708"}, {"last_update":"1191583611", "numofapproved":"1", "id":"11521"}, {"last_update":"1192031263", "numofapproved":"1", "id":"12102"}, {"last_update":"1192431349", "numofapproved":"1", "id":"12563"}, {"last_update":"1192608972", "numofapproved":"1", "id":"12801"}, {"last_update":"1193244196", "numofapproved":"1", "id":"13641"}, {"last_update":"1193733530", "numofapproved":"1", "id":"14422"}, {"last_update":"1194988770", "numofapproved":"1", "id":"16381"}, {"last_update":"1195050890", "numofapproved":"1", "id":"16541"}, {"last_update":"1195047262", "numofapproved":"1", "id":"16502"}, {"last_update":"1195221672", "numofapproved":"1", "id":"16941"}, {"last_update":"1195400016", "numofapproved":"1", "id":"17103"}, {"last_update":"1178716622", "numofapproved":"1", "id":"1343"}, {"last_update":"1183563126", "numofapproved":"1", "id":"4181"}, {"last_update":"1183970953", "numofapproved":"1", "id":"4402"}, {"last_update":"1190149151", "numofapproved":"1", "id":"9381"}, {"last_update":"1190628937", "numofapproved":"1", "id":"9921"}, {"last_update":"1190908511", "numofapproved":"1", "id":"10521"}, {"last_update":"1191365468", "numofapproved":"1", "id":"11021"}, {"last_update":"1192431054", "numofapproved":"1", "id":"12561"}, {"last_update":"1188938163", "numofapproved":"1", "id":"8281"}, {"last_update":"1192155298", "numofapproved":"1", "id":"12383"}, {"last_update":"1193223714", "numofapproved":"1", "id":"13561"}, {"last_update":"1171799359", "numofapproved":"1", "id":"80"}, {"last_update":"1171962550", "numofapproved":"1", "id":"112"}, {"last_update":"1171965210", "numofapproved":"1", "id":"113"}, {"last_update":"1171980888", "numofapproved":"1", "id":"128"}, {"last_update":"1174299174", "numofapproved":"1", "id":"361"}, {"last_update":"1174301053", "numofapproved":"1", "id":"376"}, {"last_update":"1174899661", "numofapproved":"1", "id":"516"}, {"last_update":"1172646493", "numofapproved":"1", "id":"218"}, {"last_update":"1174899018", "numofapproved":"1", "id":"487"}, {"last_update":"1175091201", "numofapproved":"1", "id":"540"}, {"last_update":"1175267243", "numofapproved":"1", "id":"564"}, {"last_update":"1176293117", "numofapproved":"1", "id":"826"}, {"last_update":"1171602873", "numofapproved":"1", "id":"67"}, {"last_update":"1172568714", "numofapproved":"1", "id":"210"}, {"last_update":"1174300556", "numofapproved":"1", "id":"369"}, {"last_update":"1174301614", "numofapproved":"1", "id":"398"}, {"last_update":"1174429050", "numofapproved":"1", "id":"404"}, {"last_update":"1175547821", "numofapproved":"1", "id":"641"}, {"last_update":"1175696551", "numofapproved":"1", "id":"702"}, {"last_update":"1176223342", "numofapproved":"1", "id":"823"}, {"last_update":"1176459077", "numofapproved":"1", "id":"905"}, {"last_update":"1172169117", "numofapproved":"1", "id":"172"}, {"last_update":"1172259821", "numofapproved":"1", "id":"189"}, {"last_update":"1172847347", "numofapproved":"1", "id":"237"}, {"last_update":"1176485274", "numofapproved":"1", "id":"961"}, {"last_update":"1176739199", "numofapproved":"1", "id":"983"}, {"last_update":"1171710108", "numofapproved":"1", "id":"72"}, {"last_update":"1172147854", "numofapproved":"1", "id":"170"}, {"last_update":"1172178657", "numofapproved":"1", "id":"173"}, {"last_update":"1174933210", "numofapproved":"1", "id":"535"}, {"last_update":"1175502973", "numofapproved":"1", "id":"626"}, {"last_update":"1172071610", "numofapproved":"1", "id":"146"}, {"last_update":"1172847402", "numofapproved":"1", "id":"240"}, {"last_update":"1173282970", "numofapproved":"1", "id":"258"}, {"last_update":"1175502729", "numofapproved":"1", "id":"621"}, {"last_update":"1173889203", "numofapproved":"1", "id":"327"}, {"last_update":"1174301604", "numofapproved":"1", "id":"396"}, {"last_update":"1176738556", "numofapproved":"1", "id":"1005"}, {"last_update":"1171287066", "numofapproved":"1", "id":"22"}, {"last_update":"1171388951", "numofapproved":"1", "id":"46"}, {"last_update":"1171645099", "numofapproved":"1", "id":"70"}, {"last_update":"1174301489", "numofapproved":"1", "id":"394"}, {"last_update":"1176109438", "numofapproved":"1", "id":"804"}, {"last_update":"1173203622", "numofapproved":"1", "id":"251"}, {"last_update":"1174300337", "numofapproved":"1", "id":"364"}, {"last_update":"1174898999", "numofapproved":"1", "id":"486"}, {"last_update":"1174899221", "numofapproved":"1", "id":"497"}, {"last_update":"1174899505", "numofapproved":"1", "id":"508"}, {"last_update":"1171905996", "numofapproved":"1", "id":"106"}, {"last_update":"1172003938", "numofapproved":"1", "id":"131"}, {"last_update":"1172134183", "numofapproved":"1", "id":"167"}, {"last_update":"1178550080", "numofapproved":"1", "id":"1301"}, {"last_update":"1178718229", "numofapproved":"1", "id":"1346"}, {"last_update":"1178725187", "numofapproved":"1", "id":"1322"}, {"last_update":"1179302219", "numofapproved":"1", "id":"1392"}, {"last_update":"1180015260", "numofapproved":"1", "id":"1650"}, {"last_update":"1180088452", "numofapproved":"1", "id":"1656"}, {"last_update":"1180719498", "numofapproved":"1", "id":"2121"}, {"last_update":"1180731930", "numofapproved":"1", "id":"2145"}, {"last_update":"1180731601", "numofapproved":"1", "id":"2142"}, {"last_update":"1181034337", "numofapproved":"1", "id":"2281"}, {"last_update":"1181222113", "numofapproved":"1", "id":"2501"}, {"last_update":"1181254636", "numofapproved":"1", "id":"2601"}, {"last_update":"1181578682", "numofapproved":"1", "id":"2762"}, {"last_update":"1181731051", "numofapproved":"1", "id":"2881"}, {"last_update":"1177673345", "numofapproved":"1", "id":"1162"}, {"last_update":"1183741680", "numofapproved":"1", "id":"4301"}, {"last_update":"1183988623", "numofapproved":"1", "id":"4441"}, {"last_update":"1184217947", "numofapproved":"1", "id":"4701"}, {"last_update":"1186260146", "numofapproved":"1", "id":"6181"}, {"last_update":"1186289860", "numofapproved":"1", "id":"6163"}, {"last_update":"1186235477", "numofapproved":"1", "id":"6161"}, {"last_update":"1186508996", "numofapproved":"1", "id":"6171"}, {"last_update":"1187626570", "numofapproved":"1", "id":"6961"}, {"last_update":"1187713755", "numofapproved":"1", "id":"7041"}, {"last_update":"1187769208", "numofapproved":"1", "id":"7222"}, {"last_update":"1187856827", "numofapproved":"1", "id":"7341"}, {"last_update":"1188053850", "numofapproved":"1", "id":"7461"}, {"last_update":"1188264856", "numofapproved":"1", "id":"7541"}, {"last_update":"1188319841", "numofapproved":"1", "id":"7681"}, {"last_update":"1188582632", "numofapproved":"1", "id":"7901"}, {"last_update":"1188734330", "numofapproved":"1", "id":"8001"}, {"last_update":"1189003562", "numofapproved":"1", "id":"8381"}, {"last_update":"1179787121", "numofapproved":"1", "id":"1581"}, {"last_update":"1181998896", "numofapproved":"1", "id":"3121"}, {"last_update":"1182274782", "numofapproved":"1", "id":"3261"}, {"last_update":"1186350397", "numofapproved":"1", "id":"6241"}, {"last_update":"1187354512", "numofapproved":"1", "id":"6881"}, {"last_update":"1188918086", "numofapproved":"1", "id":"8221"}, {"last_update":"1190392989", "numofapproved":"1", "id":"9721"}, {"last_update":"1190925022", "numofapproved":"1", "id":"10583"}, {"last_update":"1190959571", "numofapproved":"1", "id":"10601"}, {"last_update":"1190990357", "numofapproved":"1", "id":"10705"}, {"last_update":"1190990656", "numofapproved":"1", "id":"10710"}, {"last_update":"1191226364", "numofapproved":"1", "id":"10921"}, {"last_update":"1180011741", "numofapproved":"1", "id":"1761"}, {"last_update":"1180533694", "numofapproved":"1", "id":"1961"}, {"last_update":"1180731839", "numofapproved":"1", "id":"2144"}, {"last_update":"1181461876", "numofapproved":"1", "id":"2681"}, {"last_update":"1181855690", "numofapproved":"1", "id":"3061"}, {"last_update":"1189537687", "numofapproved":"1", "id":"8821"}, {"last_update":"1189937430", "numofapproved":"1", "id":"9161"}, {"last_update":"1190803903", "numofapproved":"1", "id":"10261"}, {"last_update":"1190973051", "numofapproved":"1", "id":"10664"}, {"last_update":"1191410739", "numofapproved":"1", "id":"11064"}, {"last_update":"1191426697", "numofapproved":"1", "id":"11121"}, {"last_update":"1191446459", "numofapproved":"1", "id":"11182"}, {"last_update":"1191450891", "numofapproved":"1", "id":"11201"}, {"last_update":"1191550000", "numofapproved":"1", "id":"11441"}, {"last_update":"1191588714", "numofapproved":"1", "id":"11601"}, {"last_update":"1191596815", "numofapproved":"1", "id":"11641"}, {"last_update":"1191647971", "numofapproved":"1", "id":"11741"}, {"last_update":"1191949660", "numofapproved":"1", "id":"11981"}, {"last_update":"1180641844", "numofapproved":"1", "id":"2001"}, {"last_update":"1188319710", "numofapproved":"1", "id":"7661"}, {"last_update":"1189169640", "numofapproved":"1", "id":"8621"}, {"last_update":"1192028009", "numofapproved":"1", "id":"12081"}, {"last_update":"1192116783", "numofapproved":"1", "id":"12261"}, {"last_update":"1192558715", "numofapproved":"1", "id":"12741"}, {"last_update":"1192727702", "numofapproved":"1", "id":"13101"}, {"last_update":"1193035517", "numofapproved":"1", "id":"13262"}, {"last_update":"1193080239", "numofapproved":"1", "id":"13381"}, {"last_update":"1193268912", "numofapproved":"1", "id":"13722"}, {"last_update":"1193386894", "numofapproved":"1", "id":"13946"}, {"last_update":"1193388087", "numofapproved":"1", "id":"13982"}, {"last_update":"1179841973", "numofapproved":"1", "id":"1642"}, {"last_update":"1179842066", "numofapproved":"1", "id":"1662"}, {"last_update":"1185971695", "numofapproved":"1", "id":"5941"}, {"last_update":"1186137440", "numofapproved":"1", "id":"6103"}, {"last_update":"1192823224", "numofapproved":"1", "id":"13181"}, {"last_update":"1193921116", "numofapproved":"1", "id":"14581"}, {"last_update":"1193918035", "numofapproved":"1", "id":"14544"}, {"last_update":"1193973759", "numofapproved":"1", "id":"14663"}, {"last_update":"1194004166", "numofapproved":"1", "id":"14721"}, {"last_update":"1194020795", "numofapproved":"1", "id":"14761"}, {"last_update":"1194021069", "numofapproved":"1", "id":"14781"}, {"last_update":"1194283444", "numofapproved":"1", "id":"14887"}, {"last_update":"1194436909", "numofapproved":"1", "id":"15141"}, {"last_update":"1194538247", "numofapproved":"1", "id":"15341"}, {"last_update":"1180031440", "numofapproved":"1", "id":"1801"}, {"last_update":"1181823965", "numofapproved":"1", "id":"2941"}, {"last_update":"1182846565", "numofapproved":"1", "id":"3561"}, {"last_update":"1185872587", "numofapproved":"1", "id":"5843"}, {"last_update":"1186472951", "numofapproved":"1", "id":"6168"}, {"last_update":"1189937606", "numofapproved":"1", "id":"9181"}, {"last_update":"1193389026", "numofapproved":"1", "id":"13955"}, {"last_update":"1192130592", "numofapproved":"1", "id":"12321"}, {"last_update":"1194387386", "numofapproved":"1", "id":"15061"}, {"last_update":"1179336536", "numofapproved":"1", "id":"1396"}, {"last_update":"1182280246", "numofapproved":"1", "id":"3281"}, {"last_update":"1183394591", "numofapproved":"1", "id":"4001"}, {"last_update":"1184677502", "numofapproved":"1", "id":"4909"}, {"last_update":"1186144184", "numofapproved":"1", "id":"6106"}, {"last_update":"1187191683", "numofapproved":"1", "id":"6701"}, {"last_update":"1193909594", "numofapproved":"1", "id":"14527"}, {"last_update":"1194435747", "numofapproved":"1", "id":"15121"}, {"last_update":"1184252278", "numofapproved":"1", "id":"4761"}, {"last_update":"1194854996", "numofapproved":"1", "id":"15721"}, {"last_update":"1194937730", "numofapproved":"1", "id":"16045"}, {"last_update":"1193076864", "numofapproved":"1", "id":"13361"}, {"last_update":"1194904087", "numofapproved":"1", "id":"15981"}, {"last_update":"1181853751", "numofapproved":"1", "id":"3001"}, {"last_update":"1182075529", "numofapproved":"1", "id":"3161"}, {"last_update":"1184883226", "numofapproved":"1", "id":"5081"}, {"last_update":"1186136013", "numofapproved":"1", "id":"6102"}, {"last_update":"1193147983", "numofapproved":"1", "id":"13481"}, {"last_update":"1194532658", "numofapproved":"1", "id":"15301"}, {"last_update":"1194937763", "numofapproved":"1", "id":"16046"}, {"last_update":"1195225183", "numofapproved":"1", "id":"16981"}, {"last_update":"1180616624", "numofapproved":"1", "id":"1981"}, {"last_update":"1183019269", "numofapproved":"1", "id":"3701"}, {"last_update":"1188656338", "numofapproved":"1", "id":"7941"}, {"last_update":"1178799062", "numofapproved":"1", "id":"1353"}, {"last_update":"1178905809", "numofapproved":"1", "id":"1360"}, {"last_update":"1179311575", "numofapproved":"1", "id":"1408"}, {"last_update":"1182507595", "numofapproved":"1", "id":"3461"}, {"last_update":"1184254004", "numofapproved":"1", "id":"4781"}, {"last_update":"1187938257", "numofapproved":"1", "id":"7381"}, {"last_update":"1188473327", "numofapproved":"1", "id":"7801"}, {"last_update":"1189102174", "numofapproved":"1", "id":"8481"}, {"last_update":"1191419747", "numofapproved":"1", "id":"11102"}, {"last_update":"1193389169", "numofapproved":"1", "id":"14002"}, {"last_update":"1194440930", "numofapproved":"1", "id":"15102"}, {"last_update":"1194855848", "numofapproved":"1", "id":"15741"}, {"last_update":"1194862162", "numofapproved":"1", "id":"15841"}, {"last_update":"1194923605", "numofapproved":"1", "id":"16021"}, {"last_update":"1194950051", "numofapproved":"1", "id":"16142"}, {"last_update":"1194960554", "numofapproved":"1", "id":"16181"}, {"last_update":"1194988868", "numofapproved":"1", "id":"16382"}, {"last_update":"1195058276", "numofapproved":"1", "id":"16601"}, {"last_update":"1195469960", "numofapproved":"1", "id":"17201"}, {"last_update":"1178648361", "numofapproved":"1", "id":"1311"}, {"last_update":"1183970840", "numofapproved":"1", "id":"4401"}, {"last_update":"1184838534", "numofapproved":"1", "id":"5041"}, {"last_update":"1190745858", "numofapproved":"1", "id":"10161"}, {"last_update":"1191587968", "numofapproved":"1", "id":"11581"}, {"last_update":"1189773687", "numofapproved":"1", "id":"9021"}, {"last_update":"1192612866", "numofapproved":"1", "id":"12804"}, {"last_update":"1193746024", "numofapproved":"1", "id":"14461"}, {"last_update":"1193918117", "numofapproved":"1", "id":"14561"}, {"last_update":"1194981013", "numofapproved":"1", "id":"16321"}, {"last_update":"1195546695", "numofapproved":"1", "id":"17481"}, {"last_update":"1177592107", "numofapproved":"1", "id":"1047"}, {"last_update":"1183569612", "numofapproved":"1", "id":"4221"}, {"last_update":"1186770649", "numofapproved":"1", "id":"6401"}, {"last_update":"1187707518", "numofapproved":"1", "id":"7021"}, {"last_update":"1187769297", "numofapproved":"1", "id":"7223"}, {"last_update":"1187798945", "numofapproved":"1", "id":"7241"}, {"last_update":"1187820883", "numofapproved":"1", "id":"7261"}, {"last_update":"1190286816", "numofapproved":"1", "id":"9581"}, {"last_update":"1190541964", "numofapproved":"1", "id":"9842"}, {"last_update":"1190500569", "numofapproved":"1", "id":"9802"}, {"last_update":"1190800190", "numofapproved":"1", "id":"10222"}, {"last_update":"1190965460", "numofapproved":"1", "id":"10642"}, {"last_update":"1192120899", "numofapproved":"1", "id":"12301"}, {"last_update":"1193265675", "numofapproved":"1", "id":"13701"}, {"last_update":"1194508196", "numofapproved":"1", "id":"15261"}, {"last_update":"1172503197", "numofapproved":"1", "id":"196"}, {"last_update":"1172847366", "numofapproved":"1", "id":"238"}, {"last_update":"1173975764", "numofapproved":"1", "id":"347"}, {"last_update":"1174301010", "numofapproved":"1", "id":"375"}, {"last_update":"1174899614", "numofapproved":"1", "id":"514"}, {"last_update":"1174924853", "numofapproved":"1", "id":"527"}, {"last_update":"1175270318", "numofapproved":"1", "id":"567"}, {"last_update":"1174933246", "numofapproved":"1", "id":"536"}, {"last_update":"1176369900", "numofapproved":"1", "id":"889"}, {"last_update":"1171102836", "numofapproved":"1", "id":"2"}, {"last_update":"1171970451", "numofapproved":"1", "id":"121"}, {"last_update":"1174898953", "numofapproved":"1", "id":"484"}, {"last_update":"1175610845", "numofapproved":"1", "id":"664"}, {"last_update":"1176313569", "numofapproved":"1", "id":"885"}, {"last_update":"1171878648", "numofapproved":"1", "id":"89"}, {"last_update":"1171897268", "numofapproved":"1", "id":"96"}, {"last_update":"1172326187", "numofapproved":"1", "id":"193"}, {"last_update":"1176106905", "numofapproved":"1", "id":"802"}, {"last_update":"1176389540", "numofapproved":"1", "id":"891"}, {"last_update":"1171318806", "numofapproved":"1", "id":"24"}, {"last_update":"1171601548", "numofapproved":"1", "id":"66"}, {"last_update":"1172148331", "numofapproved":"1", "id":"171"}, {"last_update":"1172686680", "numofapproved":"1", "id":"228"}, {"last_update":"1173793572", "numofapproved":"1", "id":"308"}, {"last_update":"1174899594", "numofapproved":"1", "id":"513"}, {"last_update":"1174898936", "numofapproved":"1", "id":"483"}, {"last_update":"1175502773", "numofapproved":"1", "id":"622"}, {"last_update":"1175722537", "numofapproved":"1", "id":"709"}, {"last_update":"1175764633", "numofapproved":"1", "id":"672"}, {"last_update":"1175797156", "numofapproved":"1", "id":"721"}, {"last_update":"1175899070", "numofapproved":"1", "id":"785"}, {"last_update":"1176106959", "numofapproved":"1", "id":"803"}, {"last_update":"1176228460", "numofapproved":"1", "id":"824"}, {"last_update":"1176488163", "numofapproved":"1", "id":"962"}, {"last_update":"1172068869", "numofapproved":"1", "id":"133"}, {"last_update":"1172847381", "numofapproved":"1", "id":"239"}, {"last_update":"1173888657", "numofapproved":"1", "id":"320"}, {"last_update":"1171449446", "numofapproved":"1", "id":"48"}, {"last_update":"1175287424", "numofapproved":"1", "id":"581"}, {"last_update":"1175502897", "numofapproved":"1", "id":"624"}, {"last_update":"1175503020", "numofapproved":"1", "id":"605"}, {"last_update":"1172848367", "numofapproved":"1", "id":"243"}, {"last_update":"1174301060", "numofapproved":"1", "id":"377"}, {"last_update":"1176824481", "numofapproved":"1", "id":"986"}, {"last_update":"1171275893", "numofapproved":"1", "id":"6"}, {"last_update":"1172546216", "numofapproved":"1", "id":"206"}, {"last_update":"1175502705", "numofapproved":"1", "id":"601"}, {"last_update":"1173962671", "numofapproved":"1", "id":"341"}, {"last_update":"1173975403", "numofapproved":"1", "id":"342"}, {"last_update":"1173816295", "numofapproved":"1", "id":"313"}, {"last_update":"1174301256", "numofapproved":"1", "id":"384"}, {"last_update":"1174933293", "numofapproved":"1", "id":"537"}, {"last_update":"1176899419", "numofapproved":"1", "id":"988"}, {"last_update":"1173975599", "numofapproved":"1", "id":"345"}, {"last_update":"1174041960", "numofapproved":"1", "id":"351"}, {"last_update":"1175759476", "numofapproved":"1", "id":"671"}, {"last_update":"1178195644", "numofapproved":"1", "id":"1207"}, {"last_update":"1178725318", "numofapproved":"1", "id":"1348"}, {"last_update":"1179333492", "numofapproved":"1", "id":"1421"}, {"last_update":"1179999737", "numofapproved":"1", "id":"1646"}, {"last_update":"1180710770", "numofapproved":"1", "id":"2062"}, {"last_update":"1182868347", "numofapproved":"1", "id":"3601"}, {"last_update":"1182932927", "numofapproved":"1", "id":"3621"}, {"last_update":"1183115054", "numofapproved":"1", "id":"3784"}, {"last_update":"1180000741", "numofapproved":"1", "id":"1647"}, {"last_update":"1181292582", "numofapproved":"1", "id":"2621"}, {"last_update":"1184181581", "numofapproved":"1", "id":"4641"}, {"last_update":"1185280501", "numofapproved":"1", "id":"5301"}, {"last_update":"1185471699", "numofapproved":"1", "id":"5561"}, {"last_update":"1185542771", "numofapproved":"1", "id":"5701"}, {"last_update":"1186650650", "numofapproved":"1", "id":"6361"}, {"last_update":"1186951065", "numofapproved":"1", "id":"6461"}, {"last_update":"1187769080", "numofapproved":"1", "id":"7221"}, {"last_update":"1187887905", "numofapproved":"1", "id":"7348"}, {"last_update":"1188001607", "numofapproved":"1", "id":"7423"}, {"last_update":"1188463414", "numofapproved":"1", "id":"7762"}, {"last_update":"1188555813", "numofapproved":"1", "id":"7861"}, {"last_update":"1188634622", "numofapproved":"1", "id":"7921"}, {"last_update":"1189543954", "numofapproved":"1", "id":"8841"}, {"last_update":"1177511009", "numofapproved":"1", "id":"1043"}, {"last_update":"1181898808", "numofapproved":"1", "id":"3081"}, {"last_update":"1182247483", "numofapproved":"1", "id":"3221"}, {"last_update":"1187024005", "numofapproved":"1", "id":"6562"}, {"last_update":"1189839471", "numofapproved":"1", "id":"9081"}, {"last_update":"1190018380", "numofapproved":"1", "id":"9241"}, {"last_update":"1190149586", "numofapproved":"1", "id":"9401"}, {"last_update":"1190652684", "numofapproved":"1", "id":"9981"}, {"last_update":"1190662296", "numofapproved":"1", "id":"10022"}, {"last_update":"1190813509", "numofapproved":"1", "id":"10281"}, {"last_update":"1190826005", "numofapproved":"1", "id":"10403"}, {"last_update":"1190991166", "numofapproved":"1", "id":"10722"}, {"last_update":"1191057700", "numofapproved":"1", "id":"10801"}, {"last_update":"1191161241", "numofapproved":"1", "id":"10821"}, {"last_update":"1191227885", "numofapproved":"1", "id":"10941"}, {"last_update":"1182537005", "numofapproved":"1", "id":"3481"}, {"last_update":"1185018401", "numofapproved":"1", "id":"5162"}, {"last_update":"1186752963", "numofapproved":"1", "id":"6386"}, {"last_update":"1190660077", "numofapproved":"1", "id":"10001"}, {"last_update":"1191319062", "numofapproved":"1", "id":"10981"}, {"last_update":"1191446097", "numofapproved":"1", "id":"11161"}, {"last_update":"1191446587", "numofapproved":"1", "id":"11184"}, {"last_update":"1191470824", "numofapproved":"1", "id":"11221"}, {"last_update":"1191526821", "numofapproved":"1", "id":"11401"}, {"last_update":"1191585471", "numofapproved":"1", "id":"11561"}, {"last_update":"1191602213", "numofapproved":"1", "id":"11701"}, {"last_update":"1191845720", "numofapproved":"1", "id":"11821"}, {"last_update":"1191933874", "numofapproved":"1", "id":"11902"}, {"last_update":"1191933897", "numofapproved":"1", "id":"11903"}, {"last_update":"1177673238", "numofapproved":"1", "id":"1161"}, {"last_update":"1181601542", "numofapproved":"1", "id":"2781"}, {"last_update":"1182869532", "numofapproved":"1", "id":"3583"}, {"last_update":"1183315879", "numofapproved":"1", "id":"3881"}, {"last_update":"1187097870", "numofapproved":"1", "id":"6641"}, {"last_update":"1190148660", "numofapproved":"1", "id":"9361"}, {"last_update":"1192248648", "numofapproved":"1", "id":"12521"}, {"last_update":"1192702958", "numofapproved":"1", "id":"13001"}, {"last_update":"1193387721", "numofapproved":"1", "id":"13981"}, {"last_update":"1193391276", "numofapproved":"1", "id":"14021"}, {"last_update":"1193397051", "numofapproved":"1", "id":"14061"}, {"last_update":"1193592081", "numofapproved":"1", "id":"14321"}, {"last_update":"1188474438", "numofapproved":"1", "id":"7821"}, {"last_update":"1190158372", "numofapproved":"1", "id":"9441"}, {"last_update":"1193648459", "numofapproved":"1", "id":"14361"}, {"last_update":"1193999834", "numofapproved":"1", "id":"14681"}, {"last_update":"1194200119", "numofapproved":"1", "id":"14861"}, {"last_update":"1194528747", "numofapproved":"1", "id":"15111"}, {"last_update":"1179150787", "numofapproved":"1", "id":"1384"}, {"last_update":"1179266496", "numofapproved":"1", "id":"1390"}, {"last_update":"1179508139", "numofapproved":"1", "id":"1501"}, {"last_update":"1179842157", "numofapproved":"1", "id":"1664"}, {"last_update":"1179842347", "numofapproved":"1", "id":"1668"}, {"last_update":"1181245388", "numofapproved":"1", "id":"2562"}, {"last_update":"1181311044", "numofapproved":"1", "id":"2661"}, {"last_update":"1181545818", "numofapproved":"1", "id":"2701"}, {"last_update":"1181934881", "numofapproved":"1", "id":"3103"}, {"last_update":"1187020798", "numofapproved":"1", "id":"6541"}, {"last_update":"1187271377", "numofapproved":"1", "id":"6801"}, {"last_update":"1196086904", "numofapproved":"1", "id":"17545"}, {"last_update":"1196266437", "numofapproved":"2", "id":"17662"}, {"last_update":"1196266638", "numofapproved":"2", "id":"17663"}, {"last_update":"1197533251", "numofapproved":"1", "id":"17901"}, {"last_update":"1197533384", "numofapproved":"1", "id":"17923"}, {"last_update":"1197556776", "numofapproved":"2", "id":"17941"}, {"last_update":"1200059354", "numofapproved":"1", "id":"17981"}, {"last_update":"1200576144", "numofapproved":"1", "id":"18001"}, {"last_update":"1200576230", "numofapproved":"1", "id":"18002"}, {"last_update":"1200657266", "numofapproved":"1", "id":"18041"}, {"last_update":"1201510556", "numofapproved":"1", "id":"18061"}, {"last_update":"1196087136", "numofapproved":"1", "id":"17546"}, {"last_update":"1196087269", "numofapproved":"1", "id":"17547"}, {"last_update":"1196087335", "numofapproved":"1", "id":"17548"}, {"last_update":"1196087379", "numofapproved":"1", "id":"17549"}, {"last_update":"1196087427", "numofapproved":"1", "id":"17550"}, {"last_update":"1196096347", "numofapproved":"1", "id":"17581"}, {"last_update":"1196265997", "numofapproved":"2", "id":"17661"}, {"last_update":"1196266785", "numofapproved":"1", "id":"17664"}, {"last_update":"1196270058", "numofapproved":"1", "id":"17701"}, {"last_update":"1196431875", "numofapproved":"1", "id":"17804"}, {"last_update":"1197635044", "numofapproved":"1", "id":"17961"}, {"last_update":"1202720206", "numofapproved":"2", "id":"18084"}, {"last_update":"1196267153", "numofapproved":"1", "id":"17681"}, {"last_update":"1196090749", "numofapproved":"1", "id":"17569"}, {"last_update":"1196162163", "numofapproved":"2", "id":"17641"}, {"last_update":"1196345846", "numofapproved":"1", "id":"17721"}, {"last_update":"1196088254", "numofapproved":"1", "id":"17552"}, {"last_update":"1196088437", "numofapproved":"1", "id":"17564"}, {"last_update":"1196088477", "numofapproved":"1", "id":"17565"}, {"last_update":"1196088537", "numofapproved":"1", "id":"17566"}, {"last_update":"1196088894", "numofapproved":"1", "id":"17567"}, {"last_update":"1196090414", "numofapproved":"1", "id":"17554"}, {"last_update":"1196097621", "numofapproved":"1", "id":"17601"}, {"last_update":"1196097710", "numofapproved":"1", "id":"17602"}, {"last_update":"1196098047", "numofapproved":"1", "id":"17603"}, {"last_update":"1196358376", "numofapproved":"2", "id":"17761"}, {"last_update":"1196358647", "numofapproved":"1", "id":"17762"}, {"last_update":"1196427604", "numofapproved":"1", "id":"17781"}, {"last_update":"1196429856", "numofapproved":"1", "id":"17782"}, {"last_update":"1196431068", "numofapproved":"2", "id":"17783"}, {"last_update":"1196435953", "numofapproved":"2", "id":"17821"}, {"last_update":"1204027277", "numofapproved":"1", "id":"18104"}, {"last_update":"1196090201", "numofapproved":"1", "id":"17553"}, {"last_update":"1196097095", "numofapproved":"1", "id":"17582"}, {"last_update":"1196097215", "numofapproved":"1", "id":"17583"}, {"last_update":"1196430140", "numofapproved":"2", "id":"17803"}, {"last_update":"1196436411", "numofapproved":"2", "id":"17841"}, {"last_update":"1196692298", "numofapproved":"1", "id":"17861"}, {"last_update":"1196692342", "numofapproved":"2", "id":"17862"}, {"last_update":"1196695231", "numofapproved":"2", "id":"17865"}, {"last_update":"1197533316", "numofapproved":"1", "id":"17921"}, {"last_update":"1201512744", "numofapproved":"1", "id":"18082"}, {"last_update":"1201513438", "numofapproved":"2", "id":"18083"}, {"last_update":"1196087540", "numofapproved":"1", "id":"17551"}, {"last_update":"1196156416", "numofapproved":"2", "id":"17621"}, {"last_update":"1196356717", "numofapproved":"1", "id":"17741"}, {"last_update":"1196428544", "numofapproved":"2", "id":"17801"}, {"last_update":"1196429000", "numofapproved":"2", "id":"17802"}, {"last_update":"1196692578", "numofapproved":"1", "id":"17863"}, {"last_update":"1196693445", "numofapproved":"2", "id":"17881"}, {"last_update":"1196693804", "numofapproved":"2", "id":"17864"}, {"last_update":"1197533347", "numofapproved":"1", "id":"17922"}, {"last_update":"1200591782", "numofapproved":"1", "id":"18021"}, {"last_update":"1201510930", "numofapproved":"1", "id":"18081"}, {"last_update":"1192432005", "numofapproved":"1", "id":"12582"}, {"last_update":"1192614291", "numofapproved":"1", "id":"12805"}, {"last_update":"1192624421", "numofapproved":"1", "id":"12806"}, {"last_update":"1192983623", "numofapproved":"1", "id":"13221"}, {"last_update":"1193043248", "numofapproved":"1", "id":"13282"}, {"last_update":"1193223892", "numofapproved":"1", "id":"13562"}, {"last_update":"1193239943", "numofapproved":"1", "id":"13601"}, {"last_update":"1193385960", "numofapproved":"1", "id":"13961"}, {"last_update":"1193386863", "numofapproved":"1", "id":"13945"}, {"last_update":"1193399770", "numofapproved":"1", "id":"14042"}, {"last_update":"1193417684", "numofapproved":"1", "id":"14181"}, {"last_update":"1193458402", "numofapproved":"1", "id":"14261"}, {"last_update":"1193555071", "numofapproved":"1", "id":"14301"}, {"last_update":"1185285506", "numofapproved":"1", "id":"5321"}, {"last_update":"1188250869", "numofapproved":"1", "id":"7521"}, {"last_update":"1191410480", "numofapproved":"1", "id":"11061"}, {"last_update":"1193763056", "numofapproved":"1", "id":"14482"}, {"last_update":"1193913886", "numofapproved":"1", "id":"14542"}, {"last_update":"1194366001", "numofapproved":"1", "id":"14890"}, {"last_update":"1194454607", "numofapproved":"1", "id":"15105"}, {"last_update":"1194255904", "numofapproved":"1", "id":"14941"}, {"last_update":"1179328986", "numofapproved":"1", "id":"1395"}, {"last_update":"1180377628", "numofapproved":"1", "id":"1861"}, {"last_update":"1181250011", "numofapproved":"1", "id":"2563"}, {"last_update":"1181572386", "numofapproved":"1", "id":"2741"}, {"last_update":"1183967114", "numofapproved":"1", "id":"4381"}, {"last_update":"1192512712", "numofapproved":"1", "id":"12623"}, {"last_update":"1193172621", "numofapproved":"1", "id":"13522"}, {"last_update":"1193868932", "numofapproved":"1", "id":"14523"}, {"last_update":"1194980345", "numofapproved":"1", "id":"16301"}, {"last_update":"1182280312", "numofapproved":"1", "id":"3282"}, {"last_update":"1184058726", "numofapproved":"1", "id":"4542"}, {"last_update":"1188829875", "numofapproved":"1", "id":"8161"}, {"last_update":"1190129857", "numofapproved":"1", "id":"9341"}, {"last_update":"1190652687", "numofapproved":"1", "id":"9982"}, {"last_update":"1193389082", "numofapproved":"1", "id":"13956"}, {"last_update":"1195400591", "numofapproved":"1", "id":"17121"}, {"last_update":"1184420846", "numofapproved":"1", "id":"4882"}, {"last_update":"1184532219", "numofapproved":"1", "id":"4903"}, {"last_update":"1192030476", "numofapproved":"1", "id":"12101"}, {"last_update":"1192202239", "numofapproved":"1", "id":"12461"}, {"last_update":"1192688302", "numofapproved":"1", "id":"12961"}, {"last_update":"1192703266", "numofapproved":"1", "id":"13021"}, {"last_update":"1193387096", "numofapproved":"1", "id":"13948"}, {"last_update":"1193387200", "numofapproved":"1", "id":"13949"}, {"last_update":"1193909837", "numofapproved":"1", "id":"14528"}, {"last_update":"1181062093", "numofapproved":"1", "id":"2301"}, {"last_update":"1182364431", "numofapproved":"1", "id":"3348"}, {"last_update":"1182364589", "numofapproved":"1", "id":"3349"}, {"last_update":"1184942429", "numofapproved":"1", "id":"5101"}, {"last_update":"1192682522", "numofapproved":"1", "id":"12901"}, {"last_update":"1184756287", "numofapproved":"1", "id":"4944"}, {"last_update":"1190274411", "numofapproved":"1", "id":"9541"}, {"last_update":"1193324229", "numofapproved":"1", "id":"13861"}, {"last_update":"1195163999", "numofapproved":"1", "id":"16861"}, {"last_update":"1181553321", "numofapproved":"1", "id":"2721"}, {"last_update":"1178869453", "numofapproved":"1", "id":"1361"}, {"last_update":"1181219788", "numofapproved":"1", "id":"2481"}, {"last_update":"1178140002", "numofapproved":"1", "id":"1205"}, {"last_update":"1178716891", "numofapproved":"1", "id":"1345"}, {"last_update":"1180691957", "numofapproved":"1", "id":"2061"}, {"last_update":"1182246242", "numofapproved":"1", "id":"3206"}, {"last_update":"1182882314", "numofapproved":"1", "id":"3585"}, {"last_update":"1183124192", "numofapproved":"1", "id":"3821"}, {"last_update":"1183905634", "numofapproved":"1", "id":"4361"}, {"last_update":"1191225755", "numofapproved":"1", "id":"10901"}, {"last_update":"1192635977", "numofapproved":"1", "id":"12881"}, {"last_update":"1193268752", "numofapproved":"1", "id":"13721"}, {"last_update":"1193242245", "numofapproved":"1", "id":"13621"}, {"last_update":"1193949751", "numofapproved":"1", "id":"14621"}, {"last_update":"1194635892", "numofapproved":"1", "id":"15621"}, {"last_update":"1194726918", "numofapproved":"1", "id":"15664"}, {"last_update":"1194726371", "numofapproved":"1", "id":"15662"}, {"last_update":"1194858043", "numofapproved":"1", "id":"15781"}, {"last_update":"1194946522", "numofapproved":"1", "id":"16101"}, {"last_update":"1195047359", "numofapproved":"1", "id":"16521"}, {"last_update":"1195050812", "numofapproved":"1", "id":"16503"}, {"last_update":"1195058811", "numofapproved":"1", "id":"16621"}, {"last_update":"1195476161", "numofapproved":"1", "id":"17241"}, {"last_update":"1178645683", "numofapproved":"1", "id":"1305"}, {"last_update":"1183118619", "numofapproved":"1", "id":"3801"}, {"last_update":"1186150376", "numofapproved":"1", "id":"6121"}, {"last_update":"1189114226", "numofapproved":"1", "id":"8501"}, {"last_update":"1190973079", "numofapproved":"1", "id":"10666"}, {"last_update":"1190990329", "numofapproved":"1", "id":"10704"}, {"last_update":"1191508485", "numofapproved":"1", "id":"11361"}, {"last_update":"1183054560", "numofapproved":"1", "id":"3721"}, {"last_update":"1185263889", "numofapproved":"1", "id":"5241"}, {"last_update":"1187876083", "numofapproved":"1", "id":"7346"}, {"last_update":"1189550218", "numofapproved":"1", "id":"8861"}, {"last_update":"1190800088", "numofapproved":"1", "id":"10221"}, {"last_update":"1193260528", "numofapproved":"1", "id":"13661"}, {"last_update":"1172509002", "numofapproved":"1", "id":"199"}, {"last_update":"1172509846", "numofapproved":"1", "id":"200"}, {"last_update":"1172589855", "numofapproved":"1", "id":"214"}, {"last_update":"1172847322", "numofapproved":"1", "id":"236"}, {"last_update":"1172847433", "numofapproved":"1", "id":"242"}, {"last_update":"1173607050", "numofapproved":"1", "id":"283"}, {"last_update":"1173703535", "numofapproved":"1", "id":"301"}, {"last_update":"1173719825", "numofapproved":"1", "id":"302"}, {"last_update":"1174414845", "numofapproved":"1", "id":"403"}, {"last_update":"1174650542", "numofapproved":"1", "id":"441"}, {"last_update":"1171475944", "numofapproved":"1", "id":"52"}, {"last_update":"1172746278", "numofapproved":"1", "id":"231"}, {"last_update":"1173251095", "numofapproved":"1", "id":"254"}, {"last_update":"1173259501", "numofapproved":"1", "id":"255"}, {"last_update":"1174899183", "numofapproved":"1", "id":"495"}, {"last_update":"1174924714", "numofapproved":"1", "id":"524"}, {"last_update":"1171962179", "numofapproved":"1", "id":"108"}, {"last_update":"1172522401", "numofapproved":"1", "id":"205"}, {"last_update":"1174299349", "numofapproved":"1", "id":"362"}, {"last_update":"1174899291", "numofapproved":"1", "id":"500"}, {"last_update":"1175617661", "numofapproved":"1", "id":"688"}, {"last_update":"1176302948", "numofapproved":"1", "id":"881"}, {"last_update":"1176467393", "numofapproved":"1", "id":"893"}, {"last_update":"1176737599", "numofapproved":"1", "id":"982"}, {"last_update":"1171465517", "numofapproved":"1", "id":"50"}, {"last_update":"1171924670", "numofapproved":"1", "id":"107"}, {"last_update":"1173880505", "numofapproved":"1", "id":"317"}, {"last_update":"1173889350", "numofapproved":"1", "id":"329"}, {"last_update":"1173889557", "numofapproved":"1", "id":"332"}, {"last_update":"1176391285", "numofapproved":"1", "id":"892"}, {"last_update":"1176673529", "numofapproved":"1", "id":"981"}, {"last_update":"1171643442", "numofapproved":"1", "id":"69"}, {"last_update":"1172226841", "numofapproved":"1", "id":"182"}, {"last_update":"1174899475", "numofapproved":"1", "id":"506"}, {"last_update":"1174915327", "numofapproved":"1", "id":"521"}, {"last_update":"1176194461", "numofapproved":"1", "id":"821"}, {"last_update":"1172013837", "numofapproved":"1", "id":"132"}, {"last_update":"1172184974", "numofapproved":"1", "id":"177"}, {"last_update":"1175777908", "numofapproved":"1", "id":"674"}, {"last_update":"1173460745", "numofapproved":"1", "id":"281"}, {"last_update":"1174401746", "numofapproved":"1", "id":"402"}, {"last_update":"1171274691", "numofapproved":"1", "id":"5"}, {"last_update":"1171799314", "numofapproved":"1", "id":"78"}, {"last_update":"1171979089", "numofapproved":"1", "id":"127"}, {"last_update":"1172503571", "numofapproved":"1", "id":"197"}, {"last_update":"1174301365", "numofapproved":"1", "id":"391"}, {"last_update":"1174301259", "numofapproved":"1", "id":"385"}, {"last_update":"1174899163", "numofapproved":"1", "id":"494"}, {"last_update":"1174933167", "numofapproved":"1", "id":"534"}, {"last_update":"1176139704", "numofapproved":"1", "id":"808"}, {"last_update":"1175502855", "numofapproved":"1", "id":"603"}, {"last_update":"1173721122", "numofapproved":"1", "id":"303"}, {"last_update":"1173809079", "numofapproved":"1", "id":"311"}, {"last_update":"1174734352", "numofapproved":"1", "id":"461"}, {"last_update":"1174898917", "numofapproved":"1", "id":"482"}, {"last_update":"1174899374", "numofapproved":"1", "id":"503"}, {"last_update":"1176392495", "numofapproved":"1", "id":"903"}, {"last_update":"1176829535", "numofapproved":"1", "id":"987"}, {"last_update":"1173889385", "numofapproved":"1", "id":"330"}, {"last_update":"1175869070", "numofapproved":"1", "id":"783"}, {"last_update":"1177510634", "numofapproved":"1", "id":"1042"}, {"last_update":"1177585810", "numofapproved":"1", "id":"1062"}, {"last_update":"1178648303", "numofapproved":"1", "id":"1309"}, {"last_update":"1178883682", "numofapproved":"1", "id":"1363"}, {"last_update":"1179239792", "numofapproved":"1", "id":"1402"}, {"last_update":"1179997715", "numofapproved":"1", "id":"1644"}, {"last_update":"1180031289", "numofapproved":"1", "id":"1654"}, {"last_update":"1180440758", "numofapproved":"1", "id":"1921"}, {"last_update":"1180972413", "numofapproved":"1", "id":"2221"}, {"last_update":"1181032741", "numofapproved":"1", "id":"2261"}, {"last_update":"1181198104", "numofapproved":"1", "id":"2401"}, {"last_update":"1181237541", "numofapproved":"1", "id":"2581"}, {"last_update":"1181293731", "numofapproved":"1", "id":"2641"}, {"last_update":"1182231158", "numofapproved":"1", "id":"3204"}, {"last_update":"1177668412", "numofapproved":"1", "id":"1121"}, {"last_update":"1178713554", "numofapproved":"1", "id":"1342"}, {"last_update":"1179239886", "numofapproved":"1", "id":"1404"}, {"last_update":"1184766561", "numofapproved":"1", "id":"4961"}, {"last_update":"1185293883", "numofapproved":"1", "id":"5341"}, {"last_update":"1185781181", "numofapproved":"1", "id":"5761"}, {"last_update":"1185898126", "numofapproved":"1", "id":"5862"}, {"last_update":"1186290486", "numofapproved":"1", "id":"6164"}, {"last_update":"1186260193", "numofapproved":"1", "id":"6162"}, {"last_update":"1186305362", "numofapproved":"1", "id":"6201"}, {"last_update":"1187024035", "numofapproved":"1", "id":"6563"}, {"last_update":"1187245873", "numofapproved":"1", "id":"6761"}, {"last_update":"1187765176", "numofapproved":"1", "id":"7142"}, {"last_update":"1187872548", "numofapproved":"1", "id":"7343"}, {"last_update":"1188774634", "numofapproved":"1", "id":"8061"}, {"last_update":"1188838929", "numofapproved":"1", "id":"8181"}, {"last_update":"1189608461", "numofapproved":"1", "id":"8881"}, {"last_update":"1189667694", "numofapproved":"1", "id":"8921"}, {"last_update":"1179747423", "numofapproved":"1", "id":"1541"}, {"last_update":"1181142187", "numofapproved":"1", "id":"2381"}, {"last_update":"1185965227", "numofapproved":"1", "id":"5921"}, {"last_update":"1190476977", "numofapproved":"1", "id":"9761"}, {"last_update":"1190648889", "numofapproved":"1", "id":"9961"}, {"last_update":"1190824195", "numofapproved":"1", "id":"10381"}, {"last_update":"1190825530", "numofapproved":"1", "id":"10401"}, {"last_update":"1190894398", "numofapproved":"1", "id":"10501"}, {"last_update":"1178271031", "numofapproved":"1", "id":"1242"}, {"last_update":"1178878052", "numofapproved":"1", "id":"1359"}, {"last_update":"1178967516", "numofapproved":"1", "id":"1364"}, {"last_update":"1180018261", "numofapproved":"1", "id":"1652"}, {"last_update":"1180107922", "numofapproved":"1", "id":"1841"}, {"last_update":"1180514196", "numofapproved":"1", "id":"1941"}, {"last_update":"1181901023", "numofapproved":"1", "id":"3082"}, {"last_update":"1182417878", "numofapproved":"1", "id":"3361"}, {"last_update":"1182785340", "numofapproved":"1", "id":"3521"}, {"last_update":"1183485766", "numofapproved":"1", "id":"4101"}, {"last_update":"1189526136", "numofapproved":"1", "id":"8803"}, {"last_update":"1191446636", "numofapproved":"1", "id":"11185"}, {"last_update":"1191489743", "numofapproved":"1", "id":"11241"}, {"last_update":"1191903141", "numofapproved":"1", "id":"11882"}, {"last_update":"1191940049", "numofapproved":"1", "id":"11941"}, {"last_update":"1179239857", "numofapproved":"1", "id":"1403"}, {"last_update":"1185799202", "numofapproved":"1", "id":"5801"}, {"last_update":"1190924823", "numofapproved":"1", "id":"10562"}, {"last_update":"1191410783", "numofapproved":"1", "id":"11065"}, {"last_update":"1192031578", "numofapproved":"1", "id":"12121"}, {"last_update":"1192431234", "numofapproved":"1", "id":"12562"}, {"last_update":"1192609228", "numofapproved":"1", "id":"12802"}, {"last_update":"1192742243", "numofapproved":"1", "id":"13161"}, {"last_update":"1192942532", "numofapproved":"1", "id":"13201"}, {"last_update":"1193386303", "numofapproved":"1", "id":"13962"}, {"last_update":"1193406158", "numofapproved":"1", "id":"14121"}, {"last_update":"1193418273", "numofapproved":"1", "id":"14201"}, {"last_update":"1193519213", "numofapproved":"1", "id":"14281"}, {"last_update":"1193666593", "numofapproved":"1", "id":"14401"}, {"last_update":"1193733296", "numofapproved":"1", "id":"14421"}, {"last_update":"1193760981", "numofapproved":"1", "id":"14481"}, {"last_update":"1182436569", "numofapproved":"1", "id":"3422"}, {"last_update":"1184012598", "numofapproved":"1", "id":"4481"}, {"last_update":"1189715279", "numofapproved":"1", "id":"8981"}, {"last_update":"1192528903", "numofapproved":"1", "id":"12701"}, {"last_update":"1194246273", "numofapproved":"1", "id":"14901"}, {"last_update":"1194354217", "numofapproved":"1", "id":"14888"}, {"last_update":"1194366787", "numofapproved":"1", "id":"14891"}, {"last_update":"1194445768", "numofapproved":"1", "id":"15104"}, {"last_update":"1194467580", "numofapproved":"1", "id":"15107"}, {"last_update":"1194508237", "numofapproved":"1", "id":"15262"}, {"last_update":"1194635341", "numofapproved":"1", "id":"15581"}, {"last_update":"1194635508", "numofapproved":"1", "id":"15582"}, {"last_update":"1179214538", "numofapproved":"1", "id":"1386"}, {"last_update":"1186433530", "numofapproved":"1", "id":"6167"}, {"last_update":"1187853435", "numofapproved":"1", "id":"7321"}, {"last_update":"1187972012", "numofapproved":"1", "id":"7421"}, {"last_update":"1188895906", "numofapproved":"1", "id":"8201"}, {"last_update":"1190284020", "numofapproved":"1", "id":"9561"}, {"last_update":"1190924163", "numofapproved":"1", "id":"10561"}, {"last_update":"1192529770", "numofapproved":"1", "id":"12663"}, {"last_update":"1192536538", "numofapproved":"1", "id":"12666"}, {"last_update":"1193269090", "numofapproved":"1", "id":"13741"}, {"last_update":"1193428819", "numofapproved":"1", "id":"14221"}, {"last_update":"1193860091", "numofapproved":"1", "id":"14521"}, {"last_update":"1193909426", "numofapproved":"1", "id":"14526"}, {"last_update":"1194533708", "numofapproved":"1", "id":"15321"}, {"last_update":"1179822723", "numofapproved":"1", "id":"1601"}, {"last_update":"1179842248", "numofapproved":"1", "id":"1666"}, {"last_update":"1182412362", "numofapproved":"1", "id":"3352"}, {"last_update":"1185980065", "numofapproved":"1", "id":"5961"}, {"last_update":"1186751100", "numofapproved":"1", "id":"6385"}, {"last_update":"1187202714", "numofapproved":"1", "id":"6721"}, {"last_update":"1187601864", "numofapproved":"1", "id":"6923"}, {"last_update":"1191490727", "numofapproved":"1", "id":"11281"}, {"last_update":"1194449840", "numofapproved":"1", "id":"15161"}, {"last_update":"1180028166", "numofapproved":"1", "id":"1781"}, {"last_update":"1185025939", "numofapproved":"1", "id":"5201"}, {"last_update":"1192454400", "numofapproved":"1", "id":"12621"}, {"last_update":"1193414234", "numofapproved":"1", "id":"14141"}, {"last_update":"1194270682", "numofapproved":"1", "id":"14961"}, {"last_update":"1184061669", "numofapproved":"1", "id":"4561"}, {"last_update":"1186161284", "numofapproved":"1", "id":"6141"}, {"last_update":"1187714492", "numofapproved":"1", "id":"7061"}, {"last_update":"1187893562", "numofapproved":"1", "id":"7361"}, {"last_update":"1190815311", "numofapproved":"1", "id":"10301"}, {"last_update":"1193388120", "numofapproved":"1", "id":"13951"}, {"last_update":"1195239956", "numofapproved":"1", "id":"17041"}, {"last_update":"1179147467", "numofapproved":"1", "id":"1381"}, {"last_update":"1182346611", "numofapproved":"1", "id":"3341"}, {"last_update":"1184267506", "numofapproved":"1", "id":"4802"}, {"last_update":"1192047087", "numofapproved":"1", "id":"12161"}, {"last_update":"1192198948", "numofapproved":"1", "id":"12441"}, {"last_update":"1193208717", "numofapproved":"1", "id":"13528"}, {"last_update":"1194907182", "numofapproved":"1", "id":"16001"}, {"last_update":"1179153020", "numofapproved":"1", "id":"1385"}, {"last_update":"1179835655", "numofapproved":"1", "id":"1641"}, {"last_update":"1181234739", "numofapproved":"1", "id":"2542"}, {"last_update":"1182356477", "numofapproved":"1", "id":"3343"}, {"last_update":"1182418583", "numofapproved":"1", "id":"3381"}, {"last_update":"1184568502", "numofapproved":"1", "id":"4905"}, {"last_update":"1189151603", "numofapproved":"1", "id":"8581"}, {"last_update":"1191595695", "numofapproved":"1", "id":"11621"}, {"last_update":"1193105000", "numofapproved":"1", "id":"13421"}, {"last_update":"1195104657", "numofapproved":"1", "id":"16701"}], "request_timestamp":1206363392.08521, "request_call":"requestDetails", "instance":"tbedi", "call_time":"0.10059", "request_date":"2008-03-2412:56:32 UTC", "request_url":"http://cmsdoc.cern.ch/cms/test/aprom/phedex/dev/gowri/datasvc/tbedi/requestDetails?format=json"}} """ from jsonParser import jsonObject data = jsonObject.parseString(s) #~ from pprint import pprint #~ pprint( data[0].asList() ) #~ print #~ print data.dump() print(data.phedex.call_time) print(data.phedex.instance) print(data.phedex.request_call) print(len(data.phedex.request)) for req in data.phedex.request[:10]: #~ print req.dump() print("-", req.id, req.last_update) pyparsing-2.2.0+dfsg1/examples/matchPreviousDemo.py0000644000175000017500000000111312466013312021051 0ustar zigozigo# # matchPreviousDemo.py # from pyparsing import * src = """ class a ... end a; class b ... end b; class c ... end d;""" identifier = Word(alphas) classIdent = identifier("classname") # note that this also makes a copy of identifier classHead = "class" + classIdent classBody = "..." classEnd = "end" + matchPreviousLiteral(classIdent) + ';' classDefn = classHead + classBody + classEnd # use this form to catch syntax error # classDefn = classHead + classBody - classEnd for tokens in classDefn.searchString(src): print(tokens.classname)pyparsing-2.2.0+dfsg1/examples/excelExpr.py0000644000175000017500000000423512755614237017400 0ustar zigozigo# excelExpr.py # # Copyright 2010, Paul McGuire # # A partial implementation of a parser of Excel formula expressions. # from pyparsing import (CaselessKeyword, Suppress, Word, alphas, alphanums, nums, Optional, Group, oneOf, Forward, Regex, infixNotation, opAssoc, dblQuotedString, delimitedList, Combine, Literal, QuotedString, ParserElement, pyparsing_common) ParserElement.enablePackrat() EQ,LPAR,RPAR,COLON,COMMA = map(Suppress, '=():,') EXCL, DOLLAR = map(Literal,"!$") sheetRef = Word(alphas, alphanums) | QuotedString("'",escQuote="''") colRef = Optional(DOLLAR) + Word(alphas,max=2) rowRef = Optional(DOLLAR) + Word(nums) cellRef = Combine(Group(Optional(sheetRef + EXCL)("sheet") + colRef("col") + rowRef("row"))) cellRange = (Group(cellRef("start") + COLON + cellRef("end"))("range") | cellRef | Word(alphas,alphanums)) expr = Forward() COMPARISON_OP = oneOf("< = > >= <= != <>") condExpr = expr + COMPARISON_OP + expr ifFunc = (CaselessKeyword("if") - LPAR + Group(condExpr)("condition") + COMMA + Group(expr)("if_true") + COMMA + Group(expr)("if_false") + RPAR) statFunc = lambda name : Group(CaselessKeyword(name) + Group(LPAR + delimitedList(expr) + RPAR)) sumFunc = statFunc("sum") minFunc = statFunc("min") maxFunc = statFunc("max") aveFunc = statFunc("ave") funcCall = ifFunc | sumFunc | minFunc | maxFunc | aveFunc multOp = oneOf("* /") addOp = oneOf("+ -") numericLiteral = pyparsing_common.number operand = numericLiteral | funcCall | cellRange | cellRef arithExpr = infixNotation(operand, [ (multOp, 2, opAssoc.LEFT), (addOp, 2, opAssoc.LEFT), ]) textOperand = dblQuotedString | cellRef textExpr = infixNotation(textOperand, [ ('&', 2, opAssoc.LEFT), ]) expr << (arithExpr | textExpr) (EQ + expr).runTests("""\ =3*A7+5 =3*Sheet1!$A$7+5 =3*'Sheet 1'!$A$7+5" =3*'O''Reilly''s sheet'!$A$7+5 =if(Sum(A1:A25)>42,Min(B1:B25),if(Sum(C1:C25)>3.14, (Min(C1:C25)+3)*18,Max(B1:B25))) =sum(a1:a25,10,min(b1,c2,d3)) =if("T"&a2="TTime", "Ready", "Not ready") """)pyparsing-2.2.0+dfsg1/examples/indentedGrammarExample.py0000644000175000017500000000203712751534241022044 0ustar zigozigo# indentedGrammarExample.py # # Copyright (c) 2006,2016 Paul McGuire # # A sample of a pyparsing grammar using indentation for # grouping (like Python does). # # Updated to use indentedBlock helper method. # from pyparsing import * data = """\ def A(z): A1 B = 100 G = A2 A2 A3 B def BB(a,b,c): BB1 def BBA(): bba1 bba2 bba3 C D def spam(x,y): def eggs(z): pass """ indentStack = [1] stmt = Forward() suite = indentedBlock(stmt, indentStack) identifier = Word(alphas, alphanums) funcDecl = ("def" + identifier + Group( "(" + Optional( delimitedList(identifier) ) + ")" ) + ":") funcDef = Group( funcDecl + suite ) rvalue = Forward() funcCall = Group(identifier + "(" + Optional(delimitedList(rvalue)) + ")") rvalue << (funcCall | identifier | Word(nums)) assignment = Group(identifier + "=" + rvalue) stmt << ( funcDef | assignment | identifier ) module_body = OneOrMore(stmt) print(data) parseTree = module_body.parseString(data) parseTree.pprint() pyparsing-2.2.0+dfsg1/examples/antlr_grammar_tests.py0000644000175000017500000000476012752444655021516 0ustar zigozigo''' Created on 4 sept. 2010 @author: luca Submitted by Luca DallOlio, September, 2010 ''' import unittest import antlr_grammar class Test(unittest.TestCase): def testOptionsSpec(self): text = """options { language = Python; }""" antlr_grammar.optionsSpec.parseString(text) #@UndefinedVariable def testTokensSpec(self): text = """tokens { PLUS = '+' ; MINUS = '-' ; MULT = '*' ; DIV = '/' ; }""" antlr_grammar.tokensSpec.parseString(text) #@UndefinedVariable def testBlock(self): text = """( PLUS | MINUS )""" antlr_grammar.block.parseString(text) #@UndefinedVariable def testRule(self): text = """expr : term ( ( PLUS | MINUS ) term )* ;""" antlr_grammar.rule.parseString(text) #@UndefinedVariable def testLexerRule(self): text = """fragment DIGIT : '0'..'9' ;""" antlr_grammar.rule.parseString(text) #@UndefinedVariable def testLexerRule2(self): text = """WHITESPACE : ( '\t' | ' ' | '\r' | '\n'| '\u000C' )+ { $channel = HIDDEN; } ;""" #antlr_grammar.rule.parseString(text) #@UndefinedVariable def testGrammar(self): text = """grammar SimpleCalc; options { language = Python; } tokens { PLUS = '+' ; MINUS = '-' ; MULT = '*' ; DIV = '/' ; } /*------------------------------------------------------------------ * PARSER RULES *------------------------------------------------------------------*/ expr : term ( ( PLUS | MINUS ) term )* ; term : factor ( ( MULT | DIV ) factor )* ; factor : NUMBER ; /*------------------------------------------------------------------ * LEXER RULES *------------------------------------------------------------------*/ NUMBER : (DIGIT)+ ; /* WHITESPACE : ( '\t' | ' ' | '\r' | '\n'| '\u000C' )+ { $channel = HIDDEN; } ; */ fragment DIGIT : '0'..'9' ;""" antlrGrammarTree = antlr_grammar.grammarDef.parseString(text) #@UndefinedVariable pyparsingRules = antlr_grammar.antlrConverter(antlrGrammarTree) pyparsingRule = pyparsingRules["expr"] pyparsingTree = pyparsingRule.parseString("2 - 5 * 42 + 7 / 25") self.assertNotEqual(None, pyparsingTree) if __name__ == "__main__": #import sys;sys.argv = ['', 'Test.testOptionsSpec'] unittest.main()pyparsing-2.2.0+dfsg1/examples/numerics.py0000644000175000017500000000253412721227677017267 0ustar zigozigo# # numerics.py # # Examples of parsing real and integers using various grouping and # decimal point characters, varying by locale. # # Copyright 2016, Paul McGuire # # Format samples from https://docs.oracle.com/cd/E19455-01/806-0169/overview-9/index.html # tests = """\ # Canadian (English and French) 4 294 967 295,000 # Danish 4 294 967 295,000 # Finnish 4 294 967 295,000 # French 4 294 967 295,000 # German 4 294 967 295,000 # Italian 4.294.967.295,000 # Norwegian 4.294.967.295,000 # Spanish 4.294.967.295,000 # Swedish 4 294 967 295,000 # GB-English 4,294,967,295.000 # US-English 4,294,967,295.000 # Thai 4,294,967,295.000 """ from pyparsing import Regex comma_decimal = Regex(r'\d{1,2}(([ .])\d\d\d(\2\d\d\d)*)?,\d*') comma_decimal.setParseAction(lambda t: float(t[0].replace(' ','').replace('.','').replace(',','.'))) dot_decimal = Regex(r'\d{1,2}(([ ,])\d\d\d(\2\d\d\d)*)?\.\d*') dot_decimal.setParseAction(lambda t: float(t[0].replace(' ','').replace(',',''))) decimal = comma_decimal ^ dot_decimal decimal.runTests(tests, parseAll=True) grouped_integer = Regex(r'\d{1,2}(([ .,])\d\d\d(\2\d\d\d)*)?') grouped_integer.setParseAction(lambda t: int(t[0].replace(' ','').replace(',','').replace('.',''))) grouped_integer.runTests(tests, parseAll=False) pyparsing-2.2.0+dfsg1/examples/wordsToNum.py0000644000175000017500000000644012754072101017545 0ustar zigozigo# wordsToNum.py # Copyright 2006, Paul McGuire # # Sample parser grammar to read a number given in words, and return the numeric value. # from pyparsing import * from operator import mul from functools import reduce def makeLit(s,val): ret = CaselessLiteral(s).setName(s) return ret.setParseAction( replaceWith(val) ) unitDefinitions = [ ("zero", 0), ("oh", 0), ("zip", 0), ("zilch", 0), ("nada", 0), ("bupkis", 0), ("one", 1), ("two", 2), ("three", 3), ("four", 4), ("five", 5), ("six", 6), ("seven", 7), ("eight", 8), ("nine", 9), ("ten", 10), ("eleven", 11), ("twelve", 12), ("thirteen", 13), ("fourteen", 14), ("fifteen", 15), ("sixteen", 16), ("seventeen", 17), ("eighteen", 18), ("nineteen", 19), ] units = Or(makeLit(s,v) for s,v in unitDefinitions) tensDefinitions = [ ("ten", 10), ("twenty", 20), ("thirty", 30), ("forty", 40), ("fourty", 40), # for the spelling-challenged... ("fifty", 50), ("sixty", 60), ("seventy", 70), ("eighty", 80), ("ninety", 90), ] tens = Or(makeLit(s,v) for s,v in tensDefinitions) hundreds = makeLit("hundred", 100) majorDefinitions = [ ("thousand", int(1e3)), ("million", int(1e6)), ("billion", int(1e9)), ("trillion", int(1e12)), ("quadrillion", int(1e15)), ("quintillion", int(1e18)), ] mag = Or(makeLit(s,v) for s,v in majorDefinitions) wordprod = lambda t: reduce(mul,t) wordsum = lambda t: sum(t) numPart = (((( units + Optional(hundreds) ).setParseAction(wordprod) + Optional(tens)).setParseAction(wordsum) ^ tens ) + Optional(units) ).setParseAction(wordsum) numWords = OneOrMore( (numPart + Optional(mag)).setParseAction(wordprod) ).setParseAction(wordsum) + StringEnd() numWords.ignore(Literal("-")) numWords.ignore(CaselessLiteral("and")) def test(s,expected): try: fail_expected = (expected is None) success, results_tup = numWords.runTests(s, failureTests=fail_expected) assert success, "Failed test!" if not fail_expected: teststr, results = results_tup[0] observed = results[0] assert expected == observed, "incorrect parsed value, {} -> {}, should be {}".format(teststr, observed, expected) except Exception as exc: print("{}: {}".format(type(exc).__name__, exc)) test("one hundred twenty hundred", None) test("one hundred and twennty", None) test("one hundred and twenty", 120) test("one hundred and three", 103) test("one hundred twenty-three", 123) test("one hundred and twenty three", 123) test("one hundred twenty three million", 123000000) test("one hundred and twenty three million", 123000000) test("one hundred twenty three million and three", 123000003) test("fifteen hundred and sixty five", 1565) test("seventy-seven thousand eight hundred and nineteen", 77819) test("seven hundred seventy-seven thousand seven hundred and seventy-seven", 777777) test("zero", 0) test("forty two", 42) test("fourty two", 42)pyparsing-2.2.0+dfsg1/examples/dhcpd_leases_parser.py0000644000175000017500000000613412466013312021415 0ustar zigozigo# # dhcpd_leases_parser.py # # Copyright 2008, Paul McGuire # # Sample parser to parse a dhcpd.leases file to extract leases # and lease attributes # # format ref: http://www.linuxmanpages.com/man5/dhcpd.leases.5.php # sample = r"""\ # All times in this file are in UTC (GMT), not your local timezone. This is # not a bug, so please don't ask about it. There is no portable way to # store leases in the local timezone, so please don't request this as a # feature. If this is inconvenient or confusing to you, we sincerely # apologize. Seriously, though - don't ask. # The format of this file is documented in the dhcpd.leases(5) manual page. # This lease file was written by isc-dhcp-V3.0.4 lease 192.168.0.250 { starts 3 2008/01/23 17:16:41; ends 6 2008/02/02 17:16:41; tstp 6 2008/02/02 17:16:41; binding state free; hardware ethernet 00:17:f2:9b:d8:19; uid "\001\000\027\362\233\330\031"; } lease 192.168.0.198 { starts 1 2008/02/04 13:46:55; ends never; tstp 1 2008/02/04 17:04:14; binding state free; hardware ethernet 00:13:72:d3:3b:98; uid "\001\000\023r\323;\230"; } lease 192.168.0.239 { starts 3 2008/02/06 12:12:03; ends 4 2008/02/07 12:12:03; tstp 4 2008/02/07 12:12:03; binding state free; hardware ethernet 00:1d:09:65:93:26; } """ from pyparsing import * import datetime,time LBRACE,RBRACE,SEMI,QUOTE = map(Suppress,'{};"') ipAddress = Combine(Word(nums) + ('.' + Word(nums))*3) hexint = Word(hexnums,exact=2) macAddress = Combine(hexint + (':'+hexint)*5) hdwType = Word(alphanums) yyyymmdd = Combine((Word(nums,exact=4)|Word(nums,exact=2))+ ('/'+Word(nums,exact=2))*2) hhmmss = Combine(Word(nums,exact=2)+(':'+Word(nums,exact=2))*2) dateRef = oneOf(list("0123456"))("weekday") + yyyymmdd("date") + \ hhmmss("time") def utcToLocalTime(tokens): utctime = datetime.datetime.strptime("%(date)s %(time)s" % tokens, "%Y/%m/%d %H:%M:%S") localtime = utctime-datetime.timedelta(0,time.timezone,0) tokens["utcdate"],tokens["utctime"] = tokens["date"],tokens["time"] tokens["localdate"],tokens["localtime"] = str(localtime).split() del tokens["date"] del tokens["time"] dateRef.setParseAction(utcToLocalTime) startsStmt = "starts" + dateRef + SEMI endsStmt = "ends" + (dateRef | "never") + SEMI tstpStmt = "tstp" + dateRef + SEMI tsfpStmt = "tsfp" + dateRef + SEMI hdwStmt = "hardware" + hdwType("type") + macAddress("mac") + SEMI uidStmt = "uid" + QuotedString('"')("uid") + SEMI bindingStmt = "binding" + Word(alphanums) + Word(alphanums) + SEMI leaseStatement = startsStmt | endsStmt | tstpStmt | tsfpStmt | hdwStmt | \ uidStmt | bindingStmt leaseDef = "lease" + ipAddress("ipaddress") + LBRACE + \ Dict(ZeroOrMore(Group(leaseStatement))) + RBRACE for lease in leaseDef.searchString(sample): print(lease.dump()) print(lease.ipaddress,'->',lease.hardware.mac) print() pyparsing-2.2.0+dfsg1/examples/htmlStripper.py0000644000175000017500000000227412754024272020130 0ustar zigozigo# # htmlStripper.py # # Sample code for stripping HTML markup tags and scripts from # HTML source files. # # Copyright (c) 2006, 2016, Paul McGuire # from contextlib import closing import urllib.request, urllib.parse, urllib.error from pyparsing import (makeHTMLTags, SkipTo, commonHTMLEntity, replaceHTMLEntity, htmlComment, anyOpenTag, anyCloseTag, LineEnd, OneOrMore, replaceWith) scriptOpen,scriptClose = makeHTMLTags("script") scriptBody = scriptOpen + SkipTo(scriptClose) + scriptClose commonHTMLEntity.setParseAction(replaceHTMLEntity) # get some HTML targetURL = "http://wiki.python.org/moin/PythonDecoratorLibrary" with closing(urllib.request.urlopen( targetURL )) as targetPage: targetHTML = targetPage.read().decode("UTF-8") # first pass, strip out tags and translate entities firstPass = (htmlComment | scriptBody | commonHTMLEntity | anyOpenTag | anyCloseTag ).suppress().transformString(targetHTML) # first pass leaves many blank lines, collapse these down repeatedNewlines = LineEnd() + OneOrMore(LineEnd()) repeatedNewlines.setParseAction(replaceWith("\n\n")) secondPass = repeatedNewlines.transformString(firstPass) print(secondPass)pyparsing-2.2.0+dfsg1/examples/mozillaCalendarParser.py0000644000175000017500000000510312641073603021700 0ustar zigozigofrom pyparsing import Optional, oneOf, Dict, Literal, Word, printables, Group, OneOrMore, ZeroOrMore """ A simple parser for calendar (*.ics) files, as exported by the Mozilla calendar. Any suggestions and comments welcome. Version: 0.1 Copyright: Petri Savolainen License: Free for any use """ # TERMINALS BEGIN = Literal("BEGIN:").suppress() END = Literal("END:").suppress() valstr = printables + "\xe4\xf6\xe5\xd6\xc4\xc5 " EQ = Literal("=").suppress() SEMI = Literal(";").suppress() COLON = Literal(":").suppress() EVENT = Literal("VEVENT").suppress() CALENDAR = Literal("VCALENDAR").suppress() ALARM = Literal("VALARM").suppress() # TOKENS CALPROP = oneOf("VERSION PRODID METHOD") ALMPROP = oneOf("TRIGGER") EVTPROP = oneOf("X-MOZILLA-RECUR-DEFAULT-INTERVAL \ X-MOZILLA-RECUR-DEFAULT-UNITS \ UID DTSTAMP LAST-MODIFIED X RRULE EXDATE") propval = Word(valstr) typeval = Word(valstr) typename = oneOf("VALUE MEMBER FREQ UNTIL INTERVAL") proptype = Group(SEMI + typename + EQ + typeval).suppress() calprop = Group(CALPROP + ZeroOrMore(proptype) + COLON + propval) almprop = Group(ALMPROP + ZeroOrMore(proptype) + COLON + propval) evtprop = Group(EVTPROP + ZeroOrMore(proptype) + COLON + propval).suppress() \ | "CATEGORIES" + COLON + propval.setResultsName("categories") \ | "CLASS" + COLON + propval.setResultsName("class") \ | "DESCRIPTION" + COLON + propval.setResultsName("description") \ | "DTSTART" + proptype + COLON + propval.setResultsName("begin") \ | "DTEND" + proptype + COLON + propval.setResultsName("end") \ | "LOCATION" + COLON + propval.setResultsName("location") \ | "PRIORITY" + COLON + propval.setResultsName("priority") \ | "STATUS" + COLON + propval.setResultsName("status") \ | "SUMMARY" + COLON + propval.setResultsName("summary") \ | "URL" + COLON + propval.setResultsName("url") \ calprops = Group(OneOrMore(calprop)).suppress() evtprops = Group(OneOrMore(evtprop)) almprops = Group(OneOrMore(almprop)).suppress() alarm = BEGIN + ALARM + almprops + END + ALARM event = BEGIN + EVENT + evtprops + Optional(alarm) + END + EVENT events = Group(OneOrMore(event)) calendar = BEGIN + CALENDAR + calprops + ZeroOrMore(event) + END + CALENDAR calendars = OneOrMore(calendar) # PARSE ACTIONS def gotEvent(s,loc,toks): for event in toks: print(event.dump()) event.setParseAction(gotEvent) # MAIN PROGRAM if __name__=="__main__": calendars.parseFile("mozilla.ics") pyparsing-2.2.0+dfsg1/examples/adventureEngine.py0000644000175000017500000005016312466013312020547 0ustar zigozigo# adventureEngine.py # Copyright 2005-2006, Paul McGuire # # Updated 2012 - latest pyparsing API # from pyparsing import * import random import string def aOrAn( item ): if item.desc[0] in "aeiou": return "an " + item.desc else: return "a " + item.desc def enumerateItems(l): if len(l) == 0: return "nothing" out = [] if len(l) > 1: out.append(', '.join(aOrAn(item) for item in l[:-1])) out.append('and') out.append(aOrAn(l[-1])) return " ".join(out) def enumerateDoors(l): if len(l) == 0: return "" out = [] if len(l) > 1: out.append(', '.join(l[:-1])) out.append("and") out.append(l[-1]) return " ".join(out) class Room(object): def __init__(self, desc): self.desc = desc self.inv = [] self.gameOver = False self.doors = [None,None,None,None] def __getattr__(self,attr): return \ { "n":self.doors[0], "s":self.doors[1], "e":self.doors[2], "w":self.doors[3], }[attr] def enter(self,player): if self.gameOver: player.gameOver = True def addItem(self, it): self.inv.append(it) def removeItem(self,it): self.inv.remove(it) def describe(self): print(self.desc) visibleItems = [ it for it in self.inv if it.isVisible ] if random.random() > 0.5: if len(visibleItems) > 1: is_form = "are" else: is_form = "is" print("There %s %s here." % (is_form, enumerateItems(visibleItems))) else: print("You see %s." % (enumerateItems(visibleItems))) class Exit(Room): def __init__(self): super(Exit,self).__init__("") def enter(self,player): player.gameOver = True class Item(object): items = {} def __init__(self, desc): self.desc = desc self.isDeadly = False self.isFragile = False self.isBroken = False self.isTakeable = True self.isVisible = True self.isOpenable = False self.useAction = None self.usableConditionTest = None self.cantTakeMessage = "You can't take that!" Item.items[desc] = self def __str__(self): return self.desc def breakItem(self): if not self.isBroken: print("") self.desc = "broken " + self.desc self.isBroken = True def isUsable(self, player, target): if self.usableConditionTest: return self.usableConditionTest( player, target ) else: return False def useItem(self, player, target): if self.useAction: self.useAction(player, self, target) class OpenableItem(Item): def __init__(self, desc, contents=None): super(OpenableItem,self).__init__(desc) self.isOpenable = True self.isOpened = False if contents is not None: if isinstance(contents, Item): self.contents = [contents,] else: self.contents = contents else: self.contents = [] def openItem(self, player): if not self.isOpened: self.isOpened = not self.isOpened if self.contents is not None: for item in self.contents: player.room.addItem( item ) self.contents = [] self.desc = "open " + self.desc def closeItem(self, player): if self.isOpened: self.isOpened = not self.isOpened if self.desc.startswith("open "): self.desc = self.desc[5:] class Command(object): "Base class for commands" def __init__(self, verb, verbProg): self.verb = verb self.verbProg = verbProg @staticmethod def helpDescription(): return "" def _doCommand(self, player): pass def __call__(self, player ): print(self.verbProg.capitalize()+"...") self._doCommand(player) class MoveCommand(Command): def __init__(self, quals): super(MoveCommand,self).__init__("MOVE", "moving") self.direction = quals.direction[0] @staticmethod def helpDescription(): return """MOVE or GO - go NORTH, SOUTH, EAST, or WEST (can abbreviate as 'GO N' and 'GO W', or even just 'E' and 'S')""" def _doCommand(self, player): rm = player.room nextRoom = rm.doors[ { "N":0, "S":1, "E":2, "W":3, }[self.direction] ] if nextRoom: player.moveTo( nextRoom ) else: print("Can't go that way.") class TakeCommand(Command): def __init__(self, quals): super(TakeCommand,self).__init__("TAKE", "taking") self.subject = quals.item @staticmethod def helpDescription(): return "TAKE or PICKUP or PICK UP - pick up an object (but some are deadly)" def _doCommand(self, player): rm = player.room subj = Item.items[self.subject] if subj in rm.inv and subj.isVisible: if subj.isTakeable: rm.removeItem(subj) player.take(subj) else: print(subj.cantTakeMessage) else: print("There is no %s here." % subj) class DropCommand(Command): def __init__(self, quals): super(DropCommand,self).__init__("DROP", "dropping") self.subject = quals.item @staticmethod def helpDescription(): return "DROP or LEAVE - drop an object (but fragile items may break)" def _doCommand(self, player): rm = player.room subj = Item.items[self.subject] if subj in player.inv: rm.addItem(subj) player.drop(subj) else: print("You don't have %s." % (aOrAn(subj))) class InventoryCommand(Command): def __init__(self, quals): super(InventoryCommand,self).__init__("INV", "taking inventory") @staticmethod def helpDescription(): return "INVENTORY or INV or I - lists what items you have" def _doCommand(self, player): print("You have %s." % enumerateItems( player.inv )) class LookCommand(Command): def __init__(self, quals): super(LookCommand,self).__init__("LOOK", "looking") @staticmethod def helpDescription(): return "LOOK or L - describes the current room and any objects in it" def _doCommand(self, player): player.room.describe() class DoorsCommand(Command): def __init__(self, quals): super(DoorsCommand,self).__init__("DOORS", "looking for doors") @staticmethod def helpDescription(): return "DOORS - display what doors are visible from this room" def _doCommand(self, player): rm = player.room numDoors = sum([1 for r in rm.doors if r is not None]) if numDoors == 0: reply = "There are no doors in any direction." else: if numDoors == 1: reply = "There is a door to the " else: reply = "There are doors to the " doorNames = [ {0:"north", 1:"south", 2:"east", 3:"west"}[i] for i,d in enumerate(rm.doors) if d is not None ] #~ print doorNames reply += enumerateDoors( doorNames ) reply += "." print(reply) class UseCommand(Command): def __init__(self, quals): super(UseCommand,self).__init__("USE", "using") self.subject = Item.items[quals.usedObj] if quals.targetObj: self.target = Item.items[quals.targetObj] else: self.target = None @staticmethod def helpDescription(): return "USE or U - use an object, optionally IN or ON another object" def _doCommand(self, player): rm = player.room availItems = rm.inv + player.inv if self.subject in availItems: if self.subject.isUsable( player, self.target ): self.subject.useItem( player, self.target ) else: print("You can't use that here.") else: print("There is no %s here to use." % self.subject) class OpenCommand(Command): def __init__(self, quals): super(OpenCommand,self).__init__("OPEN", "opening") self.subject = Item.items[quals.item] @staticmethod def helpDescription(): return "OPEN or O - open an object" def _doCommand(self, player): rm = player.room availItems = rm.inv+player.inv if self.subject in availItems: if self.subject.isOpenable: if not self.subject.isOpened: self.subject.openItem( player ) else: print("It's already open.") else: print("You can't open that.") else: print("There is no %s here to open." % self.subject) class CloseCommand(Command): def __init__(self, quals): super(CloseCommand,self).__init__("CLOSE", "closing") self.subject = Item.items[quals.item] @staticmethod def helpDescription(): return "CLOSE or CL - close an object" def _doCommand(self, player): rm = player.room availItems = rm.inv+player.inv if self.subject in availItems: if self.subject.isOpenable: if self.subject.isOpened: self.subject.closeItem( player ) else: print("You can't close that, it's not open.") else: print("You can't close that.") else: print("There is no %s here to close." % self.subject) class QuitCommand(Command): def __init__(self, quals): super(QuitCommand,self).__init__("QUIT", "quitting") @staticmethod def helpDescription(): return "QUIT or Q - ends the game" def _doCommand(self, player): print("Ok....") player.gameOver = True class HelpCommand(Command): def __init__(self, quals): super(HelpCommand,self).__init__("HELP", "helping") @staticmethod def helpDescription(): return "HELP or H or ? - displays this help message" def _doCommand(self, player): print("Enter any of the following commands (not case sensitive):") for cmd in [ InventoryCommand, DropCommand, TakeCommand, UseCommand, OpenCommand, CloseCommand, MoveCommand, LookCommand, DoorsCommand, QuitCommand, HelpCommand, ]: print(" - %s" % cmd.helpDescription()) print() class AppParseException(ParseException): pass class Parser(object): def __init__(self): self.bnf = self.makeBNF() def makeBNF(self): invVerb = oneOf("INV INVENTORY I", caseless=True) dropVerb = oneOf("DROP LEAVE", caseless=True) takeVerb = oneOf("TAKE PICKUP", caseless=True) | \ (CaselessLiteral("PICK") + CaselessLiteral("UP") ) moveVerb = oneOf("MOVE GO", caseless=True) | empty useVerb = oneOf("USE U", caseless=True) openVerb = oneOf("OPEN O", caseless=True) closeVerb = oneOf("CLOSE CL", caseless=True) quitVerb = oneOf("QUIT Q", caseless=True) lookVerb = oneOf("LOOK L", caseless=True) doorsVerb = CaselessLiteral("DOORS") helpVerb = oneOf("H HELP ?",caseless=True) itemRef = OneOrMore(Word(alphas)).setParseAction( self.validateItemName ) nDir = oneOf("N NORTH",caseless=True).setParseAction(replaceWith("N")) sDir = oneOf("S SOUTH",caseless=True).setParseAction(replaceWith("S")) eDir = oneOf("E EAST",caseless=True).setParseAction(replaceWith("E")) wDir = oneOf("W WEST",caseless=True).setParseAction(replaceWith("W")) moveDirection = nDir | sDir | eDir | wDir invCommand = invVerb dropCommand = dropVerb + itemRef("item") takeCommand = takeVerb + itemRef("item") useCommand = useVerb + itemRef("usedObj") + \ Optional(oneOf("IN ON",caseless=True)) + \ Optional(itemRef,default=None)("targetObj") openCommand = openVerb + itemRef("item") closeCommand = closeVerb + itemRef("item") moveCommand = moveVerb + moveDirection("direction") quitCommand = quitVerb lookCommand = lookVerb doorsCommand = doorsVerb helpCommand = helpVerb # attach command classes to expressions invCommand.setParseAction(InventoryCommand) dropCommand.setParseAction(DropCommand) takeCommand.setParseAction(TakeCommand) useCommand.setParseAction(UseCommand) openCommand.setParseAction(OpenCommand) closeCommand.setParseAction(CloseCommand) moveCommand.setParseAction(MoveCommand) quitCommand.setParseAction(QuitCommand) lookCommand.setParseAction(LookCommand) doorsCommand.setParseAction(DoorsCommand) helpCommand.setParseAction(HelpCommand) # define parser using all command expressions return ( invCommand | useCommand | openCommand | closeCommand | dropCommand | takeCommand | moveCommand | lookCommand | doorsCommand | helpCommand | quitCommand )("command") + LineEnd() def validateItemName(self,s,l,t): iname = " ".join(t) if iname not in Item.items: raise AppParseException(s,l,"No such item '%s'." % iname) return iname def parseCmd(self, cmdstr): try: ret = self.bnf.parseString(cmdstr) return ret except AppParseException as pe: print(pe.msg) except ParseException as pe: print(random.choice([ "Sorry, I don't understand that.", "Huh?", "Excuse me?", "???", "What?" ] )) class Player(object): def __init__(self, name): self.name = name self.gameOver = False self.inv = [] def moveTo(self, rm): self.room = rm rm.enter(self) if self.gameOver: if rm.desc: rm.describe() print("Game over!") else: rm.describe() def take(self,it): if it.isDeadly: print("Aaaagh!...., the %s killed me!" % it) self.gameOver = True else: self.inv.append(it) def drop(self,it): self.inv.remove(it) if it.isFragile: it.breakItem() def createRooms( rm ): """ create rooms, using multiline string showing map layout string contains symbols for the following: A-Z, a-z indicate rooms, and rooms will be stored in a dictionary by reference letter -, | symbols indicate connection between rooms <, >, ^, . symbols indicate one-way connection between rooms """ # start with empty dictionary of rooms ret = {} # look for room symbols, and initialize dictionary # - exit room is always marked 'Z' for c in rm: if c in string.ascii_letters: if c != "Z": ret[c] = Room(c) else: ret[c] = Exit() # scan through input string looking for connections between rooms rows = rm.split("\n") for row,line in enumerate(rows): for col,c in enumerate(line): if c in string.ascii_letters: room = ret[c] n = None s = None e = None w = None # look in neighboring cells for connection symbols (must take # care to guard that neighboring cells exist before testing # contents) if col > 0 and line[col-1] in "<-": other = line[col-2] w = ret[other] if col < len(line)-1 and line[col+1] in "->": other = line[col+2] e = ret[other] if row > 1 and col < len(rows[row-1]) and rows[row-1][col] in '|^': other = rows[row-2][col] n = ret[other] if row < len(rows)-1 and col < len(rows[row+1]) and rows[row+1][col] in '|.': other = rows[row+2][col] s = ret[other] # set connections to neighboring rooms room.doors=[n,s,e,w] return ret # put items in rooms def putItemInRoom(i,r): if isinstance(r,str): r = rooms[r] r.addItem( Item.items[i] ) def playGame(p,startRoom): # create parser parser = Parser() p.moveTo( startRoom ) while not p.gameOver: cmdstr = input(">> ") cmd = parser.parseCmd(cmdstr) if cmd is not None: cmd.command( p ) print() print("You ended the game with:") for i in p.inv: print(" -", aOrAn(i)) #==================== # start game definition roomMap = """ d-Z | f-c-e . | q'+"'")) | ('u' + Word(hexnums, exact=4)) | Word(printables, exact=1)) LITERAL_CHAR = ESC | ~(Literal("'") | Literal('\\')) + Word(printables, exact=1) CHAR_LITERAL = Suppress("'") + LITERAL_CHAR + Suppress("'") STRING_LITERAL = Suppress("'") + Combine(OneOrMore(LITERAL_CHAR)) + Suppress("'") DOUBLE_QUOTE_STRING_LITERAL = '"' + ZeroOrMore(LITERAL_CHAR) + '"' DOUBLE_ANGLE_STRING_LITERAL = '<<' + ZeroOrMore(Word(printables, exact=1)) + '>>' TOKEN_REF = Word(alphas.upper(), alphanums+'_') RULE_REF = Word(alphas.lower(), alphanums+'_') ACTION_ESC = (Suppress("\\") + Suppress("'")) | Suppress('\\"') | Suppress('\\') + (~(Literal("'") | Literal('"')) + Word(printables, exact=1)) ACTION_CHAR_LITERAL = Suppress("'") + (ACTION_ESC | ~(Literal('\\') | Literal("'")) + Word(printables, exact=1)) + Suppress("'") ACTION_STRING_LITERAL = Suppress('"') + ZeroOrMore(ACTION_ESC | ~(Literal('\\') | Literal('"')) + Word(printables, exact=1)) + Suppress('"') SRC = Suppress('src') + ACTION_STRING_LITERAL("file") + INT("line") id = TOKEN_REF | RULE_REF SL_COMMENT = Suppress('//') + Suppress('$ANTLR') + SRC | ZeroOrMore(~EOL + Word(printables)) + EOL ML_COMMENT = cStyleComment WS = OneOrMore(Suppress(' ') | Suppress('\t') | (Optional(Suppress('\r')) + Literal('\n'))) WS_LOOP = ZeroOrMore(SL_COMMENT | ML_COMMENT) NESTED_ARG_ACTION = Forward() NESTED_ARG_ACTION << Suppress('[') + ZeroOrMore(NESTED_ARG_ACTION | ACTION_STRING_LITERAL | ACTION_CHAR_LITERAL) + Suppress(']') ARG_ACTION = NESTED_ARG_ACTION NESTED_ACTION = Forward() NESTED_ACTION << Suppress('{') + ZeroOrMore(NESTED_ACTION | SL_COMMENT | ML_COMMENT | ACTION_STRING_LITERAL | ACTION_CHAR_LITERAL) + Suppress('}') ACTION = NESTED_ACTION + Optional('?') SCOPE = Suppress('scope') OPTIONS = Suppress('options') + Suppress('{') # + WS_LOOP + Suppress('{') TOKENS = Suppress('tokens') + Suppress('{') # + WS_LOOP + Suppress('{') FRAGMENT = 'fragment'; TREE_BEGIN = Suppress('^(') ROOT = Suppress('^') BANG = Suppress('!') RANGE = Suppress('..') REWRITE = Suppress('->') # General Parser Definitions # Grammar heading optionValue = id | STRING_LITERAL | CHAR_LITERAL | INT | Literal('*').setName("s") option = Group(id("id") + Suppress('=') + optionValue("value"))("option") optionsSpec = OPTIONS + Group(OneOrMore(option + Suppress(';')))("options") + Suppress('}') tokenSpec = Group(TOKEN_REF("token_ref") + (Suppress('=') + (STRING_LITERAL | CHAR_LITERAL)("lit")))("token") + Suppress(';') tokensSpec = TOKENS + Group(OneOrMore(tokenSpec))("tokens") + Suppress('}') attrScope = Suppress('scope') + id + ACTION grammarType = Keyword('lexer') + Keyword('parser') + Keyword('tree') actionScopeName = id | Keyword('lexer')("l") | Keyword('parser')("p") action = Suppress('@') + Optional(actionScopeName + Suppress('::')) + id + ACTION grammarHeading = Optional(ML_COMMENT("ML_COMMENT")) + Optional(grammarType) + Suppress('grammar') + id("grammarName") + Suppress(';') + Optional(optionsSpec) + Optional(tokensSpec) + ZeroOrMore(attrScope) + ZeroOrMore(action) modifier = Keyword('protected') | Keyword('public') | Keyword('private') | Keyword('fragment') ruleAction = Suppress('@') + id + ACTION throwsSpec = Suppress('throws') + delimitedList(id) ruleScopeSpec = (Suppress('scope') + ACTION) | (Suppress('scope') + delimitedList(id) + Suppress(';')) | (Suppress('scope') + ACTION + Suppress('scope') + delimitedList(id) + Suppress(';')) unary_op = oneOf("^ !") notTerminal = CHAR_LITERAL | TOKEN_REF | STRING_LITERAL terminal = (CHAR_LITERAL | TOKEN_REF + Optional(ARG_ACTION) | STRING_LITERAL | '.') + Optional(unary_op) block = Forward() notSet = Suppress('~') + (notTerminal | block) rangeNotPython = CHAR_LITERAL("c1") + RANGE + CHAR_LITERAL("c2") atom = Group(rangeNotPython + Optional(unary_op)("op")) | terminal | (notSet + Optional(unary_op)("op")) | (RULE_REF + Optional(ARG_ACTION("arg")) + Optional(unary_op)("op")) element = Forward() treeSpec = Suppress('^(') + element*(2,) + Suppress(')') ebnfSuffix = oneOf("? * +") ebnf = block + Optional(ebnfSuffix("op") | '=>') elementNoOptionSpec = (id("result_name") + oneOf('= +=')("labelOp") + atom("atom") + Optional(ebnfSuffix)) | (id("result_name") + oneOf('= +=')("labelOp") + block + Optional(ebnfSuffix)) | atom("atom") + Optional(ebnfSuffix) | ebnf | ACTION | (treeSpec + Optional(ebnfSuffix)) # | SEMPRED ( '=>' -> GATED_SEMPRED | -> SEMPRED ) element << Group(elementNoOptionSpec)("element") alternative = Group(Group(OneOrMore(element))("elements")) # Do not ask me why group is needed twice... seems like the xml that you see is not always the real structure? rewrite = Optional(Literal('TODO REWRITE RULES TODO')) block << Suppress('(') + Optional(Optional(optionsSpec("opts")) + Suppress(':')) + Group(alternative('a1') + rewrite + Group(ZeroOrMore(Suppress('|') + alternative('a2') + rewrite))("alternatives"))("block") + Suppress(')') altList = alternative('a1') + rewrite + Group(ZeroOrMore(Suppress('|') + alternative('a2') + rewrite))("alternatives") exceptionHandler = Suppress('catch') + ARG_ACTION + ACTION finallyClause = Suppress('finally') + ACTION exceptionGroup = (OneOrMore(exceptionHandler) + Optional(finallyClause)) | finallyClause ruleHeading = Optional(ML_COMMENT)("ruleComment") + Optional(modifier)("modifier") + id("ruleName") + Optional("!") + Optional(ARG_ACTION("arg")) + Optional(Suppress('returns') + ARG_ACTION("rt")) + Optional(throwsSpec) + Optional(optionsSpec) + Optional(ruleScopeSpec) + ZeroOrMore(ruleAction) rule = Group(ruleHeading + Suppress(':') + altList + Suppress(';') + Optional(exceptionGroup))("rule") grammarDef = grammarHeading + Group(OneOrMore(rule))("rules") def grammar(): return grammarDef def __antlrAlternativesConverter(pyparsingRules, antlrBlock): rule = None if hasattr(antlrBlock, 'alternatives') and antlrBlock.alternatives != '' and len(antlrBlock.alternatives) > 0: alternatives = [] alternatives.append(__antlrAlternativeConverter(pyparsingRules, antlrBlock.a1)) for alternative in antlrBlock.alternatives: alternatives.append(__antlrAlternativeConverter(pyparsingRules, alternative)) rule = MatchFirst(alternatives)("anonymous_or") elif hasattr(antlrBlock, 'a1') and antlrBlock.a1 != '': rule = __antlrAlternativeConverter(pyparsingRules, antlrBlock.a1) else: raise Exception('Not yet implemented') assert rule != None return rule def __antlrAlternativeConverter(pyparsingRules, antlrAlternative): elementList = [] for element in antlrAlternative.elements: rule = None if hasattr(element.atom, 'c1') and element.atom.c1 != '': regex = r'['+str(element.atom.c1[0])+'-'+str(element.atom.c2[0]+']') rule = Regex(regex)("anonymous_regex") elif hasattr(element, 'block') and element.block != '': rule = __antlrAlternativesConverter(pyparsingRules, element.block) else: ruleRef = element.atom assert ruleRef in pyparsingRules rule = pyparsingRules[element.atom](element.atom) if hasattr(element, 'op') and element.op != '': if element.op == '+': rule = Group(OneOrMore(rule))("anonymous_one_or_more") elif element.op == '*': rule = Group(ZeroOrMore(rule))("anonymous_zero_or_more") elif element.op == '?': rule = Optional(rule) else: raise Exception('rule operator not yet implemented : ' + element.op) rule = rule elementList.append(rule) if len(elementList) > 1: rule = Group(And(elementList))("anonymous_and") else: rule = elementList[0] assert rule != None return rule def __antlrRuleConverter(pyparsingRules, antlrRule): rule = None rule = __antlrAlternativesConverter(pyparsingRules, antlrRule) assert rule != None rule(antlrRule.ruleName) return rule def antlrConverter(antlrGrammarTree): pyparsingRules = {} antlrTokens = {} for antlrToken in antlrGrammarTree.tokens: antlrTokens[antlrToken.token_ref] = antlrToken.lit for antlrTokenName, antlrToken in list(antlrTokens.items()): pyparsingRules[antlrTokenName] = Literal(antlrToken) antlrRules = {} for antlrRule in antlrGrammarTree.rules: antlrRules[antlrRule.ruleName] = antlrRule pyparsingRules[antlrRule.ruleName] = Forward() # antlr is a top down grammar for antlrRuleName, antlrRule in list(antlrRules.items()): pyparsingRule = __antlrRuleConverter(pyparsingRules, antlrRule) assert pyparsingRule != None pyparsingRules[antlrRuleName] << pyparsingRule return pyparsingRules if __name__ == "__main__": text = """grammar SimpleCalc; options { language = Python; } tokens { PLUS = '+' ; MINUS = '-' ; MULT = '*' ; DIV = '/' ; } /*------------------------------------------------------------------ * PARSER RULES *------------------------------------------------------------------*/ expr : term ( ( PLUS | MINUS ) term )* ; term : factor ( ( MULT | DIV ) factor )* ; factor : NUMBER ; /*------------------------------------------------------------------ * LEXER RULES *------------------------------------------------------------------*/ NUMBER : (DIGIT)+ ; /* WHITESPACE : ( '\t' | ' ' | '\r' | '\n'| '\u000C' )+ { $channel = HIDDEN; } ; */ fragment DIGIT : '0'..'9' ; """ grammar().validate() antlrGrammarTree = grammar().parseString(text) print(antlrGrammarTree.asXML("antlrGrammarTree")) pyparsingRules = antlrConverter(antlrGrammarTree) pyparsingRule = pyparsingRules["expr"] pyparsingTree = pyparsingRule.parseString("2 - 5 * 42 + 7 / 25") print(pyparsingTree.asXML("pyparsingTree")) pyparsing-2.2.0+dfsg1/examples/dictExample2.py0000644000175000017500000000412012716260110017733 0ustar zigozigo# # dictExample2.py # # Illustration of using pyparsing's Dict class to process tabular data # Enhanced Dict example, courtesy of Mike Kelly # # Copyright (c) 2004, Paul McGuire # from pyparsing import Literal, Word, Group, Dict, ZeroOrMore, alphas, nums, delimitedList, pyparsing_common import pprint testData = """ +-------+------+------+------+------+------+------+------+------+ | | A1 | B1 | C1 | D1 | A2 | B2 | C2 | D2 | +=======+======+======+======+======+======+======+======+======+ | min | 7 | 43 | 7 | 15 | 82 | 98 | 1 | 37 | | max | 11 | 52 | 10 | 17 | 85 | 112 | 4 | 39 | | ave | 9 | 47 | 8 | 16 | 84 | 106 | 3 | 38 | | sdev | 1 | 3 | 1 | 1 | 1 | 3 | 1 | 1 | +-------+------+------+------+------+------+------+------+------+ """ # define grammar for datatable underline = Word("-=") number = pyparsing_common.integer vert = Literal("|").suppress() rowDelim = ("+" + ZeroOrMore( underline + "+" ) ).suppress() columnHeader = Group(vert + vert + delimitedList(Word(alphas + nums), "|") + vert) heading = rowDelim + columnHeader("columns") + rowDelim rowData = Group( vert + Word(alphas) + vert + delimitedList(number,"|") + vert ) trailing = rowDelim datatable = heading + Dict( ZeroOrMore(rowData) ) + trailing # now parse data and print results data = datatable.parseString(testData) print(data.dump()) print("data keys=", list(data.keys())) print("data['min']=", data['min']) print("sum(data['min']) =", sum(data['min'])) print("data.max =", data.max) print("sum(data.max) =", sum(data.max)) # now print transpose of data table, using column labels read from table header and # values from data lists print() print(" " * 5, end=' ') for i in range(1,len(data)): print("|%5s" % data[i][0], end=' ') print() print(("-" * 6) + ("+------" * (len(data)-1))) for i in range(len(data.columns)): print("%5s" % data.columns[i], end=' ') for j in range(len(data) - 1): print('|%5s' % data[j + 1][i + 1], end=' ') print() pyparsing-2.2.0+dfsg1/examples/scanYahoo.py0000644000175000017500000000070412466013312017344 0ustar zigozigofrom pyparsing import makeHTMLTags,SkipTo,htmlComment import urllib.request, urllib.parse, urllib.error serverListPage = urllib.request.urlopen( "http://www.yahoo.com" ) htmlText = serverListPage.read() serverListPage.close() aStart,aEnd = makeHTMLTags("A") link = aStart + SkipTo(aEnd).setResultsName("link") + aEnd link.ignore(htmlComment) for toks,start,end in link.scanString(htmlText): print(toks.link, "->", toks.startA.href)pyparsing-2.2.0+dfsg1/examples/simpleSQL.py0000644000175000017500000000572212766435261017314 0ustar zigozigo# simpleSQL.py # # simple demo of using the parsing library to do simple-minded SQL parsing # could be extended to include where clauses etc. # # Copyright (c) 2003,2016, Paul McGuire # from pyparsing import Literal, CaselessLiteral, Word, delimitedList, Optional, \ Combine, Group, alphas, nums, alphanums, ParseException, Forward, oneOf, quotedString, \ ZeroOrMore, restOfLine, CaselessKeyword, pyparsing_common # define SQL tokens selectStmt = Forward() SELECT, FROM, WHERE = map(CaselessKeyword, "select from where".split()) ident = Word( alphas, alphanums + "_$" ).setName("identifier") columnName = delimitedList(ident, ".", combine=True).setName("column name") columnName.addParseAction(pyparsing_common.upcaseTokens) columnNameList = Group( delimitedList(columnName)) tableName = delimitedList(ident, ".", combine=True).setName("table name") tableName.addParseAction(pyparsing_common.upcaseTokens) tableNameList = Group(delimitedList(tableName)) whereExpression = Forward() and_, or_, in_ = map(CaselessKeyword, "and or in".split()) binop = oneOf("= != < > >= <= eq ne lt le gt ge", caseless=True) realNum = pyparsing_common.real() intNum = pyparsing_common.signed_integer() columnRval = realNum | intNum | quotedString | columnName # need to add support for alg expressions whereCondition = Group( ( columnName + binop + columnRval ) | ( columnName + in_ + "(" + delimitedList( columnRval ) + ")" ) | ( columnName + in_ + "(" + selectStmt + ")" ) | ( "(" + whereExpression + ")" ) ) whereExpression << whereCondition + ZeroOrMore( ( and_ | or_ ) + whereExpression ) # define the grammar selectStmt <<= (SELECT + ('*' | columnNameList)("columns") + FROM + tableNameList( "tables" ) + Optional(Group(WHERE + whereExpression), "")("where")) simpleSQL = selectStmt # define Oracle comment format, and ignore them oracleSqlComment = "--" + restOfLine simpleSQL.ignore( oracleSqlComment ) if __name__ == "__main__": simpleSQL.runTests("""\ # multiple tables SELECT * from XYZZY, ABC # dotted table name select * from SYS.XYZZY Select A from Sys.dual Select A,B,C from Sys.dual Select A, B, C from Sys.dual, Table2 # FAIL - invalid SELECT keyword Xelect A, B, C from Sys.dual # FAIL - invalid FROM keyword Select A, B, C frox Sys.dual # FAIL - incomplete statement Select # FAIL - incomplete statement Select * from # FAIL - invalid column Select &&& frox Sys.dual # where clause Select A from Sys.dual where a in ('RED','GREEN','BLUE') # compound where clause Select A from Sys.dual where a in ('RED','GREEN','BLUE') and b in (10,20,30) # where clause with comparison operator Select A,b from table1,table2 where table1.id eq table2.id""") pyparsing-2.2.0+dfsg1/examples/pgn.py0000644000175000017500000000655412641072656016230 0ustar zigozigo# pgn.py rel. 1.1 17-sep-2004 # # Demonstration of the parsing module, implementing a pgn parser. # # The aim of this parser is not to support database application, # but to create automagically a pgn annotated reading the log console file # of a lecture of ICC (Internet Chess Club), saved by Blitzin. # Of course you can modify the Abstract Syntax Tree to your purpose. # # Copyright 2004, by Alberto Santini http://www.albertosantini.it/chess/ # from pyparsing import alphanums, nums, quotedString from pyparsing import Combine, Forward, Group, Literal, oneOf, OneOrMore, Optional, Suppress, ZeroOrMore, White, Word from pyparsing import ParseException # # define pgn grammar # tag = Suppress("[") + Word(alphanums) + Combine(quotedString) + Suppress("]") comment = Suppress("{") + Word(alphanums + " ") + Suppress("}") dot = Literal(".") piece = oneOf("K Q B N R") file_coord = oneOf("a b c d e f g h") rank_coord = oneOf("1 2 3 4 5 6 7 8") capture = oneOf("x :") promote = Literal("=") castle_queenside = oneOf("O-O-O 0-0-0 o-o-o") castle_kingside = oneOf("O-O 0-0 o-o") move_number = Optional(comment) + Word(nums) + dot m1 = file_coord + rank_coord # pawn move e.g. d4 m2 = file_coord + capture + file_coord + rank_coord # pawn capture move e.g. dxe5 m3 = file_coord + "8" + promote + piece # pawn promotion e.g. e8=Q m4 = piece + file_coord + rank_coord # piece move e.g. Be6 m5 = piece + file_coord + file_coord + rank_coord # piece move e.g. Nbd2 m6 = piece + rank_coord + file_coord + rank_coord # piece move e.g. R4a7 m7 = piece + capture + file_coord + rank_coord # piece capture move e.g. Bxh7 m8 = castle_queenside | castle_kingside # castling e.g. o-o check = oneOf("+ ++") mate = Literal("#") annotation = Word("!?", max=2) nag = " $" + Word(nums) decoration = check | mate | annotation | nag variant = Forward() half_move = Combine((m3 | m1 | m2 | m4 | m5 | m6 | m7 | m8) + Optional(decoration)) \ + Optional(comment) +Optional(variant) move = Suppress(move_number) + half_move + Optional(half_move) variant << "(" + OneOrMore(move) + ")" # grouping the plies (half-moves) for each move: useful to group annotations, variants... # suggested by Paul McGuire :) move = Group(Suppress(move_number) + half_move + Optional(half_move)) variant << Group("(" + OneOrMore(move) + ")") game_terminator = oneOf("1-0 0-1 1/2-1/2 *") pgnGrammar = Suppress(ZeroOrMore(tag)) + ZeroOrMore(move) + Optional(Suppress(game_terminator)) def parsePGN( pgn, bnf=pgnGrammar, fn=None ): try: return bnf.parseString( pgn ) except ParseException as err: print(err.line) print(" "*(err.column-1) + "^") print(err) if __name__ == "__main__": # input string pgn = """ [Event "ICC 5 0 u"] [Site "Internet Chess Club"] [Date "2004.01.25"] [Round "-"] [White "guest920"] [Black "IceBox"] [Result "0-1"] [ICCResult "White checkmated"] [BlackElo "1498"] [Opening "French defense"] [ECO "C00"] [NIC "FR.01"] [Time "04:44:56"] [TimeControl "300+0"] 1. e4 e6 2. Nf3 d5 $2 3. exd5 (3. e5 g6 4. h4) exd5 4. Qe2+ Qe7 5. Qxe7+ Bxe7 6. d3 Nf6 7. Be3 Bg4 8. Nbd2 c5 9. h3 Be6 10. O-O-O Nc6 11. g4 Bd6 12. g5 Nd7 13. Rg1 d4 14. g6 fxg6 15. Bg5 Rf8 16. a3 Bd5 17. Re1+ Nde5 18. Nxe5 Nxe5 19. Bf4 Rf5 20. Bxe5 Rxe5 21. Rg5 Rxe1# {Black wins} 0-1 """ # parse input string tokens = parsePGN(pgn, pgnGrammar) print(tokens.dump()) pyparsing-2.2.0+dfsg1/examples/SimpleCalc.py0000644000175000017500000000605312466013312017437 0ustar zigozigo# SimpleCalc.py # # Demonstration of the parsing module, # Sample usage # # $ python SimpleCalc.py # Type in the string to be parse or 'quit' to exit the program # > g=67.89 + 7/5 # 69.29 # > g # 69.29 # > h=(6*g+8.8)-g # 355.25 # > h + 1 # 356.25 # > 87.89 + 7/5 # 89.29 # > ans+10 # 99.29 # > quit # Good bye! # # # Uncomment the line below for readline support on interactive terminal # import readline from pyparsing import ParseException, Word, alphas, alphanums import math # Debugging flag can be set to either "debug_flag=True" or "debug_flag=False" debug_flag=False variables = {} from fourFn import BNF, exprStack, fn, opn def evaluateStack( s ): op = s.pop() if op == 'unary -': return -evaluateStack( s ) if op in "+-*/^": op2 = evaluateStack( s ) op1 = evaluateStack( s ) return opn[op]( op1, op2 ) elif op == "PI": return math.pi # 3.1415926535 elif op == "E": return math.e # 2.718281828 elif op in fn: return fn[op]( evaluateStack( s ) ) elif op[0].isalpha(): if op in variables: return variables[op] raise Exception("invalid identifier '%s'" % op) else: return float( op ) arithExpr = BNF() ident = Word(alphas, alphanums).setName("identifier") assignment = ident("varname") + '=' + arithExpr pattern = assignment | arithExpr if __name__ == '__main__': # input_string input_string='' # Display instructions on how to quit the program print("Type in the string to be parsed or 'quit' to exit the program") input_string = input("> ") while input_string != 'quit': if input_string.lower() == 'debug': debug_flag=True input_string = input("> ") continue # Reset to an empty exprStack del exprStack[:] if input_string != '': # try parsing the input string try: L=pattern.parseString( input_string, parseAll=True ) except ParseException as err: L=['Parse Failure',input_string] # show result of parsing the input string if debug_flag: print(input_string, "->", L) if len(L)==0 or L[0] != 'Parse Failure': if debug_flag: print("exprStack=", exprStack) # calculate result , store a copy in ans , display the result to user try: result=evaluateStack(exprStack) except Exception as e: print(str(e)) else: variables['ans']=result print(result) # Assign result to a variable if required if L.varname: variables[L.varname] = result if debug_flag: print("variables=",variables) else: print('Parse Failure') print(err.line) print(" "*(err.column-1) + "^") print(err) # obtain new input string input_string = input("> ") # if user type 'quit' then say goodbye print("Good bye!") pyparsing-2.2.0+dfsg1/examples/stateMachine2.py0000644000175000017500000002117112466013312020110 0ustar zigozigo# stateMachine.py # # module to define .pystate import handler # #import imputil import sys import os import types import urllib.parse DEBUG = False from pyparsing import Word, Group, ZeroOrMore, alphas, \ alphanums, ParserElement, ParseException, ParseSyntaxException, \ Empty, LineEnd, OneOrMore, col, Keyword, pythonStyleComment, \ StringEnd, traceParseAction ident = Word(alphas+"_", alphanums+"_$") pythonKeywords = """and as assert break class continue def del elif else except exec finally for from global if import in is lambda None not or pass print raise return try while with yield True False""" pythonKeywords = set(pythonKeywords.split()) def no_keywords_allowed(s,l,t): wd = t[0] if wd in pythonKeywords: errmsg = "cannot not use keyword '%s' " \ "as an identifier" % wd raise ParseException(s,l,errmsg) ident.setParseAction(no_keywords_allowed) stateTransition = ident("fromState") + "->" + ident("toState") stateMachine = Keyword("statemachine") + \ ident("name") + ":" + \ OneOrMore(Group(stateTransition))("transitions") namedStateTransition = (ident("fromState") + \ "-(" + ident("transition") + ")->" + \ ident("toState")) namedStateMachine = Keyword("statemachine") + \ ident("name") + ":" + \ OneOrMore(Group(namedStateTransition))("transitions") def expand_state_definition(source, loc, tokens): indent = " " * (col(loc,source)-1) statedef = [] # build list of states states = set() fromTo = {} for tn in tokens.transitions: states.add(tn.fromState) states.add(tn.toState) fromTo[tn.fromState] = tn.toState # define base class for state classes baseStateClass = tokens.name + "State" statedef.extend([ "class %s(object):" % baseStateClass, " def __str__(self):", " return self.__class__.__name__", " def next_state(self):", " return self._next_state_class()" ]) # define all state classes statedef.extend( "class %s(%s): pass" % (s,baseStateClass) for s in states ) statedef.extend( "%s._next_state_class = %s" % (s,fromTo[s]) for s in states if s in fromTo ) return indent + ("\n"+indent).join(statedef)+"\n" stateMachine.setParseAction(expand_state_definition) def expand_named_state_definition(source,loc,tokens): indent = " " * (col(loc,source)-1) statedef = [] # build list of states and transitions states = set() transitions = set() baseStateClass = tokens.name + "State" fromTo = {} for tn in tokens.transitions: states.add(tn.fromState) states.add(tn.toState) transitions.add(tn.transition) if tn.fromState in fromTo: fromTo[tn.fromState][tn.transition] = tn.toState else: fromTo[tn.fromState] = {tn.transition:tn.toState} # add entries for terminal states for s in states: if s not in fromTo: fromTo[s] = {} # define state transition class statedef.extend([ "class %sTransition:" % baseStateClass, " def __str__(self):", " return self.transitionName", ]) statedef.extend( "%s = %sTransition()" % (tn,baseStateClass) for tn in transitions) statedef.extend("%s.transitionName = '%s'" % (tn,tn) for tn in transitions) # define base class for state classes excmsg = "'" + tokens.name + \ '.%s does not support transition "%s"' \ "'% (self, tn)" statedef.extend([ "class %s(object):" % baseStateClass, " def __str__(self):", " return self.__class__.__name__", " def next_state(self,tn):", " try:", " return self.tnmap[tn]()", " except KeyError:", " raise Exception(%s)" % excmsg, " def __getattr__(self,name):", " raise Exception(%s)" % excmsg, ]) # define all state classes for s in states: statedef.append("class %s(%s): pass" % (s,baseStateClass)) # define state transition maps and transition methods for s in states: trns = list(fromTo[s].items()) statedef.append("%s.tnmap = {%s}" % (s, ",".join("%s:%s" % tn for tn in trns)) ) statedef.extend([ "%s.%s = staticmethod(lambda : %s())" % (s,tn_,to_) for tn_,to_ in trns ]) return indent + ("\n"+indent).join(statedef) + "\n" namedStateMachine.setParseAction( expand_named_state_definition) #====================================================================== # NEW STUFF - Matt Anderson, 2009-11-26 #====================================================================== class SuffixImporter(object): """An importer designed using the mechanism defined in :pep:`302`. I read the PEP, and also used Doug Hellmann's PyMOTW article `Modules and Imports`_, as a pattern. .. _`Modules and Imports`: http://www.doughellmann.com/PyMOTW/sys/imports.html Define a subclass that specifies a :attr:`suffix` attribute, and implements a :meth:`process_filedata` method. Then call the classmethod :meth:`register` on your class to actually install it in the appropriate places in :mod:`sys`. """ scheme = 'suffix' suffix = None path_entry = None @classmethod def trigger_url(cls): if cls.suffix is None: raise ValueError('%s.suffix is not set' % cls.__name__) return 'suffix:%s' % cls.suffix @classmethod def register(cls): sys.path_hooks.append(cls) sys.path.append(cls.trigger_url()) def __init__(self, path_entry): pr = urllib.parse.urlparse(str(path_entry)) if pr.scheme != self.scheme or pr.path != self.suffix: raise ImportError() self.path_entry = path_entry self._found = {} def checkpath_iter(self, fullname): for dirpath in sys.path: # if the value in sys.path_importer_cache is None, then this # path *should* be imported by the builtin mechanism, and the # entry is thus a path to a directory on the filesystem; # if it's not None, then some other importer is in charge, and # it probably isn't even a filesystem path if sys.path_importer_cache.get(dirpath,False) is None: checkpath = os.path.join( dirpath,'%s.%s' % (fullname,self.suffix)) yield checkpath def find_module(self, fullname, path=None): for checkpath in self.checkpath_iter(fullname): if os.path.isfile(checkpath): self._found[fullname] = checkpath return self return None def load_module(self, fullname): assert fullname in self._found if fullname in sys.modules: module = sys.modules[fullname] else: sys.modules[fullname] = module = types.ModuleType(fullname) data = None f = open(self._found[fullname]) try: data = f.read() finally: f.close() module.__dict__.clear() module.__file__ = self._found[fullname] module.__name__ = fullname module.__loader__ = self self.process_filedata(module, data) return module def process_filedata(self, module, data): pass class PystateImporter(SuffixImporter): suffix = 'pystate' def process_filedata(self, module, data): # MATT-NOTE: re-worked :func:`get_state_machine` # convert any statemachine expressions stateMachineExpr = (stateMachine | namedStateMachine).ignore( pythonStyleComment) generated_code = stateMachineExpr.transformString(data) if DEBUG: print(generated_code) # compile code object from generated code # (strip trailing spaces and tabs, compile doesn't like # dangling whitespace) COMPILE_MODE = 'exec' codeobj = compile(generated_code.rstrip(" \t"), module.__file__, COMPILE_MODE) exec(codeobj, module.__dict__) PystateImporter.register() pyparsing-2.2.0+dfsg1/examples/dictExample.py0000644000175000017500000000311412466013312017655 0ustar zigozigo# # dictExample.py # # Illustration of using pyparsing's Dict class to process tabular data # # Copyright (c) 2003, Paul McGuire # from pyparsing import Literal, Word, Group, Dict, ZeroOrMore, alphas, nums, delimitedList import pprint testData = """ +-------+------+------+------+------+------+------+------+------+ | | A1 | B1 | C1 | D1 | A2 | B2 | C2 | D2 | +=======+======+======+======+======+======+======+======+======+ | min | 7 | 43 | 7 | 15 | 82 | 98 | 1 | 37 | | max | 11 | 52 | 10 | 17 | 85 | 112 | 4 | 39 | | ave | 9 | 47 | 8 | 16 | 84 | 106 | 3 | 38 | | sdev | 1 | 3 | 1 | 1 | 1 | 3 | 1 | 1 | +-------+------+------+------+------+------+------+------+------+ """ # define grammar for datatable heading = (Literal( "+-------+------+------+------+------+------+------+------+------+") + "| | A1 | B1 | C1 | D1 | A2 | B2 | C2 | D2 |" + "+=======+======+======+======+======+======+======+======+======+").suppress() vert = Literal("|").suppress() number = Word(nums) rowData = Group( vert + Word(alphas) + vert + delimitedList(number,"|") + vert ) trailing = Literal( "+-------+------+------+------+------+------+------+------+------+").suppress() datatable = heading + Dict( ZeroOrMore(rowData) ) + trailing # now parse data and print results data = datatable.parseString(testData) print(data) pprint.pprint(data.asList()) print("data keys=", list(data.keys())) print("data['min']=", data['min']) print("data.max", data.max) pyparsing-2.2.0+dfsg1/examples/parseResultsSumExample.py0000644000175000017500000000147312466013312022121 0ustar zigozigo# # parseResultsSumExample.py # # Sample script showing the value in merging ParseResults retrieved by searchString, # using Python's builtin sum() method # samplestr1 = "garbage;DOB 10-10-2010;more garbage\nID PARI12345678;more garbage" samplestr2 = "garbage;ID PARI12345678;more garbage\nDOB 10-10-2010;more garbage" samplestr3 = "garbage;DOB 10-10-2010" samplestr4 = "garbage;ID PARI12345678;more garbage- I am cool" from pyparsing import * dob_ref = "DOB" + Regex(r"\d{2}-\d{2}-\d{4}")("dob") id_ref = "ID" + Word(alphanums,exact=12)("id") info_ref = "-" + restOfLine("info") person_data = dob_ref | id_ref | info_ref for test in (samplestr1,samplestr2,samplestr3,samplestr4,): person = sum(person_data.searchString(test)) print(person.id) print(person.dump()) print() pyparsing-2.2.0+dfsg1/CHANGES0000644000175000017500000030017713057040562014236 0ustar zigozigo========== Change Log ========== Version 2.2.0 - March, 2017 --------------------------- - Bumped minor version number to reflect compatibility issues with OneOrMore and ZeroOrMore bugfixes in 2.1.10. (2.1.10 fixed a bug that was introduced in 2.1.4, but the fix could break code written against 2.1.4 - 2.1.9.) - Updated setup.py to address recursive import problems now that pyparsing is part of 'packaging' (used by setuptools). Patch submitted by Joshua Root, much thanks! - Fixed KeyError issue reported by Yann Bizeul when using packrat parsing in the Graphite time series database, thanks Yann! - Fixed incorrect usages of '\' in literals, as described in https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior Patch submitted by Ville Skyttä - thanks! - Minor internal change when using '-' operator, to be compatible with ParserElement.streamline() method. - Expanded infixNotation to accept a list or tuple of parse actions to attach to an operation. - New unit test added for dill support for storing pyparsing parsers. Ordinary Python pickle can be used to pickle pyparsing parsers as long as they do not use any parse actions. The 'dill' module is an extension to pickle which *does* support pickling of attached parse actions. Version 2.1.10 - October, 2016 ------------------------------- - Fixed bug in reporting named parse results for ZeroOrMore expressions, thanks Ethan Nash for reporting this! - Fixed behavior of LineStart to be much more predictable. LineStart can now be used to detect if the next parse position is col 1, factoring in potential leading whitespace (which would cause LineStart to fail). Also fixed a bug in col, which is used in LineStart, where '\n's were erroneously considered to be column 1. - Added support for multiline test strings in runTests. - Fixed bug in ParseResults.dump when keys were not strings. Also changed display of string values to show them in quotes, to help distinguish parsed numeric strings from parsed integers that have been converted to Python ints. Version 2.1.9 - September, 2016 ------------------------------- - Added class CloseMatch, a variation on Literal which matches "close" matches, that is, strings with at most 'n' mismatching characters. - Fixed bug in Keyword.setDefaultKeywordChars(), reported by Kobayashi Shinji - nice catch, thanks! - Minor API change in pyparsing_common. Renamed some of the common expressions to PEP8 format (to be consistent with the other pyparsing_common expressions): . signedInteger -> signed_integer . sciReal -> sci_real Also, in trying to stem the API bloat of pyparsing, I've copied some of the global expressions and helper parse actions into pyparsing_common, with the originals to be deprecated and removed in a future release: . commaSeparatedList -> pyparsing_common.comma_separated_list . upcaseTokens -> pyparsing_common.upcaseTokens . downcaseTokens -> pyparsing_common.downcaseTokens (I don't expect any other expressions, like the comment expressions, quotedString, or the Word-helping strings like alphas, nums, etc. to migrate to pyparsing_common - they are just too pervasive. As for the PEP8 vs camelCase naming, all the expressions are PEP8, while the parse actions in pyparsing_common are still camelCase. It's a small step - when pyparsing 3.0 comes around, everything will change to PEP8 snake case.) - Fixed Python3 compatibility bug when using dict keys() and values() in ParseResults.getName(). - After some prodding, I've reworked the unitTests.py file for pyparsing over the past few releases. It uses some variations on unittest to handle my testing style. The test now: . auto-discovers its test classes (while maintining their order of definition) . suppresses voluminous 'print' output for tests that pass Version 2.1.8 - August, 2016 ---------------------------- - Fixed issue in the optimization to _trim_arity, when the full stacktrace is retrieved to determine if a TypeError is raised in pyparsing or in the caller's parse action. Code was traversing the full stacktrace, and potentially encountering UnicodeDecodeError. - Fixed bug in ParserElement.inlineLiteralsUsing, causing infinite loop with Suppress. - Fixed bug in Each, when merging named results from multiple expressions in a ZeroOrMore or OneOrMore. Also fixed bug when ZeroOrMore expressions were erroneously treated as required expressions in an Each expression. - Added a few more inline doc examples. - Improved use of runTests in several example scripts. Version 2.1.7 - August, 2016 ---------------------------- - Fixed regression reported by Andrea Censi (surfaced in PyContracts tests) when using ParseSyntaxExceptions (raised when using operator '-') with packrat parsing. - Minor fix to oneOf, to accept all iterables, not just space-delimited strings and lists. (If you have a list or set of strings, it is not necessary to concat them using ' '.join to pass them to oneOf, oneOf will accept the list or set or generator directly.) Version 2.1.6 - August, 2016 ---------------------------- - *Major packrat upgrade*, inspired by patch provided by Tal Einat - many, many, thanks to Tal for working on this! Tal's tests show faster parsing performance (2X in some tests), *and* memory reduction from 3GB down to ~100MB! Requires no changes to existing code using packratting. (Uses OrderedDict, available in Python 2.7 and later. For Python 2.6 users, will attempt to import from ordereddict backport. If not present, will implement pure-Python Fifo dict.) - Minor API change - to better distinguish between the flexible numeric types defined in pyparsing_common, I've changed "numeric" (which parsed numbers of different types and returned int for ints, float for floats, etc.) and "number" (which parsed numbers of int or float type, and returned all floats) to "number" and "fnumber" respectively. I hope the "f" prefix of "fnumber" will be a better indicator of its internal conversion of parsed values to floats, while the generic "number" is similar to the flexible number syntax in other languages. Also fixed a bug in pyparsing_common.numeric (now renamed to pyparsing_common.number), integers were parsed and returned as floats instead of being retained as ints. - Fixed bug in upcaseTokens and downcaseTokens introduced in 2.1.5, when the parse action was used in conjunction with results names. Reported by Steven Arcangeli from the dql project, thanks for your patience, Steven! - Major change to docs! After seeing some comments on reddit about general issue with docs of Python modules, and thinking that I'm a little overdue in doing some doc tuneup on pyparsing, I decided to following the suggestions of the redditor and add more inline examples to the pyparsing reference documentation. I hope this addition will clarify some of the more common questions people have, especially when first starting with pyparsing/Python. - Deprecated ParseResults.asXML. I've never been too happy with this method, and it usually forces some unnatural code in the parsers in order to get decent tag names. The amount of guesswork that asXML has to do to try to match names with values should have been a red flag from day one. If you are using asXML, you will need to implement your own ParseResults->XML serialization. Or consider migrating to a more current format such as JSON (which is very easy to do: results_as_json = json.dumps(parse_result.asDict()) Hopefully, when I remove this code in a future version, I'll also be able to simplify some of the craziness in ParseResults, which IIRC was only there to try to make asXML work. - Updated traceParseAction parse action decorator to show the repr of the input and output tokens, instead of the str format, since str has been simplified to just show the token list content. (The change to ParseResults.__str__ occurred in pyparsing 2.0.4, but it seems that didn't make it into the release notes - sorry! Too many users, especially beginners, were confused by the "([token_list], {names_dict})" str format for ParseResults, thinking they were getting a tuple containing a list and a dict. The full form can be seen if using repr().) For tracing tokens in and out of parse actions, the more complete repr form provides important information when debugging parse actions. Verison 2.1.5 - June, 2016 ------------------------------ - Added ParserElement.split() generator method, similar to re.split(). Includes optional arguments maxsplit (to limit the number of splits), and includeSeparators (to include the separating matched text in the returned output, default=False). - Added a new parse action construction helper tokenMap, which will apply a function and optional arguments to each element in a ParseResults. So this parse action: def lowercase_all(tokens): return [str(t).lower() for t in tokens] OneOrMore(Word(alphas)).setParseAction(lowercase_all) can now be written: OneOrMore(Word(alphas)).setParseAction(tokenMap(str.lower)) Also simplifies writing conversion parse actions like: integer = Word(nums).setParseAction(lambda t: int(t[0])) to just: integer = Word(nums).setParseAction(tokenMap(int)) If additional arguments are necessary, they can be included in the call to tokenMap, as in: hex_integer = Word(hexnums).setParseAction(tokenMap(int, 16)) - Added more expressions to pyparsing_common: . IPv4 and IPv6 addresses (including long, short, and mixed forms of IPv6) . MAC address . ISO8601 date and date time strings (with named fields for year, month, etc.) . UUID (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) . hex integer (returned as int) . fraction (integer '/' integer, returned as float) . mixed integer (integer '-' fraction, or just fraction, returned as float) . stripHTMLTags (parse action to remove tags from HTML source) . parse action helpers convertToDate and convertToDatetime to do custom parse time conversions of parsed ISO8601 strings - runTests now returns a two-tuple: success if all tests succeed, and an output list of each test and its output lines. - Added failureTests argument (default=False) to runTests, so that tests can be run that are expected failures, and runTests' success value will return True only if all tests *fail* as expected. Also, parseAll now defaults to True. - New example numerics.py, shows samples of parsing integer and real numbers using locale-dependent formats: 4.294.967.295,000 4 294 967 295,000 4,294,967,295.000 Version 2.1.4 - May, 2016 ------------------------------ - Split out the '==' behavior in ParserElement, now implemented as the ParserElement.matches() method. Using '==' for string test purposes will be removed in a future release. - Expanded capabilities of runTests(). Will now accept embedded comments (default is Python style, leading '#' character, but customizable). Comments will be emitted along with the tests and test output. Useful during test development, to create a test string consisting only of test case description comments separated by blank lines, and then fill in the test cases. Will also highlight ParseFatalExceptions with "(FATAL)". - Added a 'pyparsing_common' class containing common/helpful little expressions such as integer, float, identifier, etc. I used this class as a sort of embedded namespace, to contain these helpers without further adding to pyparsing's namespace bloat. - Minor enhancement to traceParseAction decorator, to retain the parse action's name for the trace output. - Added optional 'fatal' keyword arg to addCondition, to indicate that a condition failure should halt parsing immediately. Version 2.1.3 - May, 2016 ------------------------------ - _trim_arity fix in 2.1.2 was very version-dependent on Py 3.5.0. Now works for Python 2.x, 3.3, 3.4, 3.5.0, and 3.5.1 (and hopefully beyond). Version 2.1.2 - May, 2016 ------------------------------ - Fixed bug in _trim_arity when pyparsing code is included in a PyInstaller, reported by maluwa. - Fixed catastrophic regex backtracking in implementation of the quoted string expressions (dblQuotedString, sglQuotedString, and quotedString). Reported on the pyparsing wiki by webpentest, good catch! (Also tuned up some other expressions susceptible to the same backtracking problem, such as cStyleComment, cppStyleComment, etc.) Version 2.1.1 - March, 2016 --------------------------- - Added support for assigning to ParseResults using slices. - Fixed bug in ParseResults.toDict(), in which dict values were always converted to dicts, even if they were just unkeyed lists of tokens. Reported on SO by Gerald Thibault, thanks Gerald! - Fixed bug in SkipTo when using failOn, reported by robyschek, thanks! - Fixed bug in Each introduced in 2.1.0, reported by AND patch and unit test submitted by robyschek, well done! - Removed use of functools.partial in replaceWith, as this creates an ambiguous signature for the generated parse action, which fails in PyPy. Reported by Evan Hubinger, thanks Evan! - Added default behavior to QuotedString to convert embedded '\t', '\n', etc. characters to their whitespace counterparts. Found during Q&A exchange on SO with Maxim. Version 2.1.0 - February, 2016 ------------------------------ - Modified the internal _trim_arity method to distinguish between TypeError's raised while trying to determine parse action arity and those raised within the parse action itself. This will clear up those confusing "() takes exactly 1 argument (0 given)" error messages when there is an actual TypeError in the body of the parse action. Thanks to all who have raised this issue in the past, and most recently to Michael Cohen, who sent in a proposed patch, and got me to finally tackle this problem. - Added compatibility for pickle protocols 2-4 when pickling ParseResults. In Python 2.x, protocol 0 was the default, and protocol 2 did not work. In Python 3.x, protocol 3 is the default, so explicitly naming protocol 0 or 1 was required to pickle ParseResults. With this release, all protocols 0-4 are supported. Thanks for reporting this on StackOverflow, Arne Wolframm, and for providing a nice simple test case! - Added optional 'stopOn' argument to ZeroOrMore and OneOrMore, to simplify breaking on stop tokens that would match the repetition expression. It is a common problem to fail to look ahead when matching repetitive tokens if the sentinel at the end also matches the repetition expression, as when parsing "BEGIN aaa bbb ccc END" with: "BEGIN" + OneOrMore(Word(alphas)) + "END" Since "END" matches the repetition expression "Word(alphas)", it will never get parsed as the terminating sentinel. Up until now, this has to be resolved by the user inserting their own negative lookahead: "BEGIN" + OneOrMore(~Literal("END") + Word(alphas)) + "END" Using stopOn, they can more easily write: "BEGIN" + OneOrMore(Word(alphas), stopOn="END") + "END" The stopOn argument can be a literal string or a pyparsing expression. Inspired by a question by Lamakaha on StackOverflow (and many previous questions with the same negative-lookahead resolution). - Added expression names for many internal and builtin expressions, to reduce name and error message overhead during parsing. - Converted helper lambdas to functions to refactor and add docstring support. - Fixed ParseResults.asDict() to correctly convert nested ParseResults values to dicts. - Cleaned up some examples, fixed typo in fourFn.py identified by aristotle2600 on reddit. - Removed keepOriginalText helper method, which was deprecated ages ago. Superceded by originalTextFor. - Same for the Upcase class, which was long ago deprecated and replaced with the upcaseTokens method. Version 2.0.7 - December, 2015 ------------------------------ - Simplified string representation of Forward class, to avoid memory and performance errors while building ParseException messages. Thanks, Will McGugan, Andrea Censi, and Martijn Vermaat for the bug reports and test code. - Cleaned up additional issues from enhancing the error messages for Or and MatchFirst, handling Unicode values in expressions. Fixes Unicode encoding issues in Python 2, thanks to Evan Hubinger for the bug report. - Fixed implementation of dir() for ParseResults - was leaving out all the defined methods and just adding the custom results names. - Fixed bug in ignore() that was introduced in pyparsing 1.5.3, that would not accept a string literal as the ignore expression. - Added new example parseTabularData.py to illustrate parsing of data formatted in columns, with detection of empty cells. - Updated a number of examples to more current Python and pyparsing forms. Version 2.0.6 - November, 2015 ------------------------------ - Fixed a bug in Each when multiple Optional elements are present. Thanks for reporting this, whereswalden on SO. - Fixed another bug in Each, when Optional elements have results names or parse actions, reported by Max Rothman - thank you, Max! - Added optional parseAll argument to runTests, whether tests should require the entire input string to be parsed or not (similar to parseAll argument to parseString). Plus a little neaten-up of the output on Python 2 (no stray ()'s). - Modified exception messages from MatchFirst and Or expressions. These were formerly misleading as they would only give the first or longest exception mismatch error message. Now the error message includes all the alternatives that were possible matches. Originally proposed by a pyparsing user, but I've lost the email thread - finally figured out a fairly clean way to do this. - Fixed a bug in Or, when a parse action on an alternative raises an exception, other potentially matching alternatives were not always tried. Reported by TheVeryOmni on the pyparsing wiki, thanks! - Fixed a bug to dump() introduced in 2.0.4, where list values were shown in duplicate. Version 2.0.5 - October, 2015 ----------------------------- - (&$(@#&$(@!!!! Some "print" statements snuck into pyparsing v2.0.4, breaking Python 3 compatibility! Fixed. Reported by jenshn, thanks! Version 2.0.4 - October, 2015 ----------------------------- - Added ParserElement.addCondition, to simplify adding parse actions that act primarily as filters. If the given condition evaluates False, pyparsing will raise a ParseException. The condition should be a method with the same method signature as a parse action, but should return a boolean. Suggested by Victor Porton, nice idea Victor, thanks! - Slight mod to srange to accept unicode literals for the input string, such as "[а-яА-Я]" instead of "[\u0430-\u044f\u0410-\u042f]". Thanks to Alexandr Suchkov for the patch! - Enhanced implementation of replaceWith. - Fixed enhanced ParseResults.dump() method when the results consists only of an unnamed array of sub-structure results. Reported by Robin Siebler, thanks for your patience and persistence, Robin! - Fixed bug in fourFn.py example code, where pi and e were defined using CaselessLiteral instead of CaselessKeyword. This was not a problem until adding a new function 'exp', and the leading 'e' of 'exp' was accidentally parsed as the mathematical constant 'e'. Nice catch, Tom Grydeland - thanks! - Adopt new-fangled Python features, like decorators and ternary expressions, per suggestions from Williamzjc - thanks William! (Oh yeah, I'm not supporting Python 2.3 with this code any more...) Plus, some additional code fixes/cleanup - thanks again! - Added ParserElement.runTests, a little test bench for quickly running an expression against a list of sample input strings. Basically, I got tired of writing the same test code over and over, and finally added it as a test point method on ParserElement. - Added withClass helper method, a simplified version of withAttribute for the common but annoying case when defining a filter on a div's class - made difficult because 'class' is a Python reserved word. Version 2.0.3 - October, 2014 ----------------------------- - Fixed escaping behavior in QuotedString. Formerly, only quotation marks (or characters designated as quotation marks in the QuotedString constructor) would be escaped. Now all escaped characters will be escaped, and the escaping backslashes will be removed. - Fixed regression in ParseResults.pop() - pop() was pretty much broken after I added *improvements* in 2.0.2. Reported by Iain Shelvington, thanks Iain! - Fixed bug in And class when initializing using a generator. - Enhanced ParseResults.dump() method to list out nested ParseResults that are unnamed arrays of sub-structures. - Fixed UnboundLocalError under Python 3.4 in oneOf method, reported on Sourceforge by aldanor, thanks! - Fixed bug in ParseResults __init__ method, when returning non-ParseResults types from parse actions that implement __eq__. Raised during discussion on the pyparsing wiki with cyrfer. Version 2.0.2 - April, 2014 --------------------------- - Extended "expr(name)" shortcut (same as "expr.setResultsName(name)") to accept "expr()" as a shortcut for "expr.copy()". - Added "locatedExpr(expr)" helper, to decorate any returned tokens with their location within the input string. Adds the results names locn_start and locn_end to the output parse results. - Added "pprint()" method to ParseResults, to simplify troubleshooting and prettified output. Now instead of importing the pprint module and then writing "pprint.pprint(result)", you can just write "result.pprint()". This method also accepts addtional positional and keyword arguments (such as indent, width, etc.), which get passed through directly to the pprint method (see http://docs.python.org/2/library/pprint.html#pprint.pprint). - Removed deprecation warnings when using '<<' for Forward expression assignment. '<<=' is still preferred, but '<<' will be retained for cases whre '<<=' operator is not suitable (such as in defining lambda expressions). - Expanded argument compatibility for classes and functions that take list arguments, to now accept generators as well. - Extended list-like behavior of ParseResults, adding support for append and extend. NOTE: if you have existing applications using these names as results names, you will have to access them using dict-style syntax: res["append"] and res["extend"] - ParseResults emulates the change in list vs. iterator semantics for methods like keys(), values(), and items(). Under Python 2.x, these methods will return lists, under Python 3.x, these methods will return iterators. - ParseResults now has a method haskeys() which returns True or False depending on whether any results names have been defined. This simplifies testing for the existence of results names under Python 3.x, which returns keys() as an iterator, not a list. - ParseResults now supports both list and dict semantics for pop(). If passed no argument or an integer argument, it will use list semantics and pop tokens from the list of parsed tokens. If passed a non-integer argument (most likely a string), it will use dict semantics and pop the corresponding value from any defined results names. A second default return value argument is supported, just as in dict.pop(). - Fixed bug in markInputline, thanks for reporting this, Matt Grant! - Cleaned up my unit test environment, now runs with Python 2.6 and 3.3. Version 2.0.1 - July, 2013 -------------------------- - Removed use of "nonlocal" that prevented using this version of pyparsing with Python 2.6 and 2.7. This will make it easier to install for packages that depend on pyparsing, under Python versions 2.6 and later. Those using older versions of Python will have to manually install pyparsing 1.5.7. - Fixed implementation of <<= operator to return self; reported by Luc J. Bourhis, with patch fix by Mathias Mamsch - thanks, Luc and Mathias! Version 2.0.0 - November, 2012 ------------------------------ - Rather than release another combined Python 2.x/3.x release I've decided to start a new major version that is only compatible with Python 3.x (and consequently Python 2.7 as well due to backporting of key features). This version will be the main development path from now on, with little follow-on development on the 1.5.x path. - Operator '<<' is now deprecated, in favor of operator '<<=' for attaching parsing expressions to Forward() expressions. This is being done to address precedence of operations problems with '<<'. Operator '<<' will be removed in a future version of pyparsing. Version 1.5.7 - November, 2012 ----------------------------- - NOTE: This is the last release of pyparsing that will try to maintain compatibility with Python versions < 2.6. The next release of pyparsing will be version 2.0.0, using new Python syntax that will not be compatible for Python version 2.5 or older. - An awesome new example is included in this release, submitted by Luca DellOlio, for parsing ANTLR grammar definitions, nice work Luca! - Fixed implementation of ParseResults.__str__ to use Pythonic ''.join() instead of repeated string concatenation. This purportedly has been a performance issue under PyPy. - Fixed bug in ParseResults.__dir__ under Python 3, reported by Thomas Kluyver, thank you Thomas! - Added ParserElement.inlineLiteralsUsing static method, to override pyparsing's default behavior of converting string literals to Literal instances, to use other classes (such as Suppress or CaselessLiteral). - Added new operator '<<=', which will eventually replace '<<' for storing the contents of a Forward(). '<<=' does not have the same operator precedence problems that '<<' does. - 'operatorPrecedence' is being renamed 'infixNotation' as a better description of what this helper function creates. 'operatorPrecedence' is deprecated, and will be dropped entirely in a future release. - Added optional arguments lpar and rpar to operatorPrecedence, so that expressions that use it can override the default suppression of the grouping characters. - Added support for using single argument builtin functions as parse actions. Now you can write 'expr.setParseAction(len)' and get back the length of the list of matched tokens. Supported builtins are: sum, len, sorted, reversed, list, tuple, set, any, all, min, and max. A script demonstrating this feature is included in the examples directory. - Improved linking in generated docs, proposed on the pyparsing wiki by techtonik, thanks! - Fixed a bug in the definition of 'alphas', which was based on the string.uppercase and string.lowercase "constants", which in fact *aren't* constant, but vary with locale settings. This could make parsers locale-sensitive in a subtle way. Thanks to Kef Schecter for his diligence in following through on reporting and monitoring this bugfix! - Fixed a bug in the Py3 version of pyparsing, during exception handling with packrat parsing enabled, reported by Catherine Devlin - thanks Catherine! - Fixed typo in ParseBaseException.__dir__, reported anonymously on the SourceForge bug tracker, thank you Pyparsing User With No Name. - Fixed bug in srange when using '\x###' hex character codes. - Addeed optional 'intExpr' argument to countedArray, so that you can define your own expression that will evaluate to an integer, to be used as the count for the following elements. Allows you to define a countedArray with the count given in hex, for example, by defining intExpr as "Word(hexnums).setParseAction(int(t[0],16))". Version 1.5.6 - June, 2011 ---------------------------- - Cleanup of parse action normalizing code, to be more version-tolerant, and robust in the face of future Python versions - much thanks to Raymond Hettinger for this rewrite! - Removal of exception cacheing, addressing a memory leak condition in Python 3. Thanks to Michael Droettboom and the Cape Town PUG for their analysis and work on this problem! - Fixed bug when using packrat parsing, where a previously parsed expression would duplicate subsequent tokens - reported by Frankie Ribery on stackoverflow, thanks! - Added 'ungroup' helper method, to address token grouping done implicitly by And expressions, even if only one expression in the And actually returns any text - also inspired by stackoverflow discussion with Frankie Ribery! - Fixed bug in srange, which accepted escaped hex characters of the form '\0x##', but should be '\x##'. Both forms will be supported for backwards compatibility. - Enhancement to countedArray, accepting an optional expression to be used for matching the leading integer count - proposed by Mathias on the pyparsing mailing list, good idea! - Added the Verilog parser to the provided set of examples, under the MIT license. While this frees up this parser for any use, if you find yourself using it in a commercial purpose, please consider making a charitable donation as described in the parser's header. - Added the excludeChars argument to the Word class, to simplify defining a word composed of all characters in a large range except for one or two. Suggested by JesterEE on the pyparsing wiki. - Added optional overlap parameter to scanString, to return overlapping matches found in the source text. - Updated oneOf internal regular expression generation, with improved parse time performance. - Slight performance improvement in transformString, removing empty strings from the list of string fragments built while scanning the source text, before calling ''.join. Especially useful when using transformString to strip out selected text. - Enhanced form of using the "expr('name')" style of results naming, in lieu of calling setResultsName. If name ends with an '*', then this is equivalent to expr.setResultsName('name',listAllMatches=True). - Fixed up internal list flattener to use iteration instead of recursion, to avoid stack overflow when transforming large files. - Added other new examples: . protobuf parser - parses Google's protobuf language . btpyparse - a BibTex parser contributed by Matthew Brett, with test suite test_bibparse.py (thanks, Matthew!) . groupUsingListAllMatches.py - demo using trailing '*' for results names Version 1.5.5 - August, 2010 ---------------------------- - Typo in Python3 version of pyparsing, "builtin" should be "builtins". (sigh) Version 1.5.4 - August, 2010 ---------------------------- - Fixed __builtins__ and file references in Python 3 code, thanks to Greg Watson, saulspatz, sminos, and Mark Summerfield for reporting their Python 3 experiences. - Added new example, apicheck.py, as a sample of scanning a Tcl-like language for functions with incorrect number of arguments (difficult to track down in Tcl languages). This example uses some interesting methods for capturing exceptions while scanning through source code. - Added new example deltaTime.py, that takes everyday time references like "an hour from now", "2 days ago", "next Sunday at 2pm". Version 1.5.3 - June, 2010 -------------------------- - ======= NOTE: API CHANGE!!!!!!! =============== With this release, and henceforward, the pyparsing module is imported as "pyparsing" on both Python 2.x and Python 3.x versions. - Fixed up setup.py to auto-detect Python version and install the correct version of pyparsing - suggested by Alex Martelli, thanks, Alex! (and my apologies to all those who struggled with those spurious installation errors caused by my earlier fumblings!) - Fixed bug on Python3 when using parseFile, getting bytes instead of a str from the input file. - Fixed subtle bug in originalTextFor, if followed by significant whitespace (like a newline) - discovered by Francis Vidal, thanks! - Fixed very sneaky bug in Each, in which Optional elements were not completely recognized as optional - found by Tal Weiss, thanks for your patience. - Fixed off-by-1 bug in line() method when the first line of the input text was an empty line. Thanks to John Krukoff for submitting a patch! - Fixed bug in transformString if grammar contains Group expressions, thanks to patch submitted by barnabas79, nice work! - Fixed bug in originalTextFor in which trailing comments or otherwised ignored text got slurped in with the matched expression. Thanks to michael_ramirez44 on the pyparsing wiki for reporting this just in time to get into this release! - Added better support for summing ParseResults, see the new example, parseResultsSumExample.py. - Added support for composing a Regex using a compiled RE object; thanks to my new colleague, Mike Thornton! - In version 1.5.2, I changed the way exceptions are raised in order to simplify the stacktraces reported during parsing. An anonymous user posted a bug report on SF that this behavior makes it difficult to debug some complex parsers, or parsers nested within parsers. In this release I've added a class attribute ParserElement.verbose_stacktrace, with a default value of False. If you set this to True, pyparsing will report stacktraces using the pre-1.5.2 behavior. - New examples: . pymicko.py, a MicroC compiler submitted by Zarko Zivanov. (Note: this example is separately licensed under the GPLv3, and requires Python 2.6 or higher.) Thank you, Zarko! . oc.py, a subset C parser, using the BNF from the 1996 Obfuscated C Contest. . stateMachine2.py, a modified version of stateMachine.py submitted by Matt Anderson, that is compatible with Python versions 2.7 and above - thanks so much, Matt! . select_parser.py, a parser for reading SQLite SELECT statements, as specified at http://www.sqlite.org/lang_select.html; this goes into much more detail than the simple SQL parser included in pyparsing's source code . excelExpr.py, a *simplistic* first-cut at a parser for Excel expressions, which I originally posted on comp.lang.python in January, 2010; beware, this parser omits many common Excel cases (addition of numbers represented as strings, references to named ranges) . cpp_enum_parser.py, a nice little parser posted my Mark Tolonen on comp.lang.python in August, 2009 (redistributed here with Mark's permission). Thanks a bunch, Mark! . partial_gene_match.py, a sample I posted to Stackoverflow.com, implementing a special variation on Literal that does "close" matching, up to a given number of allowed mismatches. The application was to find matching gene sequences, with allowance for one or two mismatches. . tagCapture.py, a sample showing how to use a Forward placeholder to enforce matching of text parsed in a previous expression. . matchPreviousDemo.py, simple demo showing how the matchPreviousLiteral helper method is used to match a previously parsed token. Version 1.5.2 - April, 2009 ------------------------------ - Added pyparsing_py3.py module, so that Python 3 users can use pyparsing by changing their pyparsing import statement to: import pyparsing_py3 Thanks for help from Patrick Laban and his friend Geremy Condra on the pyparsing wiki. - Removed __slots__ declaration on ParseBaseException, for compatibility with IronPython 2.0.1. Raised by David Lawler on the pyparsing wiki, thanks David! - Fixed bug in SkipTo/failOn handling - caught by eagle eye cpennington on the pyparsing wiki! - Fixed second bug in SkipTo when using the ignore constructor argument, reported by Catherine Devlin, thanks! - Fixed obscure bug reported by Eike Welk when using a class as a ParseAction with an errant __getitem__ method. - Simplified exception stack traces when reporting parse exceptions back to caller of parseString or parseFile - thanks to a tip from Peter Otten on comp.lang.python. - Changed behavior of scanString to avoid infinitely looping on expressions that match zero-length strings. Prompted by a question posted by ellisonbg on the wiki. - Enhanced classes that take a list of expressions (And, Or, MatchFirst, and Each) to accept generator expressions also. This can be useful when generating lists of alternative expressions, as in this case, where the user wanted to match any repetitions of '+', '*', '#', or '.', but not mixtures of them (that is, match '+++', but not '+-+'): codes = "+*#." format = MatchFirst(Word(c) for c in codes) Based on a problem posed by Denis Spir on the Python tutor list. - Added new example eval_arith.py, which extends the example simpleArith.py to actually evaluate the parsed expressions. Version 1.5.1 - October, 2008 ------------------------------- - Added new helper method originalTextFor, to replace the use of the current keepOriginalText parse action. Now instead of using the parse action, as in: fullName = Word(alphas) + Word(alphas) fullName.setParseAction(keepOriginalText) (in this example, we used keepOriginalText to restore any white space that may have been skipped between the first and last names) You can now write: fullName = originalTextFor(Word(alphas) + Word(alphas)) The implementation of originalTextFor is simpler and faster than keepOriginalText, and does not depend on using the inspect or imp modules. - Added optional parseAll argument to parseFile, to be consistent with parseAll argument to parseString. Posted by pboucher on the pyparsing wiki, thanks! - Added failOn argument to SkipTo, so that grammars can define literal strings or pyparsing expressions which, if found in the skipped text, will cause SkipTo to fail. Useful to prevent SkipTo from reading past terminating expression. Instigated by question posed by Aki Niimura on the pyparsing wiki. - Fixed bug in nestedExpr if multi-character expressions are given for nesting delimiters. Patch provided by new pyparsing user, Hans-Martin Gaudecker - thanks, H-M! - Removed dependency on xml.sax.saxutils.escape, and included internal implementation instead - proposed by Mike Droettboom on the pyparsing mailing list, thanks Mike! Also fixed erroneous mapping in replaceHTMLEntity of " to ', now correctly maps to ". (Also added support for mapping ' to '.) - Fixed typo in ParseResults.insert, found by Alejandro Dubrovsky, good catch! - Added __dir__() methods to ParseBaseException and ParseResults, to support new dir() behavior in Py2.6 and Py3.0. If dir() is called on a ParseResults object, the returned list will include the base set of attribute names, plus any results names that are defined. - Fixed bug in ParseResults.asXML(), in which the first named item within a ParseResults gets reported with an tag instead of with the correct results name. - Fixed bug in '-' error stop, when '-' operator is used inside a Combine expression. - Reverted generator expression to use list comprehension, for better compatibility with old versions of Python. Reported by jester/artixdesign on the SourceForge pyparsing discussion list. - Fixed bug in parseString(parseAll=True), when the input string ends with a comment or whitespace. - Fixed bug in LineStart and LineEnd that did not recognize any special whitespace chars defined using ParserElement.setDefault- WhitespaceChars, found while debugging an issue for Marek Kubica, thanks for the new test case, Marek! - Made Forward class more tolerant of subclassing. Version 1.5.0 - June, 2008 -------------------------- This version of pyparsing includes work on two long-standing FAQ's: support for forcing parsing of the complete input string (without having to explicitly append StringEnd() to the grammar), and a method to improve the mechanism of detecting where syntax errors occur in an input string with various optional and alternative paths. This release also includes a helper method to simplify definition of indentation-based grammars. With these changes (and the past few minor updates), I thought it was finally time to bump the minor rev number on pyparsing - so 1.5.0 is now available! Read on... - AT LAST!!! You can now call parseString and have it raise an exception if the expression does not parse the entire input string. This has been an FAQ for a LONG time. The parseString method now includes an optional parseAll argument (default=False). If parseAll is set to True, then the given parse expression must parse the entire input string. (This is equivalent to adding StringEnd() to the end of the expression.) The default value is False to retain backward compatibility. Inspired by MANY requests over the years, most recently by ecir-hana on the pyparsing wiki! - Added new operator '-' for composing grammar sequences. '-' behaves just like '+' in creating And expressions, but '-' is used to mark grammar structures that should stop parsing immediately and report a syntax error, rather than just backtracking to the last successful parse and trying another alternative. For instance, running the following code: port_definition = Keyword("port") + '=' + Word(nums) entity_definition = Keyword("entity") + "{" + Optional(port_definition) + "}" entity_definition.parseString("entity { port 100 }") pyparsing fails to detect the missing '=' in the port definition. But, since this expression is optional, pyparsing then proceeds to try to match the closing '}' of the entity_definition. Not finding it, pyparsing reports that there was no '}' after the '{' character. Instead, we would like pyparsing to parse the 'port' keyword, and if not followed by an equals sign and an integer, to signal this as a syntax error. This can now be done simply by changing the port_definition to: port_definition = Keyword("port") - '=' + Word(nums) Now after successfully parsing 'port', pyparsing must also find an equals sign and an integer, or it will raise a fatal syntax exception. By judicious insertion of '-' operators, a pyparsing developer can have their grammar report much more informative syntax error messages. Patches and suggestions proposed by several contributors on the pyparsing mailing list and wiki - special thanks to Eike Welk and Thomas/Poldy on the pyparsing wiki! - Added indentedBlock helper method, to encapsulate the parse actions and indentation stack management needed to keep track of indentation levels. Use indentedBlock to define grammars for indentation-based grouping grammars, like Python's. indentedBlock takes up to 3 parameters: - blockStatementExpr - expression defining syntax of statement that is repeated within the indented block - indentStack - list created by caller to manage indentation stack (multiple indentedBlock expressions within a single grammar should share a common indentStack) - indent - boolean indicating whether block must be indented beyond the the current level; set to False for block of left-most statements (default=True) A valid block must contain at least one indented statement. - Fixed bug in nestedExpr in which ignored expressions needed to be set off with whitespace. Reported by Stefaan Himpe, nice catch! - Expanded multiplication of an expression by a tuple, to accept tuple values of None: . expr*(n,None) or expr*(n,) is equivalent to expr*n + ZeroOrMore(expr) (read as "at least n instances of expr") . expr*(None,n) is equivalent to expr*(0,n) (read as "0 to n instances of expr") . expr*(None,None) is equivalent to ZeroOrMore(expr) . expr*(1,None) is equivalent to OneOrMore(expr) Note that expr*(None,n) does not raise an exception if more than n exprs exist in the input stream; that is, expr*(None,n) does not enforce a maximum number of expr occurrences. If this behavior is desired, then write expr*(None,n) + ~expr - Added None as a possible operator for operatorPrecedence. None signifies "no operator", as in multiplying m times x in "y=mx+b". - Fixed bug in Each, reported by Michael Ramirez, in which the order of terms in the Each affected the parsing of the results. Problem was due to premature grouping of the expressions in the overall Each during grammar construction, before the complete Each was defined. Thanks, Michael! - Also fixed bug in Each in which Optional's with default values were not getting the defaults added to the results of the overall Each expression. - Fixed a bug in Optional in which results names were not assigned if a default value was supplied. - Cleaned up Py3K compatibility statements, including exception construction statements, and better equivalence between _ustr and basestring, and __nonzero__ and __bool__. Version 1.4.11 - February, 2008 ------------------------------- - With help from Robert A. Clark, this version of pyparsing is compatible with Python 3.0a3. Thanks for the help, Robert! - Added WordStart and WordEnd positional classes, to support expressions that must occur at the start or end of a word. Proposed by piranha on the pyparsing wiki, good idea! - Added matchOnlyAtCol helper parser action, to simplify parsing log or data files that have optional fields that are column dependent. Inspired by a discussion thread with hubritic on comp.lang.python. - Added withAttribute.ANY_VALUE as a match-all value when using withAttribute. Used to ensure that an attribute is present, without having to match on the actual attribute value. - Added get() method to ParseResults, similar to dict.get(). Suggested by new pyparsing user, Alejandro Dubrovksy, thanks! - Added '==' short-cut to see if a given string matches a pyparsing expression. For instance, you can now write: integer = Word(nums) if "123" == integer: # do something print [ x for x in "123 234 asld".split() if x==integer ] # prints ['123', '234'] - Simplified the use of nestedExpr when using an expression for the opening or closing delimiters. Now the content expression will not have to explicitly negate closing delimiters. Found while working with dfinnie on GHOP Task #277, thanks! - Fixed bug when defining ignorable expressions that are later enclosed in a wrapper expression (such as ZeroOrMore, OneOrMore, etc.) - found while working with Prabhu Gurumurthy, thanks Prahbu! - Fixed bug in withAttribute in which keys were automatically converted to lowercase, making it impossible to match XML attributes with uppercase characters in them. Using with- Attribute requires that you reference attributes in all lowercase if parsing HTML, and in correct case when parsing XML. - Changed '<<' operator on Forward to return None, since this is really used as a pseudo-assignment operator, not as a left-shift operator. By returning None, it is easier to catch faulty statements such as a << b | c, where precedence of operations causes the '|' operation to be performed *after* inserting b into a, so no alternation is actually implemented. The correct form is a << (b | c). With this change, an error will be reported instead of silently clipping the alternative term. (Note: this may break some existing code, but if it does, the code had a silent bug in it anyway.) Proposed by wcbarksdale on the pyparsing wiki, thanks! - Several unit tests were added to pyparsing's regression suite, courtesy of the Google Highly-Open Participation Contest. Thanks to all who administered and took part in this event! Version 1.4.10 - December 9, 2007 --------------------------------- - Fixed bug introduced in v1.4.8, parse actions were called for intermediate operator levels, not just the deepest matching operation level. Again, big thanks to Torsten Marek for helping isolate this problem! Version 1.4.9 - December 8, 2007 -------------------------------- - Added '*' multiplication operator support when creating grammars, accepting either an integer, or a two-integer tuple multiplier, as in: ipAddress = Word(nums) + ('.'+Word(nums))*3 usPhoneNumber = Word(nums) + ('-'+Word(nums))*(1,2) If multiplying by a tuple, the two integer values represent min and max multiples. Suggested by Vincent of eToy.com, great idea, Vincent! - Fixed bug in nestedExpr, original version was overly greedy! Thanks to Michael Ramirez for raising this issue. - Fixed internal bug in ParseResults - when an item was deleted, the key indices were not updated. Thanks to Tim Mitchell for posting a bugfix patch to the SF bug tracking system! - Fixed internal bug in operatorPrecedence - when the results of a right-associative term were sent to a parse action, the wrong tokens were sent. Reported by Torsten Marek, nice job! - Added pop() method to ParseResults. If pop is called with an integer or with no arguments, it will use list semantics and update the ParseResults' list of tokens. If pop is called with a non-integer (a string, for instance), then it will use dict semantics and update the ParseResults' internal dict. Suggested by Donn Ingle, thanks Donn! - Fixed quoted string built-ins to accept '\xHH' hex characters within the string. Version 1.4.8 - October, 2007 ----------------------------- - Added new helper method nestedExpr to easily create expressions that parse lists of data in nested parentheses, braces, brackets, etc. - Added withAttribute parse action helper, to simplify creating filtering parse actions to attach to expressions returned by makeHTMLTags and makeXMLTags. Use withAttribute to qualify a starting tag with one or more required attribute values, to avoid false matches on common tags such as or
. - Added new examples nested.py and withAttribute.py to demonstrate the new features. - Added performance speedup to grammars using operatorPrecedence, instigated by Stefan Reichör - thanks for the feedback, Stefan! - Fixed bug/typo when deleting an element from a ParseResults by using the element's results name. - Fixed whitespace-skipping bug in wrapper classes (such as Group, Suppress, Combine, etc.) and when using setDebug(), reported by new pyparsing user dazzawazza on SourceForge, nice job! - Added restriction to prevent defining Word or CharsNotIn expressions with minimum length of 0 (should use Optional if this is desired), and enhanced docstrings to reflect this limitation. Issue was raised by Joey Tallieu, who submitted a patch with a slightly different solution. Thanks for taking the initiative, Joey, and please keep submitting your ideas! - Fixed bug in makeHTMLTags that did not detect HTML tag attributes with no '= value' portion (such as ""), reported by hamidh on the pyparsing wiki - thanks! - Fixed minor bug in makeHTMLTags and makeXMLTags, which did not accept whitespace in closing tags. Version 1.4.7 - July, 2007 -------------------------- - NEW NOTATION SHORTCUT: ParserElement now accepts results names using a notational shortcut, following the expression with the results name in parentheses. So this: stats = "AVE:" + realNum.setResultsName("average") + \ "MIN:" + realNum.setResultsName("min") + \ "MAX:" + realNum.setResultsName("max") can now be written as this: stats = "AVE:" + realNum("average") + \ "MIN:" + realNum("min") + \ "MAX:" + realNum("max") The intent behind this change is to make it simpler to define results names for significant fields within the expression, while keeping the grammar syntax clean and uncluttered. - Fixed bug when packrat parsing is enabled, with cached ParseResults being updated by subsequent parsing. Reported on the pyparsing wiki by Kambiz, thanks! - Fixed bug in operatorPrecedence for unary operators with left associativity, if multiple operators were given for the same term. - Fixed bug in example simpleBool.py, corrected precedence of "and" vs. "or" operations. - Fixed bug in Dict class, in which keys were converted to strings whether they needed to be or not. Have narrowed this logic to convert keys to strings only if the keys are ints (which would confuse __getitem__ behavior for list indexing vs. key lookup). - Added ParserElement method setBreak(), which will invoke the pdb module's set_trace() function when this expression is about to be parsed. - Fixed bug in StringEnd in which reading off the end of the input string raises an exception - should match. Resolved while answering a question for Shawn on the pyparsing wiki. Version 1.4.6 - April, 2007 --------------------------- - Simplified constructor for ParseFatalException, to support common exception construction idiom: raise ParseFatalException, "unexpected text: 'Spanish Inquisition'" - Added method getTokensEndLoc(), to be called from within a parse action, for those parse actions that need both the starting *and* ending location of the parsed tokens within the input text. - Enhanced behavior of keepOriginalText so that named parse fields are preserved, even though tokens are replaced with the original input text matched by the current expression. Also, cleaned up the stack traversal to be more robust. Suggested by Tim Arnold - thanks, Tim! - Fixed subtle bug in which countedArray (and similar dynamic expressions configured in parse actions) failed to match within Or, Each, FollowedBy, or NotAny. Reported by Ralf Vosseler, thanks for your patience, Ralf! - Fixed Unicode bug in upcaseTokens and downcaseTokens parse actions, scanString, and default debugging actions; reported (and patch submitted) by Nikolai Zamkovoi, spasibo! - Fixed bug when saving a tuple as a named result. The returned token list gave the proper tuple value, but accessing the result by name only gave the first element of the tuple. Reported by Poromenos, nice catch! - Fixed bug in makeHTMLTags/makeXMLTags, which failed to match tag attributes with namespaces. - Fixed bug in SkipTo when setting include=True, to have the skipped-to tokens correctly included in the returned data. Reported by gunars on the pyparsing wiki, thanks! - Fixed typobug in OnceOnly.reset method, omitted self argument. Submitted by eike welk, thanks for the lint-picking! - Added performance enhancement to Forward class, suggested by akkartik on the pyparsing Wiki discussion, nice work! - Added optional asKeyword to Word constructor, to indicate that the given word pattern should be matched only as a keyword, that is, it should only match if it is within word boundaries. - Added S-expression parser to examples directory. - Added macro substitution example to examples directory. - Added holaMundo.py example, excerpted from Marco Alfonso's blog - muchas gracias, Marco! - Modified internal cyclic references in ParseResults to use weakrefs; this should help reduce the memory footprint of large parsing programs, at some cost to performance (3-5%). Suggested by bca48150 on the pyparsing wiki, thanks! - Enhanced the documentation describing the vagaries and idiosyncracies of parsing strings with embedded tabs, and the impact on: . parse actions . scanString . col and line helper functions (Suggested by eike welk in response to some unexplained inconsistencies between parsed location and offsets in the input string.) - Cleaned up internal decorators to preserve function names, docstrings, etc. Version 1.4.5 - December, 2006 ------------------------------ - Removed debugging print statement from QuotedString class. Sorry for not stripping this out before the 1.4.4 release! - A significant performance improvement, the first one in a while! For my Verilog parser, this version of pyparsing is about double the speed - YMMV. - Added support for pickling of ParseResults objects. (Reported by Jeff Poole, thanks Jeff!) - Fixed minor bug in makeHTMLTags that did not recognize tag attributes with embedded '-' or '_' characters. Also, added support for passing expressions to makeHTMLTags and makeXMLTags, and used this feature to define the globals anyOpenTag and anyCloseTag. - Fixed error in alphas8bit, I had omitted the y-with-umlaut character. - Added punc8bit string to complement alphas8bit - it contains all the non-alphabetic, non-blank 8-bit characters. - Added commonHTMLEntity expression, to match common HTML "ampersand" codes, such as "<", ">", "&", " ", and """. This expression also defines a results name 'entity', which can be used to extract the entity field (that is, "lt", "gt", etc.). Also added built-in parse action replaceHTMLEntity, which can be attached to commonHTMLEntity to translate "<", ">", "&", " ", and """ to "<", ">", "&", " ", and "'". - Added example, htmlStripper.py, that strips HTML tags and scripts from HTML pages. It also translates common HTML entities to their respective characters. Version 1.4.4 - October, 2006 ------------------------------- - Fixed traceParseAction decorator to also trap and record exception returns from parse actions, and to handle parse actions with 0, 1, 2, or 3 arguments. - Enhanced parse action normalization to support using classes as parse actions; that is, the class constructor is called at parse time and the __init__ function is called with 0, 1, 2, or 3 arguments. If passing a class as a parse action, the __init__ method must use one of the valid parse action parameter list formats. (This technique is useful when using pyparsing to compile parsed text into a series of application objects - see the new example simpleBool.py.) - Fixed bug in ParseResults when setting an item using an integer index. (Reported by Christopher Lambacher, thanks!) - Fixed whitespace-skipping bug, patch submitted by Paolo Losi - grazie, Paolo! - Fixed bug when a Combine contained an embedded Forward expression, reported by cie on the pyparsing wiki - good catch! - Fixed listAllMatches bug, when a listAllMatches result was nested within another result. (Reported by don pasquale on comp.lang.python, well done!) - Fixed bug in ParseResults items() method, when returning an item marked as listAllMatches=True - Fixed bug in definition of cppStyleComment (and javaStyleComment) in which '//' line comments were not continued to the next line if the line ends with a '\'. (Reported by eagle-eyed Ralph Corderoy!) - Optimized re's for cppStyleComment and quotedString for better re performance - also provided by Ralph Corderoy, thanks! - Added new example, indentedGrammarExample.py, showing how to define a grammar using indentation to show grouping (as Python does for defining statement nesting). Instigated by an e-mail discussion with Andrew Dalke, thanks Andrew! - Added new helper operatorPrecedence (based on e-mail list discussion with Ralph Corderoy and Paolo Losi), to facilitate definition of grammars for expressions with unary and binary operators. For instance, this grammar defines a 6-function arithmetic expression grammar, with unary plus and minus, proper operator precedence,and right- and left-associativity: expr = operatorPrecedence( operand, [("!", 1, opAssoc.LEFT), ("^", 2, opAssoc.RIGHT), (oneOf("+ -"), 1, opAssoc.RIGHT), (oneOf("* /"), 2, opAssoc.LEFT), (oneOf("+ -"), 2, opAssoc.LEFT),] ) Also added example simpleArith.py and simpleBool.py to provide more detailed code samples using this new helper method. - Added new helpers matchPreviousLiteral and matchPreviousExpr, for creating adaptive parsing expressions that match the same content as was parsed in a previous parse expression. For instance: first = Word(nums) matchExpr = first + ":" + matchPreviousLiteral(first) will match "1:1", but not "1:2". Since this matches at the literal level, this will also match the leading "1:1" in "1:10". In contrast: first = Word(nums) matchExpr = first + ":" + matchPreviousExpr(first) will *not* match the leading "1:1" in "1:10"; the expressions are evaluated first, and then compared, so "1" is compared with "10". - Added keepOriginalText parse action. Sometimes pyparsing's whitespace-skipping leaves out too much whitespace. Adding this parse action will restore any internal whitespace for a parse expression. This is especially useful when defining expressions for scanString or transformString applications. - Added __add__ method for ParseResults class, to better support using Python sum built-in for summing ParseResults objects returned from scanString. - Added reset method for the new OnlyOnce class wrapper for parse actions (to allow a grammar to be used multiple times). - Added optional maxMatches argument to scanString and searchString, to short-circuit scanning after 'n' expression matches are found. Version 1.4.3 - July, 2006 ------------------------------ - Fixed implementation of multiple parse actions for an expression (added in 1.4.2). . setParseAction() reverts to its previous behavior, setting one (or more) actions for an expression, overwriting any action or actions previously defined . new method addParseAction() appends one or more parse actions to the list of parse actions attached to an expression Now it is harder to accidentally append parse actions to an expression, when what you wanted to do was overwrite whatever had been defined before. (Thanks, Jean-Paul Calderone!) - Simplified interface to parse actions that do not require all 3 parse action arguments. Very rarely do parse actions require more than just the parsed tokens, yet parse actions still require all 3 arguments including the string being parsed and the location within the string where the parse expression was matched. With this release, parse actions may now be defined to be called as: . fn(string,locn,tokens) (the current form) . fn(locn,tokens) . fn(tokens) . fn() The setParseAction and addParseAction methods will internally decorate the provided parse actions with compatible wrappers to conform to the full (string,locn,tokens) argument sequence. - REMOVED SUPPORT FOR RETURNING PARSE LOCATION FROM A PARSE ACTION. I announced this in March, 2004, and gave a final warning in the last release. Now you can return a tuple from a parse action, and it will be treated like any other return value (i.e., the tuple will be substituted for the incoming tokens passed to the parse action, which is useful when trying to parse strings into tuples). - Added setFailAction method, taking a callable function fn that takes the arguments fn(s,loc,expr,err) where: . s - string being parsed . loc - location where expression match was attempted and failed . expr - the parse expression that failed . err - the exception thrown The function returns no values. It may throw ParseFatalException if it is desired to stop parsing immediately. (Suggested by peter21081944 on wikispaces.com) - Added class OnlyOnce as helper wrapper for parse actions. OnlyOnce only permits a parse action to be called one time, after which all subsequent calls throw a ParseException. - Added traceParseAction decorator to help debug parse actions. Simply insert "@traceParseAction" ahead of the definition of your parse action, and each invocation will be displayed, along with incoming arguments, and returned value. - Fixed bug when copying ParserElements using copy() or setResultsName(). (Reported by Dan Thill, great catch!) - Fixed bug in asXML() where token text contains <, >, and & characters - generated XML now escapes these as <, > and &. (Reported by Jacek Sieka, thanks!) - Fixed bug in SkipTo() when searching for a StringEnd(). (Reported by Pete McEvoy, thanks Pete!) - Fixed "except Exception" statements, the most critical added as part of the packrat parsing enhancement. (Thanks, Erick Tryzelaar!) - Fixed end-of-string infinite looping on LineEnd and StringEnd expressions. (Thanks again to Erick Tryzelaar.) - Modified setWhitespaceChars to return self, to be consistent with other ParserElement modifiers. (Suggested by Erick Tryzelaar.) - Fixed bug/typo in new ParseResults.dump() method. - Fixed bug in searchString() method, in which only the first token of an expression was returned. searchString() now returns a ParseResults collection of all search matches. - Added example program removeLineBreaks.py, a string transformer that converts text files with hard line-breaks into one with line breaks only between paragraphs. - Added example program listAllMatches.py, to illustrate using the listAllMatches option when specifying results names (also shows new support for passing lists to oneOf). - Added example program linenoExample.py, to illustrate using the helper methods lineno, line, and col, and returning objects from a parse action. - Added example program parseListString.py, to which can parse the string representation of a Python list back into a true list. Taken mostly from my PyCon presentation examples, but now with support for tuple elements, too! Version 1.4.2 - April 1, 2006 (No foolin'!) ------------------------------------------- - Significant speedup from memoizing nested expressions (a technique known as "packrat parsing"), thanks to Chris Lesniewski-Laas! Your mileage may vary, but my Verilog parser almost doubled in speed to over 600 lines/sec! This speedup may break existing programs that use parse actions that have side-effects. For this reason, packrat parsing is disabled when you first import pyparsing. To activate the packrat feature, your program must call the class method ParserElement.enablePackrat(). If your program uses psyco to "compile as you go", you must call enablePackrat before calling psyco.full(). If you do not do this, Python will crash. For best results, call enablePackrat() immediately after importing pyparsing. - Added new helper method countedArray(expr), for defining patterns that start with a leading integer to indicate the number of array elements, followed by that many elements, matching the given expr parse expression. For instance, this two-liner: wordArray = countedArray(Word(alphas)) print wordArray.parseString("3 Practicality beats purity")[0] returns the parsed array of words: ['Practicality', 'beats', 'purity'] The leading token '3' is suppressed, although it is easily obtained from the length of the returned array. (Inspired by e-mail discussion with Ralf Vosseler.) - Added support for attaching multiple parse actions to a single ParserElement. (Suggested by Dan "Dang" Griffith - nice idea, Dan!) - Added support for asymmetric quoting characters in the recently-added QuotedString class. Now you can define your own quoted string syntax like "<>". To define this custom form of QuotedString, your code would define: dblAngleQuotedString = QuotedString('<<',endQuoteChar='>>') QuotedString also supports escaped quotes, escape character other than '\', and multiline. - Changed the default value returned internally by Optional, so that None can be used as a default value. (Suggested by Steven Bethard - I finally saw the light!) - Added dump() method to ParseResults, to make it easier to list out and diagnose values returned from calling parseString. - A new example, a search query string parser, submitted by Steven Mooij and Rudolph Froger - a very interesting application, thanks! - Added an example that parses the BNF in Python's Grammar file, in support of generating Python grammar documentation. (Suggested by J H Stovall.) - A new example, submitted by Tim Cera, of a flexible parser module, using a simple config variable to adjust parsing for input formats that have slight variations - thanks, Tim! - Added an example for parsing Roman numerals, showing the capability of parse actions to "compile" Roman numerals into their integer values during parsing. - Added a new docs directory, for additional documentation or help. Currently, this includes the text and examples from my recent presentation at PyCon. - Fixed another typo in CaselessKeyword, thanks Stefan Behnel. - Expanded oneOf to also accept tuples, not just lists. This really should be sufficient... - Added deprecation warnings when tuple is returned from a parse action. Looking back, I see that I originally deprecated this feature in March, 2004, so I'm guessing people really shouldn't have been using this feature - I'll drop it altogether in the next release, which will allow users to return a tuple from a parse action (which is really handy when trying to reconstuct tuples from a tuple string representation!). Version 1.4.1 - February, 2006 ------------------------------ - Converted generator expression in QuotedString class to list comprehension, to retain compatibility with Python 2.3. (Thanks, Titus Brown for the heads-up!) - Added searchString() method to ParserElement, as an alternative to using "scanString(instring).next()[0][0]" to search through a string looking for a substring matching a given parse expression. (Inspired by e-mail conversation with Dave Feustel.) - Modified oneOf to accept lists of strings as well as a single string of space-delimited literals. (Suggested by Jacek Sieka - thanks!) - Removed deprecated use of Upcase in pyparsing test code. (Also caught by Titus Brown.) - Removed lstrip() call from Literal - too aggressive in stripping whitespace which may be valid for some grammars. (Point raised by Jacek Sieka). Also, made Literal more robust in the event of passing an empty string. - Fixed bug in replaceWith when returning None. - Added cautionary documentation for Forward class when assigning a MatchFirst expression, as in: fwdExpr << a | b | c Precedence of operators causes this to be evaluated as: (fwdExpr << a) | b | c thereby leaving b and c out as parseable alternatives. Users must explicitly group the values inserted into the Forward: fwdExpr << (a | b | c) (Suggested by Scot Wilcoxon - thanks, Scot!) Version 1.4 - January 18, 2006 ------------------------------ - Added Regex class, to permit definition of complex embedded expressions using regular expressions. (Enhancement provided by John Beisley, great job!) - Converted implementations of Word, oneOf, quoted string, and comment helpers to utilize regular expression matching. Performance improvements in the 20-40% range. - Added QuotedString class, to support definition of non-standard quoted strings (Suggested by Guillaume Proulx, thanks!) - Added CaselessKeyword class, to streamline grammars with, well, caseless keywords (Proposed by Stefan Behnel, thanks!) - Fixed bug in SkipTo, when using an ignoreable expression. (Patch provided by Anonymous, thanks, whoever-you-are!) - Fixed typo in NoMatch class. (Good catch, Stefan Behnel!) - Fixed minor bug in _makeTags(), using string.printables instead of pyparsing.printables. - Cleaned up some of the expressions created by makeXXXTags helpers, to suppress extraneous <> characters. - Added some grammar definition-time checking to verify that a grammar is being built using proper ParserElements. - Added examples: . LAparser.py - linear algebra C preprocessor (submitted by Mike Ellis, thanks Mike!) . wordsToNum.py - converts word description of a number back to the original number (such as 'one hundred and twenty three' -> 123) . updated fourFn.py to support unary minus, added BNF comments Version 1.3.3 - September 12, 2005 ---------------------------------- - Improved support for Unicode strings that would be returned using srange. Added greetingInKorean.py example, for a Korean version of "Hello, World!" using Unicode. (Thanks, June Kim!) - Added 'hexnums' string constant (nums+"ABCDEFabcdef") for defining hexadecimal value expressions. - NOTE: ===THIS CHANGE MAY BREAK EXISTING CODE=== Modified tag and results definitions returned by makeHTMLTags(), to better support the looseness of HTML parsing. Tags to be parsed are now caseless, and keys generated for tag attributes are now converted to lower case. Formerly, makeXMLTags("XYZ") would return a tag with results name of "startXYZ", this has been changed to "startXyz". If this tag is matched against '', the matched keys formerly would be "Abc", "DEF", and "ghi"; keys are now converted to lower case, giving keys of "abc", "def", and "ghi". These changes were made to try to address the lax case sensitivity agreement between start and end tags in many HTML pages. No changes were made to makeXMLTags(), which assumes more rigorous parsing rules. Also, cleaned up case-sensitivity bugs in closing tags, and switched to using Keyword instead of Literal class for tags. (Thanks, Steve Young, for getting me to look at these in more detail!) - Added two helper parse actions, upcaseTokens and downcaseTokens, which will convert matched text to all uppercase or lowercase, respectively. - Deprecated Upcase class, to be replaced by upcaseTokens parse action. - Converted messages sent to stderr to use warnings module, such as when constructing a Literal with an empty string, one should use the Empty() class or the empty helper instead. - Added ' ' (space) as an escapable character within a quoted string. - Added helper expressions for common comment types, in addition to the existing cStyleComment (/*...*/) and htmlStyleComment () . dblSlashComment = // ... (to end of line) . cppStyleComment = cStyleComment or dblSlashComment . javaStyleComment = cppStyleComment . pythonStyleComment = # ... (to end of line) Version 1.3.2 - July 24, 2005 ----------------------------- - Added Each class as an enhanced version of And. 'Each' requires that all given expressions be present, but may occur in any order. Special handling is provided to group ZeroOrMore and OneOrMore elements that occur out-of-order in the input string. You can also construct 'Each' objects by joining expressions with the '&' operator. When using the Each class, results names are strongly recommended for accessing the matched tokens. (Suggested by Pradam Amini - thanks, Pradam!) - Stricter interpretation of 'max' qualifier on Word elements. If the 'max' attribute is specified, matching will fail if an input field contains more than 'max' consecutive body characters. For example, previously, Word(nums,max=3) would match the first three characters of '0123456', returning '012' and continuing parsing at '3'. Now, when constructed using the max attribute, Word will raise an exception with this string. - Cleaner handling of nested dictionaries returned by Dict. No longer necessary to dereference sub-dictionaries as element [0] of their parents. === NOTE: THIS CHANGE MAY BREAK SOME EXISTING CODE, BUT ONLY IF PARSING NESTED DICTIONARIES USING THE LITTLE-USED DICT CLASS === (Prompted by discussion thread on the Python Tutor list, with contributions from Danny Yoo, Kent Johnson, and original post by Liam Clarke - thanks all!) Version 1.3.1 - June, 2005 ---------------------------------- - Added markInputline() method to ParseException, to display the input text line location of the parsing exception. (Thanks, Stefan Behnel!) - Added setDefaultKeywordChars(), so that Keyword definitions using a custom keyword character set do not all need to add the keywordChars constructor argument (similar to setDefaultWhitespaceChars()). (suggested by rzhanka on the SourceForge pyparsing forum.) - Simplified passing debug actions to setDebugAction(). You can now pass 'None' for a debug action if you want to take the default debug behavior. To suppress a particular debug action, you can pass the pyparsing method nullDebugAction. - Refactored parse exception classes, moved all behavior to ParseBaseException, and the former ParseException is now a subclass of ParseBaseException. Added a second subclass, ParseFatalException, as a subclass of ParseBaseException. User-defined parse actions can raise ParseFatalException if a data inconsistency is detected (such as a begin-tag/end-tag mismatch), and this will stop all parsing immediately. (Inspired by e-mail thread with Michele Petrazzo - thanks, Michelle!) - Added helper methods makeXMLTags and makeHTMLTags, that simplify the definition of XML or HTML tag parse expressions for a given tagname. Both functions return a pair of parse expressions, one for the opening tag (that is, '') and one for the closing tag (''). The opening tagame also recognizes any attribute definitions that have been included in the opening tag, as well as an empty tag (one with a trailing '/', as in '' which is equivalent to ''). makeXMLTags uses stricter XML syntax for attributes, requiring that they be enclosed in double quote characters - makeHTMLTags is more lenient, and accepts single-quoted strings or any contiguous string of characters up to the next whitespace character or '>' character. Attributes can be retrieved as dictionary or attribute values of the returned results from the opening tag. - Added example minimath2.py, a refinement on fourFn.py that adds an interactive session and support for variables. (Thanks, Steven Siew!) - Added performance improvement, up to 20% reduction! (Found while working with Wolfgang Borgert on performance tuning of his TTCN3 parser.) - And another performance improvement, up to 25%, when using scanString! (Found while working with Henrik Westlund on his C header file scanner.) - Updated UML diagrams to reflect latest class/method changes. Version 1.3 - March, 2005 ---------------------------------- - Added new Keyword class, as a special form of Literal. Keywords must be followed by whitespace or other non-keyword characters, to distinguish them from variables or other identifiers that just happen to start with the same characters as a keyword. For instance, the input string containing "ifOnlyIfOnly" will match a Literal("if") at the beginning and in the middle, but will fail to match a Keyword("if"). Keyword("if") will match only strings such as "if only" or "if(only)". (Proposed by Wolfgang Borgert, and Berteun Damman separately requested this on comp.lang.python - great idea!) - Added setWhitespaceChars() method to override the characters to be skipped as whitespace before matching a particular ParseElement. Also added the class-level method setDefaultWhitespaceChars(), to allow users to override the default set of whitespace characters (space, tab, newline, and return) for all subsequently defined ParseElements. (Inspired by Klaas Hofstra's inquiry on the Sourceforge pyparsing forum.) - Added helper parse actions to support some very common parse action use cases: . replaceWith(replStr) - replaces the matching tokens with the provided replStr replacement string; especially useful with transformString() . removeQuotes - removes first and last character from string enclosed in quotes (note - NOT the same as the string strip() method, as only a single character is removed at each end) - Added copy() method to ParseElement, to make it easier to define different parse actions for the same basic parse expression. (Note, copy is implicitly called when using setResultsName().) (The following changes were posted to CVS as Version 1.2.3 - October-December, 2004) - Added support for Unicode strings in creating grammar definitions. (Big thanks to Gavin Panella!) - Added constant alphas8bit to include the following 8-bit characters: ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþ - Added srange() function to simplify definition of Word elements, using regexp-like '[A-Za-z0-9]' syntax. This also simplifies referencing common 8-bit characters. - Fixed bug in Dict when a single element Dict was embedded within another Dict. (Thanks Andy Yates for catching this one!) - Added 'formatted' argument to ParseResults.asXML(). If set to False, suppresses insertion of whitespace for pretty-print formatting. Default equals True for backward compatibility. - Added setDebugActions() function to ParserElement, to allow user-defined debugging actions. - Added support for escaped quotes (either in \', \", or doubled quote form) to the predefined expressions for quoted strings. (Thanks, Ero Carrera!) - Minor performance improvement (~5%) converting "char in string" tests to "char in dict". (Suggested by Gavin Panella, cool idea!) Version 1.2.2 - September 27, 2004 ---------------------------------- - Modified delimitedList to accept an expression as the delimiter, instead of only accepting strings. - Modified ParseResults, to convert integer field keys to strings (to avoid confusion with list access). - Modified Combine, to convert all embedded tokens to strings before combining. - Fixed bug in MatchFirst in which parse actions would be called for expressions that only partially match. (Thanks, John Hunter!) - Fixed bug in fourFn.py example that fixes right-associativity of ^ operator. (Thanks, Andrea Griffini!) - Added class FollowedBy(expression), to look ahead in the input string without consuming tokens. - Added class NoMatch that never matches any input. Can be useful in debugging, and in very specialized grammars. - Added example pgn.py, for parsing chess game files stored in Portable Game Notation. (Thanks, Alberto Santini!) Version 1.2.1 - August 19, 2004 ------------------------------- - Added SkipTo(expression) token type, simplifying grammars that only want to specify delimiting expressions, and want to match any characters between them. - Added helper method dictOf(key,value), making it easier to work with the Dict class. (Inspired by Pavel Volkovitskiy, thanks!). - Added optional argument listAllMatches (default=False) to setResultsName(). Setting listAllMatches to True overrides the default modal setting of tokens to results names; instead, the results name acts as an accumulator for all matching tokens within the local repetition group. (Suggested by Amaury Le Leyzour - thanks!) - Fixed bug in ParseResults, throwing exception when trying to extract slice, or make a copy using [:]. (Thanks, Wilson Fowlie!) - Fixed bug in transformString() when the input string contains 's (Thanks, Rick Walia!). - Fixed bug in returning tokens from un-Grouped And's, Or's and MatchFirst's, where too many tokens would be included in the results, confounding parse actions and returned results. - Fixed bug in naming ParseResults returned by And's, Or's, and Match First's. - Fixed bug in LineEnd() - matching this token now correctly consumes and returns the end of line "\n". - Added a beautiful example for parsing Mozilla calendar files (Thanks, Petri Savolainen!). - Added support for dynamically modifying Forward expressions during parsing. Version 1.2 - 20 June 2004 -------------------------- - Added definition for htmlComment to help support HTML scanning and parsing. - Fixed bug in generating XML for Dict classes, in which trailing item was duplicated in the output XML. - Fixed release bug in which scanExamples.py was omitted from release files. - Fixed bug in transformString() when parse actions are not defined on the outermost parser element. - Added example urlExtractor.py, as another example of using scanString and parse actions. Version 1.2beta3 - 4 June 2004 ------------------------------ - Added White() token type, analogous to Word, to match on whitespace characters. Use White in parsers with significant whitespace (such as configuration file parsers that use indentation to indicate grouping). Construct White with a string containing the whitespace characters to be matched. Similar to Word, White also takes optional min, max, and exact parameters. - As part of supporting whitespace-signficant parsing, added parseWithTabs() method to ParserElement, to override the default behavior in parseString of automatically expanding tabs to spaces. To retain tabs during parsing, call parseWithTabs() before calling parseString(), parseFile() or scanString(). (Thanks, Jean-Guillaume Paradis for catching this, and for your suggestions on whitespace-significant parsing.) - Added transformString() method to ParseElement, as a complement to scanString(). To use transformString, define a grammar and attach a parse action to the overall grammar that modifies the returned token list. Invoking transformString() on a target string will then scan for matches, and replace the matched text patterns according to the logic in the parse action. transformString() returns the resulting transformed string. (Note: transformString() does *not* automatically expand tabs to spaces.) Also added scanExamples.py to the examples directory to show sample uses of scanString() and transformString(). - Removed group() method that was introduced in beta2. This turns out NOT to be equivalent to nesting within a Group() object, and I'd prefer not to sow more seeds of confusion. - Fixed behavior of asXML() where tags for groups were incorrectly duplicated. (Thanks, Brad Clements!) - Changed beta version message to display to stderr instead of stdout, to make asXML() easier to use. (Thanks again, Brad.) Version 1.2beta2 - 19 May 2004 ------------------------------ - *** SIMPLIFIED API *** - Parse actions that do not modify the list of tokens no longer need to return a value. This simplifies those parse actions that use the list of tokens to update a counter or record or display some of the token content; these parse actions can simply end without having to specify 'return toks'. - *** POSSIBLE API INCOMPATIBILITY *** - Fixed CaselessLiteral bug, where the returned token text was not the original string (as stated in the docs), but the original string converted to upper case. (Thanks, Dang Griffith!) **NOTE: this may break some code that relied on this erroneous behavior. Users should scan their code for uses of CaselessLiteral.** - *** POSSIBLE CODE INCOMPATIBILITY *** - I have renamed the internal attributes on ParseResults from 'dict' and 'list' to '__tokdict' and '__toklist', to avoid collisions with user-defined data fields named 'dict' and 'list'. Any client code that accesses these attributes directly will need to be modified. Hopefully the implementation of methods such as keys(), items(), len(), etc. on ParseResults will make such direct attribute accessess unnecessary. - Added asXML() method to ParseResults. This greatly simplifies the process of parsing an input data file and generating XML-structured data. - Added getName() method to ParseResults. This method is helpful when a grammar specifies ZeroOrMore or OneOrMore of a MatchFirst or Or expression, and the parsing code needs to know which expression matched. (Thanks, Eric van der Vlist, for this idea!) - Added items() and values() methods to ParseResults, to better support using ParseResults as a Dictionary. - Added parseFile() as a convenience function to parse the contents of an entire text file. Accepts either a file name or a file object. (Thanks again, Dang!) - Added group() method to And, Or, and MatchFirst, as a short-cut alternative to enclosing a construct inside a Group object. - Extended fourFn.py to support exponentiation, and simple built-in functions. - Added EBNF parser to examples, including a demo where it parses its own EBNF! (Thanks to Seo Sanghyeon!) - Added Delphi Form parser to examples, dfmparse.py, plus a couple of sample Delphi forms as tests. (Well done, Dang!) - Another performance speedup, 5-10%, inspired by Dang! Plus about a 20% speedup, by pre-constructing and cacheing exception objects instead of constructing them on the fly. - Fixed minor bug when specifying oneOf() with 'caseless=True'. - Cleaned up and added a few more docstrings, to improve the generated docs. Version 1.1.2 - 21 Mar 2004 --------------------------- - Fixed minor bug in scanString(), so that start location is at the start of the matched tokens, not at the start of the whitespace before the matched tokens. - Inclusion of HTML documentation, generated using Epydoc. Reformatted some doc strings to better generate readable docs. (Beautiful work, Ed Loper, thanks for Epydoc!) - Minor performance speedup, 5-15% - And on a process note, I've used the unittest module to define a series of unit tests, to help avoid the embarrassment of the version 1.1 snafu. Version 1.1.1 - 6 Mar 2004 -------------------------- - Fixed critical bug introduced in 1.1, which broke MatchFirst(!) token matching. **THANK YOU, SEO SANGHYEON!!!** - Added "from future import __generators__" to permit running under pre-Python 2.3. - Added example getNTPservers.py, showing how to use pyparsing to extract a text pattern from the HTML of a web page. Version 1.1 - 3 Mar 2004 ------------------------- - ***Changed API*** - While testing out parse actions, I found that the value of loc passed in was not the starting location of the matched tokens, but the location of the next token in the list. With this version, the location passed to the parse action is now the starting location of the tokens that matched. A second part of this change is that the return value of parse actions no longer needs to return a tuple containing both the location and the parsed tokens (which may optionally be modified); parse actions only need to return the list of tokens. Parse actions that return a tuple are deprecated; they will still work properly for conversion/compatibility, but this behavior will be removed in a future version. - Added validate() method, to help diagnose infinite recursion in a grammar tree. validate() is not 100% fool-proof, but it can help track down nasty infinite looping due to recursively referencing the same grammar construct without some intervening characters. - Cleaned up default listing of some parse element types, to more closely match ordinary BNF. Instead of the form :[contents-list], some changes are: . And(token1,token2,token3) is "{ token1 token2 token3 }" . Or(token1,token2,token3) is "{ token1 ^ token2 ^ token3 }" . MatchFirst(token1,token2,token3) is "{ token1 | token2 | token3 }" . Optional(token) is "[ token ]" . OneOrMore(token) is "{ token }..." . ZeroOrMore(token) is "[ token ]..." - Fixed an infinite loop in oneOf if the input string contains a duplicated option. (Thanks Brad Clements) - Fixed a bug when specifying a results name on an Optional token. (Thanks again, Brad Clements) - Fixed a bug introduced in 1.0.6 when I converted quotedString to use CharsNotIn; I accidentally permitted quoted strings to span newlines. I have fixed this in this version to go back to the original behavior, in which quoted strings do *not* span newlines. - Fixed minor bug in HTTP server log parser. (Thanks Jim Richardson) Version 1.0.6 - 13 Feb 2004 ---------------------------- - Added CharsNotIn class (Thanks, Lee SangYeong). This is the opposite of Word, in that it is constructed with a set of characters *not* to be matched. (This enhancement also allowed me to clean up and simplify some of the definitions for quoted strings, cStyleComment, and restOfLine.) - **MINOR API CHANGE** - Added joinString argument to the __init__ method of Combine (Thanks, Thomas Kalka). joinString defaults to "", but some applications might choose some other string to use instead, such as a blank or newline. joinString was inserted as the second argument to __init__, so if you have code that specifies an adjacent value, without using 'adjacent=', this code will break. - Modified LineStart to recognize the start of an empty line. - Added optional caseless flag to oneOf(), to create a list of CaselessLiteral tokens instead of Literal tokens. - Added some enhancements to the SQL example: . Oracle-style comments (Thanks to Harald Armin Massa) . simple WHERE clause - Minor performance speedup - 5-15% Version 1.0.5 - 19 Jan 2004 ---------------------------- - Added scanString() generator method to ParseElement, to support regex-like pattern-searching - Added items() list to ParseResults, to return named results as a list of (key,value) pairs - Fixed memory overflow in asList() for deeply nested ParseResults (Thanks, Sverrir Valgeirsson) - Minor performance speedup - 10-15% Version 1.0.4 - 8 Jan 2004 --------------------------- - Added positional tokens StringStart, StringEnd, LineStart, and LineEnd - Added commaSeparatedList to pre-defined global token definitions; also added commasep.py to the examples directory, to demonstrate the differences between parsing comma-separated data and simple line-splitting at commas - Minor API change: delimitedList does not automatically enclose the list elements in a Group, but makes this the responsibility of the caller; also, if invoked using 'combine=True', the list delimiters are also included in the returned text (good for scoped variables, such as a.b.c or a::b::c, or for directory paths such as a/b/c) - Performance speed-up again, 30-40% - Added httpServerLogParser.py to examples directory, as this is a common parsing task Version 1.0.3 - 23 Dec 2003 --------------------------- - Performance speed-up again, 20-40% - Added Python distutils installation setup.py, etc. (thanks, Dave Kuhlman) Version 1.0.2 - 18 Dec 2003 --------------------------- - **NOTE: Changed API again!!!** (for the last time, I hope) + Renamed module from parsing to pyparsing, to better reflect Python linkage. - Also added dictExample.py to examples directory, to illustrate usage of the Dict class. Version 1.0.1 - 17 Dec 2003 --------------------------- - **NOTE: Changed API!** + Renamed 'len' argument on Word.__init__() to 'exact' - Performance speed-up, 10-30% Version 1.0.0 - 15 Dec 2003 --------------------------- - Initial public release Version 0.1.1 thru 0.1.17 - October-November, 2003 -------------------------------------------------- - initial development iterations: - added Dict, Group - added helper methods oneOf, delimitedList - added helpers quotedString (and double and single), restOfLine, cStyleComment - added MatchFirst as an alternative to the slower Or - added UML class diagram - fixed various logic bugs pyparsing-2.2.0+dfsg1/pyparsingClassDiagram.PNG0000644000175000017500000042405211170740075020077 0ustar zigozigoPNG  IHDR{ 7 IDATx]lSg/7RF}HCA4g"v.HL!RIDEQgii*pa*(&QIR&$e.M9)PB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; |!ӋI^c<©]l:vQ<$RVckexuwa޷M~X^jץ<[ϸ&?/""{bDDredD:2p XpN o8盾/2*=-e^& hH3WYvm+m`x2wT4zb+Vxp(6%!""z#"jsɆٙ?)Q>N@D+1"|NZ͛N@D^HDDDDDnĈڍѻz=16_}T""":XLl=t DDDtlx"Z_io=^^z*1oͬW^itM?z“]z^+1"&1f)%IDATǕTno_v/z?WڽG/xsyvo+%Ͽ=;ūܾכBv/$m?v -o^x^~êTa%FDԌڽmsp1 \88/Ž%>p^2z߿,~_nԛo{a{DDDtdX5H/Gɓr%0_ |2ZE9JW>qWaY~9tq""":X5kG_z7~ 迩ܸro߅7\W.U: *8ՙ{ܾqgN< rW'"B>!w:"Bܟ?>NCD-xG}O[tw2'"* .DDDDDDƫ͛N@DDDg+1"kN$"""""j7VbDDDDDDJXhj$!2!g*9sQy!Daaj!5n/X52#y^Q95S;;9˽֍SLoF]R҃US$""z?DDGOSBYvl'6ݶmc]dW6%kGxj]_Êm!xX. zӰ]?b:y""3=1"tNC5t^XmAO=l/,][ Ƴ*4JU),!^w}xƕ;hZL-TecY8X59ϟ{dl]7e8i naL1^gjD3P.9hgߥ(%^.2꺤 )F9kՇ]V^fЈB>!w:"Bܟu:S$$văDgS'M݇%"j7Ax""zG~뺚E|u=,v:""S=1"JIƞQ#"""""j7VbDDDDDDJ<1"L~,c%FDTI즶DՉDDDDDDJdg"""""ⓝ:Q#"""""j7VbDDDDDDJX+1"""""vc%FDDDDDnĈڍQ#"""""j7VbDDDDDDJX+1"""""vc%FDDDDDnĈڍQ#"""""j7VbDDDDDDm;<.qjIENDB`pyparsing-2.2.0+dfsg1/setup.cfg0000644000175000017500000000017213057145333015056 0ustar zigozigo[bdist_wheel] universal = 1 [wheel] universal = 1 [egg_info] tag_build = tag_date = 0 tag_svn_revision = 0 pyparsing-2.2.0+dfsg1/docs/0000755000175000017500000000000013242520703014157 5ustar zigozigopyparsing-2.2.0+dfsg1/docs/HowToUsePyparsing.html0000644000175000017500000020762412171434766020507 0ustar zigozigo Using the pyparsing module

Using the pyparsing module

Author: Paul McGuire
Address:
ptmcg@users.sourceforge.net
Revision: 2.0.1
Date: July, 2013
Copyright: Copyright © 2003-2013 Paul McGuire.
abstract:This document provides how-to instructions for the pyparsing library, an easy-to-use Python module for constructing and executing basic text parsers. The pyparsing module is useful for evaluating user-definable expressions, processing custom application language commands, or extracting data from formatted reports.

1   Steps to follow

To parse an incoming data string, the client code must follow these steps:

  1. First define the tokens and patterns to be matched, and assign this to a program variable. Optional results names or parsing actions can also be defined at this time.
  2. Call parseString() or scanString() on this variable, passing in the string to be parsed. During the matching process, whitespace between tokens is skipped by default (although this can be changed). When token matches occur, any defined parse action methods are called.
  3. Process the parsed results, returned as a list of strings. Matching results may also be accessed as named attributes of the returned results, if names are defined in the definition of the token pattern, using setResultsName().

1.1   Hello, World!

The following complete Python program will parse the greeting "Hello, World!", or any other greeting of the form "<salutation>, <addressee>!":

from pyparsing import Word, alphas

greet = Word( alphas ) + "," + Word( alphas ) + "!"
greeting = greet.parseString( "Hello, World!" )
print greeting

The parsed tokens are returned in the following form:

['Hello', ',', 'World', '!']

1.2   Usage notes

  • The pyparsing module can be used to interpret simple command strings or algebraic expressions, or can be used to extract data from text reports with complicated format and structure ("screen or report scraping"). However, it is possible that your defined matching patterns may accept invalid inputs. Use pyparsing to extract data from strings assumed to be well-formatted.

  • To keep up the readability of your code, use operators such as +, |, ^, and ~ to combine expressions. You can also combine string literals with ParseExpressions - they will be automatically converted to Literal objects. For example:

    integer  = Word( nums )            # simple unsigned integer
    variable = Word( alphas, max=1 )   # single letter variable, such as x, z, m, etc.
    arithOp  = Word( "+-*/", max=1 )   # arithmetic operators
    equation = variable + "=" + integer + arithOp + integer    # will match "x=2+2", etc.
    

    In the definition of equation, the string "=" will get added as a Literal("="), but in a more readable way.

  • The pyparsing module's default behavior is to ignore whitespace. This is the case for 99% of all parsers ever written. This allows you to write simple, clean, grammars, such as the above equation, without having to clutter it up with extraneous ws markers. The equation grammar will successfully parse all of the following statements:

    x=2+2
    x = 2+2
    a = 10   *   4
    r= 1234/ 100000
    

    Of course, it is quite simple to extend this example to support more elaborate expressions, with nesting with parentheses, floating point numbers, scientific notation, and named constants (such as e or pi). See fourFn.py, included in the examples directory.

  • To modify pyparsing's default whitespace skipping, you can use one or more of the following methods:

    • use the static method ParserElement.setDefaultWhitespaceChars to override the normal set of whitespace chars (' tn'). For instance when defining a grammar in which newlines are significant, you should call ParserElement.setDefaultWhitespaceChars(' \t') to remove newline from the set of skippable whitespace characters. Calling this method will affect all pyparsing expressions defined afterward.

    • call leaveWhitespace() on individual expressions, to suppress the skipping of whitespace before trying to match the expression

    • use Combine to require that successive expressions must be adjacent in the input string. For instance, this expression:

      real = Word(nums) + '.' + Word(nums)
      

      will match "3.14159", but will also match "3 . 12". It will also return the matched results as ['3', '.', '14159']. By changing this expression to:

      real = Combine( Word(nums) + '.' + Word(nums) )
      

      it will not match numbers with embedded spaces, and it will return a single concatenated string '3.14159' as the parsed token.

  • Repetition of expressions can be indicated using the '*' operator. An expression may be multiplied by an integer value (to indicate an exact repetition count), or by a tuple containing two integers, or None and an integer, representing min and max repetitions (with None representing no min or no max, depending whether it is the first or second tuple element). See the following examples, where n is used to indicate an integer value:

    • expr*3 is equivalent to expr + expr + expr
    • expr*(2,3) is equivalent to expr + expr + Optional(expr)
    • expr*(n,None) or expr*(n,) is equivalent to expr*n + ZeroOrMore(expr) (read as "at least n instances of expr")
    • expr*(None,n) is equivalent to expr*(0,n) (read as "0 to n instances of expr")
    • expr*(None,None) is equivalent to ZeroOrMore(expr)
    • expr*(1,None) is equivalent to OneOrMore(expr)

    Note that expr*(None,n) does not raise an exception if more than n exprs exist in the input stream; that is, expr*(None,n) does not enforce a maximum number of expr occurrences. If this behavior is desired, then write expr*(None,n) + ~expr.

  • MatchFirst expressions are matched left-to-right, and the first match found will skip all later expressions within, so be sure to define less-specific patterns after more-specific patterns. If you are not sure which expressions are most specific, use Or expressions (defined using the ^ operator) - they will always match the longest expression, although they are more compute-intensive.

  • Or expressions will evaluate all of the specified subexpressions to determine which is the "best" match, that is, which matches the longest string in the input data. In case of a tie, the left-most expression in the Or list will win.

  • If parsing the contents of an entire file, pass it to the parseFile method using:

    expr.parseFile( sourceFile )
    
  • ParseExceptions will report the location where an expected token or expression failed to match. For example, if we tried to use our "Hello, World!" parser to parse "Hello World!" (leaving out the separating comma), we would get an exception, with the message:

    pyparsing.ParseException: Expected "," (6), (1,7)
    

    In the case of complex expressions, the reported location may not be exactly where you would expect. See more information under ParseException .

  • Use the Group class to enclose logical groups of tokens within a sublist. This will help organize your results into more hierarchical form (the default behavior is to return matching tokens as a flat list of matching input strings).

  • Punctuation may be significant for matching, but is rarely of much interest in the parsed results. Use the suppress() method to keep these tokens from cluttering up your returned lists of tokens. For example, delimitedList() matches a succession of one or more expressions, separated by delimiters (commas by default), but only returns a list of the actual expressions - the delimiters are used for parsing, but are suppressed from the returned output.

  • Parse actions can be used to convert values from strings to other data types (ints, floats, booleans, etc.).

  • Results names are recommended for retrieving tokens from complex expressions. It is much easier to access a token using its field name than using a positional index, especially if the expression contains optional elements. You can also shortcut the setResultsName call:

    stats = "AVE:" + realNum.setResultsName("average") + \
            "MIN:" + realNum.setResultsName("min") + \
            "MAX:" + realNum.setResultsName("max")
    

    can now be written as this:

    stats = "AVE:" + realNum("average") + \
            "MIN:" + realNum("min") + \
            "MAX:" + realNum("max")
    
  • Be careful when defining parse actions that modify global variables or data structures (as in fourFn.py), especially for low level tokens or expressions that may occur within an And expression; an early element of an And may match, but the overall expression may fail.

  • Performance of pyparsing may be slow for complex grammars and/or large input strings. The psyco package can be used to improve the speed of the pyparsing module with no changes to grammar or program logic - observed improvments have been in the 20-50% range.

2   Classes

2.1   Classes in the pyparsing module

ParserElement - abstract base class for all pyparsing classes; methods for code to use are:

  • parseString( sourceString, parseAll=False ) - only called once, on the overall matching pattern; returns a ParseResults object that makes the matched tokens available as a list, and optionally as a dictionary, or as an object with named attributes; if parseAll is set to True, then parseString will raise a ParseException if the grammar does not process the complete input string.

  • parseFile( sourceFile ) - a convenience function, that accepts an input file object or filename. The file contents are passed as a string to parseString(). parseFile also supports the parseAll argument.

  • scanString( sourceString ) - generator function, used to find and extract matching text in the given source string; for each matched text, returns a tuple of:

    • matched tokens (packaged as a ParseResults object)
    • start location of the matched text in the given source string
    • end location in the given source string

    scanString allows you to scan through the input source string for random matches, instead of exhaustively defining the grammar for the entire source text (as would be required with parseString).

  • transformString( sourceString ) - convenience wrapper function for scanString, to process the input source string, and replace matching text with the tokens returned from parse actions defined in the grammar (see setParseAction).

  • searchString( sourceString ) - another convenience wrapper function for scanString, returns a list of the matching tokens returned from each call to scanString.

  • setName( name ) - associate a short descriptive name for this element, useful in displaying exceptions and trace information

  • setResultsName( string, listAllMatches=False ) - name to be given to tokens matching the element; if multiple tokens within a repetition group (such as ZeroOrMore or delimitedList) the default is to return only the last matching token - if listAllMatches is set to True, then a list of all the matching tokens is returned. (New in 1.5.6 - a results name with a trailing '*' character will be interpreted as setting listAllMatches to True.) Note: setResultsName returns a copy of the element so that a single basic element can be referenced multiple times and given different names within a complex grammar.

  • setParseAction( *fn ) - specify one or more functions to call after successful matching of the element; each function is defined as fn( s, loc, toks ), where:

    • s is the original parse string
    • loc is the location in the string where matching started
    • toks is the list of the matched tokens, packaged as a ParseResults object

    Multiple functions can be attached to a ParserElement by specifying multiple arguments to setParseAction, or by calling setParseAction multiple times.

    Each parse action function can return a modified toks list, to perform conversion, or string modifications. For brevity, fn may also be a lambda - here is an example of using a parse action to convert matched integer tokens from strings to integers:

    intNumber = Word(nums).setParseAction( lambda s,l,t: [ int(t[0]) ] )
    

    If fn does not modify the toks list, it does not need to return anything at all.

  • setBreak( breakFlag=True ) - if breakFlag is True, calls pdb.set_break() as this expression is about to be parsed

  • copy() - returns a copy of a ParserElement; can be used to use the same parse expression in different places in a grammar, with different parse actions attached to each

  • leaveWhitespace() - change default behavior of skipping whitespace before starting matching (mostly used internally to the pyparsing module, rarely used by client code)

  • setWhitespaceChars( chars ) - define the set of chars to be ignored as whitespace before trying to match a specific ParserElement, in place of the default set of whitespace (space, tab, newline, and return)

  • setDefaultWhitespaceChars( chars ) - class-level method to override the default set of whitespace chars for all subsequently created ParserElements (including copies); useful when defining grammars that treat one or more of the default whitespace characters as significant (such as a line-sensitive grammar, to omit newline from the list of ignorable whitespace)

  • suppress() - convenience function to suppress the output of the given element, instead of wrapping it with a Suppress object.

  • ignore( expr ) - function to specify parse expression to be ignored while matching defined patterns; can be called repeatedly to specify multiple expressions; useful to specify patterns of comment syntax, for example

  • setDebug( dbgFlag=True ) - function to enable/disable tracing output when trying to match this element

  • validate() - function to verify that the defined grammar does not contain infinitely recursive constructs

  • parseWithTabs() - function to override default behavior of converting tabs to spaces before parsing the input string; rarely used, except when specifying whitespace-significant grammars using the White class.
  • enablePackrat() - a class-level static method to enable a memoizing performance enhancement, known as "packrat parsing". packrat parsing is disabled by default, since it may conflict with some user programs that use parse actions. To activate the packrat feature, your program must call the class method ParserElement.enablePackrat(). If your program uses psyco to "compile as you go", you must call enablePackrat before calling psyco.full(). If you do not do this, Python will crash. For best results, call enablePackrat() immediately after importing pyparsing.

2.2   Basic ParserElement subclasses

  • Literal - construct with a string to be matched exactly
  • CaselessLiteral - construct with a string to be matched, but without case checking; results are always returned as the defining literal, NOT as they are found in the input string
  • Keyword - similar to Literal, but must be immediately followed by whitespace, punctuation, or other non-keyword characters; prevents accidental matching of a non-keyword that happens to begin with a defined keyword
  • CaselessKeyword - similar to Keyword, but with caseless matching behavior
  • Word - one or more contiguous characters; construct with a string containing the set of allowed initial characters, and an optional second string of allowed body characters; for instance, a common Word construct is to match a code identifier - in C, a valid identifier must start with an alphabetic character or an underscore ('_'), followed by a body that can also include numeric digits. That is, a, i, MAX_LENGTH, _a1, b_109_, and plan9FromOuterSpace are all valid identifiers; 9b7z, $a, .section, and 0debug are not. To define an identifier using a Word, use either of the following:

    - Word( alphas+"_", alphanums+"_" )
    - Word( srange("[a-zA-Z_]"), srange("[a-zA-Z0-9_]") )
    

    If only one string given, it specifies that the same character set defined for the initial character is used for the word body; for instance, to define an identifier that can only be composed of capital letters and underscores, use:

    - Word( "ABCDEFGHIJKLMNOPQRSTUVWXYZ_" )
    - Word( srange("[A-Z_]") )
    

    A Word may also be constructed with any of the following optional parameters:

    • min - indicating a minimum length of matching characters
    • max - indicating a maximum length of matching characters
    • exact - indicating an exact length of matching characters

    If exact is specified, it will override any values for min or max.

    New in 1.5.6 - Sometimes you want to define a word using all characters in a range except for one or two of them; you can do this with the new excludeChars argument. This is helpful if you want to define a word with all printables except for a single delimiter character, such as '.'. Previously, you would have to create a custom string to pass to Word. With this change, you can just create Word(printables, excludeChars='.').

  • CharsNotIn - similar to Word, but matches characters not in the given constructor string (accepts only one string for both initial and body characters); also supports min, max, and exact optional parameters.

  • Regex - a powerful construct, that accepts a regular expression to be matched at the current parse position; accepts an optional flags parameter, corresponding to the flags parameter in the re.compile method; if the expression includes named sub-fields, they will be represented in the returned ParseResults

  • QuotedString - supports the definition of custom quoted string formats, in addition to pyparsing's built-in dblQuotedString and sglQuotedString. QuotedString allows you to specify the following parameters:

    • quoteChar - string of one or more characters defining the quote delimiting string
    • escChar - character to escape quotes, typically backslash (default=None)
    • escQuote - special quote sequence to escape an embedded quote string (such as SQL's "" to escape an embedded ") (default=None)
    • multiline - boolean indicating whether quotes can span multiple lines (default=False)
    • unquoteResults - boolean indicating whether the matched text should be unquoted (default=True)
    • endQuoteChar - string of one or more characters defining the end of the quote delimited string (default=None => same as quoteChar)
  • SkipTo - skips ahead in the input string, accepting any characters up to the specified pattern; may be constructed with the following optional parameters:

    • include - if set to true, also consumes the match expression (default is False)
    • ignore - allows the user to specify patterns to not be matched, to prevent false matches
    • failOn - if a literal string or expression is given for this argument, it defines an expression that should cause the SkipTo expression to fail, and not skip over that expression
  • White - also similar to Word, but matches whitespace characters. Not usually needed, as whitespace is implicitly ignored by pyparsing. However, some grammars are whitespace-sensitive, such as those that use leading tabs or spaces to indicating grouping or hierarchy. (If matching on tab characters, be sure to call parseWithTabs on the top-level parse element.)
  • Empty - a null expression, requiring no characters - will always match; useful for debugging and for specialized grammars
  • NoMatch - opposite of Empty, will never match; useful for debugging and for specialized grammars

2.3   Expression subclasses

  • And - construct with a list of ParserElements, all of which must match for And to match; can also be created using the '+' operator; multiple expressions can be Anded together using the '*' operator as in:

    ipAddress = Word(nums) + ('.'+Word(nums))*3
    

    A tuple can be used as the multiplier, indicating a min/max:

    usPhoneNumber = Word(nums) + ('-'+Word(nums))*(1,2)
    

    A special form of And is created if the '-' operator is used instead of the '+' operator. In the ipAddress example above, if no trailing '.' and Word(nums) are found after matching the initial Word(nums), then pyparsing will back up in the grammar and try other alternatives to ipAddress. However, if ipAddress is defined as:

    strictIpAddress = Word(nums) - ('.'+Word(nums))*3
    

    then no backing up is done. If the first Word(nums) of strictIpAddress is matched, then any mismatch after that will raise a ParseSyntaxException, which will halt the parsing process immediately. By careful use of the '-' operator, grammars can provide meaningful error messages close to the location where the incoming text does not match the specified grammar.

  • Or - construct with a list of ParserElements, any of which must match for Or to match; if more than one expression matches, the expression that makes the longest match will be used; can also be created using the '^' operator

  • MatchFirst - construct with a list of ParserElements, any of which must match for MatchFirst to match; matching is done left-to-right, taking the first expression that matches; can also be created using the '|' operator

  • Each - similar to And, in that all of the provided expressions must match; however, Each permits matching to be done in any order; can also be created using the '&' operator

  • Optional - construct with a ParserElement, but this element is not required to match; can be constructed with an optional default argument, containing a default string or object to be supplied if the given optional parse element is not found in the input string; parse action will only be called if a match is found, or if a default is specified

  • ZeroOrMore - similar to Optional, but can be repeated

  • OneOrMore - similar to ZeroOrMore, but at least one match must be present

  • FollowedBy - a lookahead expression, requires matching of the given expressions, but does not advance the parsing position within the input string

  • NotAny - a negative lookahead expression, prevents matching of named expressions, does not advance the parsing position within the input string; can also be created using the unary '~' operator

2.4   Expression operators

  • ~ - creates NotAny using the expression after the operator
  • + - creates And using the expressions before and after the operator
  • | - creates MatchFirst (first left-to-right match) using the expressions before and after the operator
  • ^ - creates Or (longest match) using the expressions before and after the operator
  • & - creates Each using the expressions before and after the operator
  • * - creates And by multiplying the expression by the integer operand; if expression is multiplied by a 2-tuple, creates an And of (min,max) expressions (similar to "{min,max}" form in regular expressions); if min is None, intepret as (0,max); if max is None, interpret as expr*min + ZeroOrMore(expr)
  • - - like + but with no backup and retry of alternatives
  • * - repetition of expression
  • == - matching expression to string; returns True if the string matches the given expression
  • <<= - inserts the expression following the operator as the body of the Forward expression before the operator (formerly <<, which is now deprecated)

2.5   Positional subclasses

  • StringStart - matches beginning of the text
  • StringEnd - matches the end of the text
  • LineStart - matches beginning of a line (lines delimited by \n characters)
  • LineEnd - matches the end of a line
  • WordStart - matches a leading word boundary
  • WordEnd - matches a trailing word boundary

2.6   Converter subclasses

  • Upcase - converts matched tokens to uppercase (deprecated - use upcaseTokens parse action instead)
  • Combine - joins all matched tokens into a single string, using specified joinString (default joinString=""); expects all matching tokens to be adjacent, with no intervening whitespace (can be overridden by specifying adjacent=False in constructor)
  • Suppress - clears matched tokens; useful to keep returned results from being cluttered with required but uninteresting tokens (such as list delimiters)

2.7   Special subclasses

  • Group - causes the matched tokens to be enclosed in a list; useful in repeated elements like ZeroOrMore and OneOrMore to break up matched tokens into groups for each repeated pattern
  • Dict - like Group, but also constructs a dictionary, using the [0]'th elements of all enclosed token lists as the keys, and each token list as the value
  • SkipTo - catch-all matching expression that accepts all characters up until the given pattern is found to match; useful for specifying incomplete grammars
  • Forward - placeholder token used to define recursive token patterns; when defining the actual expression later in the program, insert it into the Forward object using the <<= operator (see fourFn.py for an example).

2.8   Other classes

  • ParseResults - class used to contain and manage the lists of tokens created from parsing the input using the user-defined parse expression. ParseResults can be accessed in a number of ways:

    • as a list
      • total list of elements can be found using len()
      • individual elements can be found using [0], [1], [-1], etc.
      • elements can be deleted using del
      • the -1th element can be extracted and removed in a single operation using pop(), or any element can be extracted and removed using pop(n)
    • as a dictionary
      • if setResultsName() is used to name elements within the overall parse expression, then these fields can be referenced as dictionary elements or as attributes
      • the Dict class generates dictionary entries using the data of the input text - in addition to ParseResults listed as [ [ a1, b1, c1, ...], [ a2, b2, c2, ...]  ] it also acts as a dictionary with entries defined as { a1 : [ b1, c1, ... ] }, { a2 : [ b2, c2, ... ] }; this is especially useful when processing tabular data where the first column contains a key value for that line of data
      • list elements that are deleted using del will still be accessible by their dictionary keys
      • supports get(), items() and keys() methods, similar to a dictionary
      • a keyed item can be extracted and removed using pop(key). Here key must be non-numeric (such as a string), in order to use dict extraction instead of list extraction.
      • new named elements can be added (in a parse action, for instance), using the same syntax as adding an item to a dict (parseResults["X"]="new item"); named elements can be removed using del parseResults["X"]
    • as a nested list
      • results returned from the Group class are encapsulated within their own list structure, so that the tokens can be handled as a hierarchical tree

    ParseResults can also be converted to an ordinary list of strings by calling asList(). Note that this will strip the results of any field names that have been defined for any embedded parse elements. (The pprint module is especially good at printing out the nested contents given by asList().)

    Finally, ParseResults can be converted to an XML string by calling asXML(). Where possible, results will be tagged using the results names defined for the respective ParseExpressions. asXML() takes two optional arguments:

    • doctagname - for ParseResults that do not have a defined name, this argument will wrap the resulting XML in a set of opening and closing tags <doctagname> and </doctagname>.
    • namedItemsOnly (default=False) - flag to indicate if the generated XML should skip items that do not have defined names. If a nested group item is named, then all embedded items will be included, whether they have names or not.

2.9   Exception classes and Troubleshooting

  • ParseException - exception returned when a grammar parse fails; ParseExceptions have attributes loc, msg, line, lineno, and column; to view the text line and location where the reported ParseException occurs, use:

    except ParseException, err:
        print err.line
        print " "*(err.column-1) + "^"
        print err
    
  • RecursiveGrammarException - exception returned by validate() if the grammar contains a recursive infinite loop, such as:

    badGrammar = Forward()
    goodToken = Literal("A")
    badGrammar <<= Optional(goodToken) + badGrammar
    
  • ParseFatalException - exception that parse actions can raise to stop parsing immediately. Should be used when a semantic error is found in the input text, such as a mismatched XML tag.

  • ParseSyntaxException - subclass of ParseFatalException raised when a syntax error is found, based on the use of the '-' operator when defining a sequence of expressions in an And expression.

You can also get some insights into the parsing logic using diagnostic parse actions, and setDebug(), or test the matching of expression fragments by testing them using scanString().

3   Miscellaneous attributes and methods

3.1   Helper methods

  • delimitedList( expr, delim=',') - convenience function for matching one or more occurrences of expr, separated by delim. By default, the delimiters are suppressed, so the returned results contain only the separate list elements. Can optionally specify combine=True, indicating that the expressions and delimiters should be returned as one combined value (useful for scoped variables, such as "a.b.c", or "a::b::c", or paths such as "a/b/c").

  • countedArray( expr ) - convenience function for a pattern where an list of instances of the given expression are preceded by an integer giving the count of elements in the list. Returns an expression that parses the leading integer, reads exactly that many expressions, and returns the array of expressions in the parse results - the leading integer is suppressed from the results (although it is easily reconstructed by using len on the returned array).

  • oneOf( string, caseless=False ) - convenience function for quickly declaring an alternative set of Literal tokens, by splitting the given string on whitespace boundaries. The tokens are sorted so that longer matches are attempted first; this ensures that a short token does not mask a longer one that starts with the same characters. If caseless=True, will create an alternative set of CaselessLiteral tokens.

  • dictOf( key, value ) - convenience function for quickly declaring a dictionary pattern of Dict( ZeroOrMore( Group( key + value ) ) ).

  • makeHTMLTags( tagName ) and makeXMLTags( tagName ) - convenience functions to create definitions of opening and closing tag expressions. Returns a pair of expressions, for the corresponding <tag> and </tag> strings. Includes support for attributes in the opening tag, such as <tag attr1="abc"> - attributes are returned as keyed tokens in the returned ParseResults. makeHTMLTags is less restrictive than makeXMLTags, especially with respect to case sensitivity.

  • infixNotation(baseOperand, operatorList) - (formerly named operatorPrecedence) convenience function to define a grammar for parsing infix notation expressions with a hierarchical precedence of operators. To use the infixNotation helper:

    1. Define the base "atom" operand term of the grammar. For this simple grammar, the smallest operand is either and integer or a variable. This will be the first argument to the infixNotation method.
    2. Define a list of tuples for each level of operator precendence. Each tuple is of the form (opExpr, numTerms, rightLeftAssoc, parseAction), where:
      • opExpr is the pyparsing expression for the operator; may also be a string, which will be converted to a Literal; if None, indicates an empty operator, such as the implied multiplication operation between 'm' and 'x' in "y = mx + b". If numTerms parameter is 3, this must be a 2-tuple containing the 2 delimiting operators.
      • numTerms is the number of terms for this operator (must be 1,2, or 3)
      • rightLeftAssoc is the indicator whether the operator is right or left associative, using the pyparsing-defined constants opAssoc.RIGHT and opAssoc.LEFT.
      • parseAction is the parse action to be associated with expressions matching this operator expression (the parse action tuple member may be omitted)
    3. Call infixNotation passing the operand expression and the operator precedence list, and save the returned value as the generated pyparsing expression. You can then use this expression to parse input strings, or incorporate it into a larger, more complex grammar.
  • matchPreviousLiteral and matchPreviousExpr - function to define and expression that matches the same content as was parsed in a previous parse expression. For instance:

    first = Word(nums)
    matchExpr = first + ":" + matchPreviousLiteral(first)
    

    will match "1:1", but not "1:2". Since this matches at the literal level, this will also match the leading "1:1" in "1:10".

    In contrast:

    first = Word(nums)
    matchExpr = first + ":" + matchPreviousExpr(first)
    

    will not match the leading "1:1" in "1:10"; the expressions are evaluated first, and then compared, so "1" is compared with "10".

  • nestedExpr(opener, closer, content=None, ignoreExpr=quotedString) - method for defining nested lists enclosed in opening and closing delimiters.

    • opener - opening character for a nested list (default="("); can also be a pyparsing expression
    • closer - closing character for a nested list (default=")"); can also be a pyparsing expression
    • content - expression for items within the nested lists (default=None)
    • ignoreExpr - expression for ignoring opening and closing delimiters (default=quotedString)

    If an expression is not provided for the content argument, the nested expression will capture all whitespace-delimited content between delimiters as a list of separate values.

    Use the ignoreExpr argument to define expressions that may contain opening or closing characters that should not be treated as opening or closing characters for nesting, such as quotedString or a comment expression. Specify multiple expressions using an Or or MatchFirst. The default is quotedString, but if no expressions are to be ignored, then pass None for this argument.

  • indentedBlock( statementExpr, indentationStackVar, indent=True) - function to define an indented block of statements, similar to indentation-based blocking in Python source code:

    • statementExpr - the expression defining a statement that will be found in the indented block; a valid indentedBlock must contain at least 1 matching statementExpr
    • indentationStackVar - a Python list variable; this variable should be common to all indentedBlock expressions defined within the same grammar, and should be reinitialized to [1] each time the grammar is to be used
    • indent - a boolean flag indicating whether the expressions within the block must be indented from the current parse location; if using indentedBlock to define the left-most statements (all starting in column 1), set indent to False
  • originalTextFor( expr ) - helper function to preserve the originally parsed text, regardless of any token processing or conversion done by the contained expression. For instance, the following expression:

    fullName = Word(alphas) + Word(alphas)
    

    will return the parse of "John Smith" as ['John', 'Smith']. In some applications, the actual name as it was given in the input string is what is desired. To do this, use originalTextFor:

    fullName = originalTextFor(Word(alphas) + Word(alphas))
    
  • ungroup( expr ) - function to "ungroup" returned tokens; useful to undo the default behavior of And to always group the returned tokens, even if there is only one in the list. (New in 1.5.6)

  • lineno( loc, string ) - function to give the line number of the location within the string; the first line is line 1, newlines start new rows

  • col( loc, string ) - function to give the column number of the location within the string; the first column is column 1, newlines reset the column number to 1

  • line( loc, string ) - function to retrieve the line of text representing lineno( loc, string ); useful when printing out diagnostic messages for exceptions

  • srange( rangeSpec ) - function to define a string of characters, given a string of the form used by regexp string ranges, such as "[0-9]" for all numeric digits, "[A-Z_]" for uppercase characters plus underscore, and so on (note that rangeSpec does not include support for generic regular expressions, just string range specs)

  • getTokensEndLoc() - function to call from within a parse action to get the ending location for the matched tokens

  • traceParseAction(fn) - decorator function to debug parse actions. Lists each call, called arguments, and return value or exception

3.2   Helper parse actions

  • removeQuotes - removes the first and last characters of a quoted string; useful to remove the delimiting quotes from quoted strings

  • replaceWith(replString) - returns a parse action that simply returns the replString; useful when using transformString, or converting HTML entities, as in:

    nbsp = Literal("&nbsp;").setParseAction( replaceWith("<BLANK>") )
    
  • keepOriginalText- (deprecated, use originalTextFor instead) restores any internal whitespace or suppressed text within the tokens for a matched parse expression. This is especially useful when defining expressions for scanString or transformString applications.

  • withAttribute( *args, **kwargs ) - helper to create a validating parse action to be used with start tags created with makeXMLTags or makeHTMLTags. Use withAttribute to qualify a starting tag with a required attribute value, to avoid false matches on common tags such as <TD> or <DIV>.

    withAttribute can be called with:

    • keyword arguments, as in (class="Customer",align="right"), or
    • a list of name-value tuples, as in ( ("ns1:class", "Customer"), ("ns2:align","right") )

    An attribute can be specified to have the special value withAttribute.ANY_VALUE, which will match any value - use this to ensure that an attribute is present but any attribute value is acceptable.

  • downcaseTokens - converts all matched tokens to lowercase

  • upcaseTokens - converts all matched tokens to uppercase

  • matchOnlyAtCol( columnNumber ) - a parse action that verifies that an expression was matched at a particular column, raising a ParseException if matching at a different column number; useful when parsing tabular data

3.3   Common string and token constants

  • alphas - same as string.letters

  • nums - same as string.digits

  • alphanums - a string containing alphas + nums

  • alphas8bit - a string containing alphabetic 8-bit characters:

    ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþ
    
  • printables - same as string.printable, minus the space (' ') character

  • empty - a global Empty(); will always match

  • sglQuotedString - a string of characters enclosed in 's; may include whitespace, but not newlines

  • dblQuotedString - a string of characters enclosed in "s; may include whitespace, but not newlines

  • quotedString - sglQuotedString | dblQuotedString

  • cStyleComment - a comment block delimited by '/*' and '*/' sequences; can span multiple lines, but does not support nesting of comments

  • htmlComment - a comment block delimited by '<!--' and '-->' sequences; can span multiple lines, but does not support nesting of comments

  • commaSeparatedList - similar to delimitedList, except that the list expressions can be any text value, or a quoted string; quoted strings can safely include commas without incorrectly breaking the string into two tokens

  • restOfLine - all remaining printable characters up to but not including the next newline

pyparsing-2.2.0+dfsg1/docs/pyparsingClassDiagram.PNG0000644000175000017500000042405211170740075021027 0ustar zigozigoPNG  IHDR{ 7 IDATx]lSg/7RF}HCA4g"v.HL!RIDEQgii*pa*(&QIR&$e.M9)PBNHH_ey~T鄵dN7zADDDDDDˉ2)13 """"Z ?+цLh1#"""""ZnĈ[vm,n҆8mTjZ,iqDDDDDiČ 8^>Ըv8':hREcWOt>gq`FDDDD̴3X'9#UR=fAX,{,rJK+:,A!>4@#3%G 3/ު+몽=k3a}nKlӚݑۘ-?LLnPj8}i\$j3Oܾ2Wxw(}D91#t<\}o.6zᰫ.7.-|Չ[ũ.9͆Թ6>iQn5Q4hhdbGf$!:טb6oL_Je,3 =&b 4fov"M[eVOgֆDW4v&LÈVF&f,͉͂nB)D.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DDDtdX5H/Gɓr%0_ |2ZE9JW>qWaY~9tq""":X5kG_z7~ 迩ܸro߅7\W.U: *8ՙ{ܾqgN< rW'"B>!w:"Bܟ?>NCD-xG}O[tw2'"* .DDDDDDƫ͛N@DDDg+1"kN$"""""j7VbDDDDDDJXhj$!2!g*9sQy!Daaj!5n/X52#y^Q95S;;9˽֍SLoF]R҃US$""z?DDGOSBYvl'6ݶmc]dW6%kGxj]_Êm!xX. zӰ]?b:y""3=1"tNC5t^XmAO=l/,][ Ƴ*4JU),!^w}xƕ;hZL-TecY8X59ϟ{dl]7e8i naL1^gjD3P.9hgߥ(%^.2꺤 )F9kՇ]V^fЈB>!w:"Bܟu:S$$văDgS'M݇%"j7Ax""zG~뺚E|u=,v:""S=1"JIƞQ#"""""j7VbDDDDDDJ<1"L~,c%FDTI즶DՉDDDDDDJdg"""""ⓝ:Q#"""""j7VbDDDDDDJX+1"""""vc%FDDDDDnĈڍQ#"""""j7VbDDDDDDJX+1"""""vc%FDDDDDnĈڍQ#"""""j7VbDDDDDDm;<.qjIENDB`pyparsing-2.2.0+dfsg1/docs/pyparsingClassDiagram.JPG0000644000175000017500000071556211170740057021034 0ustar zigozigoJFIFC    $.' ",#(7),01444'9=82<.342C  2!!22222222222222222222222222222222222222222222222222{" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?Aloou;ޱwKQ@T(T :U|-@$چ"W.' 8viaeVm|sPhM n OS[U>NBa<8Qn?Zoqvuro G"UgcAa$YSN4K}'ɎjV860WLkVw!_k=ֹ=Y8ռbz=v`y[CNXt+ =~[t^G[!}|j.ya?Ǿ,x眚Mֹ=G!_k=6)7閡ƬLHcjw@#RT>-A5?]y-] ui+ni %`z~'un?ZoW}\gXytf`2c jxv^$;I~Q6ҩ66U2 -mu@z!_k=Տ? YX ;qn-!E3<D%cc#u(t.uȎ 7;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