Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Fixed a bug in Or, when a parse action on an alternative raises an exception | Paul McGuire | 2015-11-04 | 3 | -13/+56 | |
| | ||||||
* | Fixed bug (introduced in 2.0.4) in dump where the lists would be shown in ↵ | Paul McGuire | 2015-11-01 | 2 | -3/+4 | |
| | | | | duplicate | |||||
* | Fixed bug in Each with multiple Optionals; added parseAll and output cleanup ↵ | Paul McGuire | 2015-10-31 | 3 | -14/+57 | |
| | | | | to runTests; improved exception messages for MatchFirst and Or exceptions. | |||||
* | (#($&(#& print statements in runTests broke Py3 compatibility! | Paul McGuire | 2015-10-29 | 3 | -42/+31 | |
| | ||||||
* | Updates to support files | Paul McGuire | 2015-10-29 | 2 | -4/+9 | |
| | ||||||
* | Redo withClass; fix typo in Word, remove Token.setName() that does nothing ↵ | Paul McGuire | 2015-10-29 | 2 | -13/+6 | |
| | | | | significant (suggested by williamzjc) | |||||
* | Restore unit tests to perform all tests | Paul McGuire | 2015-10-24 | 1 | -2/+2 | |
| | ||||||
* | Added withClass helper method, a simplified version of withAttribute for | Paul McGuire | 2015-10-24 | 3 | -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 McGuire | 2015-10-24 | 1 | -1/+3 | |
| | ||||||
* | Add ParserElement.runTests, quick-and-dirty test bench for testing an ↵ | Paul McGuire | 2015-10-14 | 2 | -1/+24 | |
| | | | | expression against a series of sample input strings | |||||
* | Add wheel release support | Paul McGuire | 2015-10-14 | 2 | -3/+4 | |
| | | | Add Python 3.4 and 3.5 versions to setup metadata | |||||
* | Adopt new-fangled Python features, like decorators and ternary expressions, ↵ | Paul McGuire | 2015-09-13 | 3 | -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 McGuire | 2015-07-28 | 3 | -7/+48 | |
| | | | | are purely filters. | |||||
* | Remove duplicate '||' operator in select_parser.py example | Paul McGuire | 2015-07-28 | 1 | -1/+0 | |
| | ||||||
* | Fixed bug in fourFn.py example code, where pi and e were defined using ↵ | Paul McGuire | 2015-05-01 | 2 | -3/+13 | |
| | | | | CaselessLiteral instead of CaselessKeyword | |||||
* | Fixed enhanced ParseResults.dump() method when the results consists only of ↵ | Paul McGuire | 2015-04-30 | 2 | -18/+25 | |
| | | | | an unnamed array of sub-structure results. | |||||
* | - update to srange to accept unicode literals in the input StringEnd | Paul McGuire | 2015-03-25 | 3 | -10/+26 | |
| | | | - enhanced version of replaceWith | |||||
* | Add support for WHEEL .whl distribution | Paul McGuire | 2014-11-19 | 2 | -1/+6 | |
| | ||||||
* | Minor mods to released examples | Paul McGuire | 2014-10-11 | 5 | -2/+245 | |
| | ||||||
* | Fixed bug in ParseResults __init__ method, when returning non-ParseResults ↵ | Paul McGuire | 2014-08-16 | 2 | -2/+6 | |
| | | | | types from parse actions that implement __eq__. | |||||
* | update internal versioning timestamp | Paul McGuire | 2014-08-12 | 1 | -1/+1 | |
| | ||||||
* | Properly return lists when parsing list values (instead of return ParseResults) | Paul McGuire | 2014-08-12 | 1 | -0/+2 | |
| | ||||||
* | Updated ParserElement.dump() to list out numbered array values if no results ↵ | Paul McGuire | 2014-08-12 | 2 | -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.4 | Paul McGuire | 2014-06-28 | 2 | -0/+6 | |
| | ||||||
* | Fixed bug in And class when initializing using a generator. | Paul McGuire | 2014-05-22 | 2 | -3/+5 | |
| | ||||||
* | Update pyparsing timestamp | Paul McGuire | 2014-05-07 | 1 | -1/+1 | |
| | ||||||
* | Fixed Bug #73, errors introduced to ParseResults.pop method after ↵ | Paul McGuire | 2014-05-07 | 3 | -5/+49 | |
| | | | | improvements were made in last release | |||||
* | Fixed escaping behavior in QuotedString. Formerly, only quotation | Paul McGuire | 2014-04-29 | 3 | -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 installer | Paul McGuire | 2014-04-13 | 1 | -1/+1 | |
| | ||||||
* | Added docstrings for new methods; added ending location for locatedExpr | Paul McGuire | 2014-04-13 | 4 | -5/+34 | |
| | ||||||
* | Added ParseResults.pprint method | Paul McGuire | 2014-04-13 | 2 | -1/+13 | |
| | ||||||
* | Fixed markInputline bug; reverted some <<= to << changes to avoid ↵ | Paul McGuire | 2014-04-09 | 3 | -12/+34 | |
| | | | | local/nonlocal reference problems | |||||
* | - Expanded argument compatibility for classes and functions that take list ↵ | Paul McGuire | 2013-09-21 | 2 | -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 compatibility | Paul McGuire | 2013-09-21 | 8 | -205/+673 | |
| | ||||||
* | Added locatedExpr helper method | Paul McGuire | 2013-09-14 | 2 | -10/+20 | |
| | | | Removed deprecation of '<<' operator | |||||
* | Remove old Py2/3 setup flag | Paul McGuire | 2013-09-14 | 1 | -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 else | Paul McGuire | 2013-09-14 | 1 | -2/+1 | |
| | ||||||
* | Fix Python 2.x/3.x compatibility (now that Pyparsing 2.0.x includes Python ↵ | Paul McGuire | 2013-09-14 | 1 | -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 McGuire | 2013-08-21 | 2 | -4/+15 | |
| | | | | accept "expr()" as a shortcut for "expr.copy()". | |||||
* | Minor cleanup before releasing 2.0.1 | Paul McGuire | 2013-07-17 | 5 | -95/+97 | |
| | ||||||
* | Prep release 2.0.1, to be compatible with Python 2.6 and 2.7, as well as ↵ | Paul McGuire | 2013-07-17 | 4 | -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 McGuire | 2012-12-16 | 1 | -3/+6 | |
| | | | | future TypeErrors get correctly raised and don't continue to try updating the argcount | |||||
* | Fix minor bug in ErrorStop name/str | Paul McGuire | 2012-11-29 | 1 | -0/+1 | |
| | ||||||
* | Update unit tests to Python 3 | Paul McGuire | 2012-11-23 | 1 | -239/+253 | |
| | ||||||
* | Fix indent typo in _trim_arity | Paul McGuire | 2012-11-23 | 1 | -1/+1 | |
| | ||||||
* | Clean up examples to be Python 3 compatible | Paul McGuire | 2012-11-23 | 79 | -966/+1251 | |
| | ||||||
* | Fix updates to Python 3: trim_arity count up from 0 instead of down from 2; ↵ | Paul McGuire | 2012-11-23 | 1 | -33/+31 | |
| | | | | print as a function in debug routines; remove unnecessary list comprehensions | |||||
* | Update to v2.0.0, Python 3 compatible only | Paul McGuire | 2012-11-19 | 6 | -7589/+90 | |
| | ||||||
* | Rename operatorPrecedence to infixNotation; add optional lpar and rpar ↵ | Paul McGuire | 2012-11-17 | 1 | -4/+7 | |
| | | | | arguments to infixNotation | |||||
* | Rename operatorPrecedence to infixNotation; add optional lpar and rpar ↵ | Paul McGuire | 2012-11-17 | 1 | -4/+7 | |
| | | | | arguments to infixNotation |