summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Tag for release 2.0.3pyparsing_2.0.3ptmcg2014-10-110-0/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/tags/pyparsing_2.0.3@278 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Minor mods to released examples ptmcg2014-10-115-2/+245
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@277 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fixed bug in ParseResults __init__ method, when returning non-ParseResults ↵ptmcg2014-08-162-2/+6
| | | | | | types from parse actions that implement __eq__. git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@276 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* update internal versioning timestampptmcg2014-08-121-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@275 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Properly return lists when parsing list values (instead of return ParseResults)ptmcg2014-08-121-0/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@274 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Updated ParserElement.dump() to list out numbered array values if no results ↵ptmcg2014-08-122-3/+16
| | | | | | names are defined for a given level of a nested parse result git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@273 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fixed UnboundLocalError in oneOf based on new scoping rules in Python 3.4ptmcg2014-06-282-0/+6
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@272 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fixed bug in And class when initializing using a generator.ptmcg2014-05-222-3/+5
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@271 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Update pyparsing timestampptmcg2014-05-071-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@270 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fixed Bug #73, errors introduced to ParseResults.pop method after ↵ptmcg2014-05-073-5/+49
| | | | | | improvements were made in last release git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@269 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fixed escaping behavior in QuotedString. Formerly, only quotationptmcg2014-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. git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@268 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Cleanup *.pyc files from examples dir; add Python 3.4 Windows installerptmcg2014-04-131-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@266 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Added docstrings for new methods; added ending location for locatedExprptmcg2014-04-134-5/+34
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@265 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Added ParseResults.pprint methodptmcg2014-04-132-1/+13
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@264 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fixed markInputline bug; reverted some <<= to << changes to avoid ↵ptmcg2014-04-093-12/+34
| | | | | | local/nonlocal reference problems git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@263 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* - Expanded argument compatibility for classes and functions that take list ↵ptmcg2013-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(). git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@262 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Cleanup unit tests for cross 2.x/3.x Python compatibilityptmcg2013-09-218-205/+673
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@261 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Added locatedExpr helper methodptmcg2013-09-142-10/+20
| | | | | | Removed deprecation of '<<' operator git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@260 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Remove old Py2/3 setup flagptmcg2013-09-141-4/+2
| | | | | | Added copying of examples from SVN source, and cleanup any pycs that might by lying around git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@259 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Move _expanded to inside soope of srange, since it is not used anywhere elseptmcg2013-09-141-2/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@258 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fix Python 2.x/3.x compatibility (now that Pyparsing 2.0.x includes Python ↵ptmcg2013-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 git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@257 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Extended "expr(name)" shortcut (same as "expr.setResultsName(name)") to ↵ptmcg2013-08-212-4/+15
| | | | | | accept "expr()" as a shortcut for "expr.copy()". git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@256 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Minor cleanup before releasing 2.0.1ptmcg2013-07-175-95/+97
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@255 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Prep release 2.0.1, to be compatible with Python 2.6 and 2.7, as well as ↵ptmcg2013-07-174-20/+107
| | | | | | | | Python 3.x versions. Fix bug in <<= operator, added 'return self'. git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@254 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Add latch to _trim_arity so that once the correct arg count has been found, ↵ptmcg2012-12-161-3/+6
| | | | | | future TypeErrors get correctly raised and don't continue to try updating the argcount git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@252 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fix minor bug in ErrorStop name/strptmcg2012-11-291-0/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@251 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Update unit tests to Python 3ptmcg2012-11-231-239/+253
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@249 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fix indent typo in _trim_arityptmcg2012-11-231-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@247 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Clean up examples to be Python 3 compatibleptmcg2012-11-2379-966/+1251
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@246 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fix updates to Python 3: trim_arity count up from 0 instead of down from 2; ↵ptmcg2012-11-231-33/+31
| | | | | | print as a function in debug routines; remove unnecessary list comprehensions git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@245 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Update to v2.0.0, Python 3 compatible onlyptmcg2012-11-196-7589/+90
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@244 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Rename operatorPrecedence to infixNotation; add optional lpar and rpar ↵ptmcg2012-11-171-4/+7
| | | | | | arguments to infixNotation git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@242 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Rename operatorPrecedence to infixNotation; add optional lpar and rpar ↵ptmcg2012-11-171-4/+7
| | | | | | arguments to infixNotation git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@241 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Add notes for operatorPrecedence renaming to infixNotation, and adding ↵ptmcg2012-11-171-0/+8
| | | | | | optional lpar and rpar arguments git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@240 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Rename operatorPrecedence to infixNotation; add optional lpar and rpar ↵ptmcg2012-11-171-4/+7
| | | | | | arguments to infixNotation git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@239 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Add example files to SVNptmcg2012-10-0288-0/+15956
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@238 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Make examples a subdirectory of srcptmcg2012-10-020-0/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@237 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fix 'copy' statements to use backslashesptmcg2012-10-021-4/+4
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@235 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Changes for release 1.5.7ptmcg2012-10-022-9/+10
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@234 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Update file structureptmcg2012-10-021-8/+13
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@233 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Create standard SVN structureptmcg2012-10-0117-0/+17592
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@226 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* development trunkptmcg2012-10-010-0/+0
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@223 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b