summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update oc.py example: fix regex for '==' operator, add packrat parsing and ↵HEADmasterptmcg2017-04-231-0/+7
| | | | | | function call as expression operand git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@463 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Update oc.py example: fix regex for '==' operator, add packrat parsing and ↵ptmcg2017-04-231-4/+6
| | | | | | function call as expression operand git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@462 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Add minor enht for infixNotation, to accept a sequence of parse actions at ↵ptmcg2017-03-063-6/+83
| | | | | | each precedence level git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@460 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Prep for 2.2.0 releaseptmcg2017-03-032-1/+29
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@459 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fix error and expand docstring examples for ParserElement.searchStringptmcg2017-03-031-1/+5
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@458 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fix deprecated use of '\' as described in https://bugs.python.org/issue27364 ↵ptmcg2017-03-034-7/+7
| | | | | | (Deprecated in Python 3.6, will become SyntaxError in a future release) git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@457 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fix deprecated use of '\' as described in https://bugs.python.org/issue27364 ↵ptmcg2017-02-282-7/+7
| | | | | | (Deprecated in Python 3.6, will become SyntaxError in a future release) git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@456 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Updated setup.py to address recursive import problems now that pyparsing is ↵ptmcg2017-02-281-1/+7
| | | | | | part of 'packaging' (used by setuptools). git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@455 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Minor change when using '-' operator, to be compatible with ↵ptmcg2017-02-281-1/+1
| | | | | | ParserElement.streamline() method. git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@454 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fix KeyError when packrat cache gets updated recursivelyptmcg2017-02-281-5/+20
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@453 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Add 2.1.10 release date to CHANGESptmcg2016-10-071-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@451 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fix docstring formatting for epydoc compatibilityptmcg2016-10-071-2/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@450 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fix @(*#&$#& typoptmcg2016-10-061-4/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@449 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Add example to LineStart docstringptmcg2016-10-061-0/+19
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@448 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fixed bug in col, which allowed simplification of LineStart down to minimal ↵ptmcg2016-10-063-12/+44
| | | | | | implementation git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@447 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fixed behavior of LineStart; added AutoReset to other unit tests that modify ↵ptmcg2016-10-043-33/+95
| | | | | | global state in pyparsing; also, disable output buffering in unit tests when specific test classes are given to build the test suite git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@446 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fix all bare 'except:' statements in pyparsing; add more 'n-or-more' unit testsptmcg2016-10-022-11/+16
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@445 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fix bug in ZeroOrMore results name reportingptmcg2016-09-283-6/+21
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@444 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fixed bug in ParseResults.dump when keys were not strings. Also changed ↵ptmcg2016-09-242-3/+12
| | | | | | 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. git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@443 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Updated some examples to more current pyparsing coding methodsptmcg2016-09-244-155/+86
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@442 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@441 ↵ptmcg2016-09-151-8/+3
| | | | 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Remove all uses of 'eval'ptmcg2016-09-151-4/+9
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@440 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Minor changes to unitTests.pyptmcg2016-09-151-4/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@439 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Expand results names to capture multiple values; add '*' as potential ↵ptmcg2016-09-131-3/+3
| | | | | | function argument git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@438 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Added support for multiline test strings in runTestsptmcg2016-09-112-3/+10
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@437 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Add tests of sci_realptmcg2016-09-111-0/+8
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@436 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fix typo in doc string; add comment on support for ()'s in infixNotationptmcg2016-09-112-4/+11
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@435 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fix spelling on contributor's nameptmcg2016-09-101-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@434 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Cleanup/notes in prep for 2.1.9 releaseptmcg2016-09-103-11/+26
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@432 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Simpler API to AutoReset context manager for testingptmcg2016-09-091-25/+29
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@431 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Minor rework to unitTest - suppresses test output unless there is an exceptionptmcg2016-09-091-23/+41
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@430 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fix Py3 bug in ParseResults.getName; fixed bug in Keyword and ↵ptmcg2016-09-083-6/+77
| | | | | | CaselessKeyword when using setDefaultKeywordChars. git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@429 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Copied upcaseTokens and downcaseTokens to pyparsing_common; renamed ↵ptmcg2016-08-263-11/+59
| | | | | | pyparsing_common's signedInteger and sciReal to signed_integer and sci_real git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@428 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Upgrade to use pyparsing_common for numbersptmcg2016-08-191-4/+5
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@427 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fix 'from' results name to include all join elements.ptmcg2016-08-181-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@426 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Added CloseMatch classptmcg2016-08-173-3/+99
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@425 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Some docstring changesptmcg2016-08-151-11/+34
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@424 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Some docstring changesptmcg2016-08-141-9/+11
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@422 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Change log - reformat test comments for runTestsptmcg2016-08-141-0/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@421 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* reformat test comments for runTests; example of using results from runTests ↵ptmcg2016-08-143-24/+67
| | | | | | in wordsToNum.py git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@420 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* enhanced runTests to better handle non-parsing exceptionsptmcg2016-08-141-3/+17
| | | | | | modified pyparsing_common.convertToDate and convertToDatetime parse actions to convert ValueErrors raised by strptime to ParseExceptions git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@419 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Add examples from pyparsing_commonptmcg2016-08-141-1/+13
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@418 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Update to new pyparsing and Python featuresptmcg2016-08-141-14/+7
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@417 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Simplified merging ParseResults from expressions in an Each; also fixed ↵ptmcg2016-08-133-40/+80
| | | | | | class hierarchy for OneOrMore vs. ZeroOrMore, which was causing ZeroOrMore expressions to be treated as required expressions in an Each git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@416 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Add limit=n args to extract_stack and extract_tb calls, to minimize scanning ↵ptmcg2016-08-123-7/+64
| | | | | | through full call stack - trying to address UnicodeDecodeError exceptions from loading in more code than we need. git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@415 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Clearer example output in ParseResultsptmcg2016-08-111-15/+18
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@414 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Added inline doc example for ParserElement.setDebugptmcg2016-08-112-2/+33
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@413 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fixed bug in ParserElement.inlineLiteralsUsing, causing infinite loop with ↵ptmcg2016-08-113-3/+61
| | | | | | | | Suppress; added AutoReset context manager class to unit tests, for saving/resetting global state when tests need to change globals git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@412 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Update changelog with Iterable improvements to oneOfptmcg2016-08-111-0/+5
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@410 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* oneOf test cleanupptmcg2016-08-111-5/+5
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@409 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b