summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed a bug in Or, when a parse action on an alternative raises an exceptionPaul McGuire2015-11-043-13/+56
|
* Fixed bug (introduced in 2.0.4) in dump where the lists would be shown in ↵Paul McGuire2015-11-012-3/+4
| | | | duplicate
* Fixed bug in Each with multiple Optionals; added parseAll and output cleanup ↵Paul McGuire2015-10-313-14/+57
| | | | to runTests; improved exception messages for MatchFirst and Or exceptions.
* (#($&(#& print statements in runTests broke Py3 compatibility!Paul McGuire2015-10-293-42/+31
|
* Updates to support filesPaul McGuire2015-10-292-4/+9
|
* Redo withClass; fix typo in Word, remove Token.setName() that does nothing ↵Paul McGuire2015-10-292-13/+6
| | | | significant (suggested by williamzjc)
* Restore unit tests to perform all testsPaul McGuire2015-10-241-2/+2
|
* Added withClass helper method, a simplified version of withAttribute forPaul McGuire2015-10-243-15/+39
| | | | the common but annoying case when defining a filter on a div's class - made difficult because 'class' is a Python reserved word.
* Enhanced docstring for new addCondition method.Paul McGuire2015-10-241-1/+3
|
* Add ParserElement.runTests, quick-and-dirty test bench for testing an ↵Paul McGuire2015-10-142-1/+24
| | | | expression against a series of sample input strings
* Add wheel release supportPaul McGuire2015-10-142-3/+4
| | | Add Python 3.4 and 3.5 versions to setup metadata
* Adopt new-fangled Python features, like decorators and ternary expressions, ↵Paul McGuire2015-09-133-38/+34
| | | | per suggestions from Williamzjc - thanks William! (Oh yeah, I'm not supporting Python 2.3 with this code any more...)
* Add ParserElement.addCondition, to simplify creation of parse actions that ↵Paul McGuire2015-07-283-7/+48
| | | | are purely filters.
* Remove duplicate '||' operator in select_parser.py examplePaul McGuire2015-07-281-1/+0
|
* Fixed bug in fourFn.py example code, where pi and e were defined using ↵Paul McGuire2015-05-012-3/+13
| | | | CaselessLiteral instead of CaselessKeyword
* Fixed enhanced ParseResults.dump() method when the results consists only of ↵Paul McGuire2015-04-302-18/+25
| | | | an unnamed array of sub-structure results.
* - update to srange to accept unicode literals in the input StringEndPaul McGuire2015-03-253-10/+26
| | | - enhanced version of replaceWith
* Add support for WHEEL .whl distributionPaul McGuire2014-11-192-1/+6
|
* Minor mods to released examples Paul McGuire2014-10-115-2/+245
|
* Fixed bug in ParseResults __init__ method, when returning non-ParseResults ↵Paul McGuire2014-08-162-2/+6
| | | | types from parse actions that implement __eq__.
* update internal versioning timestampPaul McGuire2014-08-121-1/+1
|
* Properly return lists when parsing list values (instead of return ParseResults)Paul McGuire2014-08-121-0/+2
|
* Updated ParserElement.dump() to list out numbered array values if no results ↵Paul McGuire2014-08-122-3/+16
| | | | names are defined for a given level of a nested parse result
* Fixed UnboundLocalError in oneOf based on new scoping rules in Python 3.4Paul McGuire2014-06-282-0/+6
|
* Fixed bug in And class when initializing using a generator.Paul McGuire2014-05-222-3/+5
|
* Update pyparsing timestampPaul McGuire2014-05-071-1/+1
|
* Fixed Bug #73, errors introduced to ParseResults.pop method after ↵Paul McGuire2014-05-073-5/+49
| | | | improvements were made in last release
* Fixed escaping behavior in QuotedString. Formerly, only quotationPaul McGuire2014-04-293-11/+21
| | | | | 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.
* Cleanup *.pyc files from examples dir; add Python 3.4 Windows installerPaul McGuire2014-04-131-1/+1
|
* Added docstrings for new methods; added ending location for locatedExprPaul McGuire2014-04-134-5/+34
|
* Added ParseResults.pprint methodPaul McGuire2014-04-132-1/+13
|
* Fixed markInputline bug; reverted some <<= to << changes to avoid ↵Paul McGuire2014-04-093-12/+34
| | | | local/nonlocal reference problems
* - Expanded argument compatibility for classes and functions that take list ↵Paul McGuire2013-09-212-66/+152
| | | | | | | | 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().
* Cleanup unit tests for cross 2.x/3.x Python compatibilityPaul McGuire2013-09-218-205/+673
|
* Added locatedExpr helper methodPaul McGuire2013-09-142-10/+20
| | | Removed deprecation of '<<' operator
* Remove old Py2/3 setup flagPaul McGuire2013-09-141-4/+2
| | | Added copying of examples from SVN source, and cleanup any pycs that might by lying around
* Move _expanded to inside soope of srange, since it is not used anywhere elsePaul McGuire2013-09-141-2/+1
|
* Fix Python 2.x/3.x compatibility (now that Pyparsing 2.0.x includes Python ↵Paul McGuire2013-09-141-55/+69
| | | | 2.6+ compatibility) - also fix bug with expressions that consist solely of a single term with no operations; and reorg class hierarchy for better DRY
* Extended "expr(name)" shortcut (same as "expr.setResultsName(name)") to ↵Paul McGuire2013-08-212-4/+15
| | | | accept "expr()" as a shortcut for "expr.copy()".
* Minor cleanup before releasing 2.0.1Paul McGuire2013-07-175-95/+97
|
* Prep release 2.0.1, to be compatible with Python 2.6 and 2.7, as well as ↵Paul McGuire2013-07-174-20/+107
| | | | | Python 3.x versions. Fix bug in <<= operator, added 'return self'.
* Add latch to _trim_arity so that once the correct arg count has been found, ↵Paul McGuire2012-12-161-3/+6
| | | | future TypeErrors get correctly raised and don't continue to try updating the argcount
* Fix minor bug in ErrorStop name/strPaul McGuire2012-11-291-0/+1
|
* Update unit tests to Python 3Paul McGuire2012-11-231-239/+253
|
* Fix indent typo in _trim_arityPaul McGuire2012-11-231-1/+1
|
* Clean up examples to be Python 3 compatiblePaul McGuire2012-11-2379-966/+1251
|
* Fix updates to Python 3: trim_arity count up from 0 instead of down from 2; ↵Paul McGuire2012-11-231-33/+31
| | | | print as a function in debug routines; remove unnecessary list comprehensions
* Update to v2.0.0, Python 3 compatible onlyPaul McGuire2012-11-196-7589/+90
|
* Rename operatorPrecedence to infixNotation; add optional lpar and rpar ↵Paul McGuire2012-11-171-4/+7
| | | | arguments to infixNotation
* Rename operatorPrecedence to infixNotation; add optional lpar and rpar ↵Paul McGuire2012-11-171-4/+7
| | | | arguments to infixNotation