summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* runTests changes: made parseAll=True the default; added support for failure ↵Paul McGuire2016-05-183-30/+55
| | | | | tests; always return success,results tuple revamp unitTests to use new failureTests arg
* Add UUID to pyparsing_commonPaul McGuire2016-05-183-2/+6
|
* Added more expressions to pyparsing_common: IPv4 and IPv6 addresses ↵Paul McGuire2016-05-183-4/+116
| | | | (including long, short, and mixed forms of IPv6; MAC address; ISO8601 date and date time strings
* Py2/Py3 compatibilityPaul McGuire2016-05-181-3/+8
|
* Update pyparsing code practicesPaul McGuire2016-05-174-101/+30
|
* Some docstring cleanup for better epydoc outputPaul McGuire2016-05-141-10/+11
|
* Added 'fatal' option to addCondition; enhancements to runTests, and added ↵Paul McGuire2016-05-133-20/+103
| | | | unit test for runTests
* Fix Py3 incompatibility in traceParseActionPaul McGuire2016-05-131-2/+2
|
* Minor enhancement to traceParseAction decorator, to retain the parse ↵Paul McGuire2016-05-133-65/+42
| | | | | action's name for the trace output Some rework of unitTests.py, to simplify test suite building
* Add epydoc docstrings to new expressions in pyparsing_commonPaul McGuire2016-05-131-3/+11
|
* Split out the '==' behavior in ParserElement, now implemented as the ↵Paul McGuire2016-05-122-39/+150
| | | | | | | matches() method. Added support for embedded comments in test string passed to runTests. Reworked embedded tests to include comments. Added 'pyparsing_common' class containing common/helpful little expressions. Added embedded demonstration tests. Reworked extraction of system.version for Py2/3-specific processing.
* Notes on _trim_arity fixPaul McGuire2016-05-111-1/+8
|
* Update version timestampPaul McGuire2016-05-111-1/+1
|
* traceback module variations between Py3.5.0 and Py3.5.1Paul McGuire2016-05-111-2/+5
|
* Fix trim_arity handling of Python 2 vs 3 traceback data; changed in 3.5, not ↵Paul McGuire2016-05-111-6/+7
| | | | 3.0, so earlier Py3 versions use data as-is from traceback module
* Better handling of Win vs. Linux line endings in ParseConfigFileTest, and ↵Paul McGuire2016-05-111-2/+2
| | | | case-sensitive Setup.ini filename
* Fixed similar backtracking issues in the C and C++ style commentsPaul McGuire2016-04-292-5/+7
|
* Fixed catastrophic regex backtracking in implementation of the quoted string ↵Paul McGuire2016-04-293-5/+26
| | | | expressions (dblQuotedString, sglQuotedString, and quotedString)
* Fix bug in _trim_arity when pyparsing is part of a PyInstaller (which leaves ↵Paul McGuire2016-04-222-6/+33
| | | | out the source code), replaced using traceback module extract_stack/extract_tb calls.
* Fix timestamp for releasePaul McGuire2016-03-211-1/+1
|
* Cleanup docstring changes to QuotedString for epydoc processingPaul McGuire2016-03-211-3/+2
|
* Added default behavior to QuotedString to convert embedded '\t', '\n', etc. ↵Paul McGuire2016-03-193-2/+36
| | | | characters to their whitespace counterparts; added support in new init arg, convertWhitespaceEscapes.
* Fixed bug in ParseResults.toDict(), in which dict values were always ↵Paul McGuire2016-03-063-2/+51
| | | | converted to dicts, even if they were just unkeyed lists of tokens.
* Fixed bug in Each introduced in 2.1.0Paul McGuire2016-02-233-4/+30
|
* Fixed bug in SkipTo when using failOn; replaced explicit references to ↵Paul McGuire2016-02-223-10/+16
| | | | obj.__dict__ with vars(obj) (several places); tightened up unit tests for SkipTo
* Removed use of partial in replaceWith, for PyPy compatibility. Removed ↵Paul McGuire2016-02-162-21/+6
| | | | no-longer-used method getTokensEndLoc (was part of keepOriginalText, previously deprecated and deleted).
* Added support for assigning to ParseResults using slices; reimplemented ↵Paul McGuire2016-02-153-8/+18
| | | | originalTextFor using sliced assignment
* Cleaned up pickle tests; added CountedArrayTest3 to test for ↵Paul McGuire2016-02-071-35/+106
| | | | non-decimal-integer counts; added OneOrMoreStopTest and ZeroOrMoreStopTest to test for new stopOn arguments
* Added stopOn arg to ZeroOrMore and OneOrMore; refactored/cleaned up SkipTo ↵Paul McGuire2016-02-072-97/+152
| | | | to reduce exception-based flow of control (using new ParserElement.canParseNext); made toklist a default arg so ParseResults can now be constructed using an empty constructor; fleshed out some docstrings with parameter lists
* Fixed to match current Python installed versionPaul McGuire2016-02-071-1/+1
|
* Removed deprecated class Upcase and deprecated class keepOriginalText; ↵Paul McGuire2016-02-0713-78/+60
| | | | updated examples to remove those symbols, and to replace operatorPrecedence with infixNotation
* Switched version number to 2.1.0Paul McGuire2016-02-072-14/+14
|
* Add support for pickling ParseResults with protocols 2 and higher (default ↵Paul McGuire2016-02-063-5/+49
| | | | protocol in Py3 is 3)
* Add CHANGES blurb for example fixesPaul McGuire2016-01-271-0/+3
|
* Cleanup examples, fix typo in fourFn.py, convert sample tests to use runTestsPaul McGuire2016-01-274-51/+40
|
* Fixed ParseResults.asDict() to correctly convert nested ParseResults values ↵Paul McGuire2016-01-232-4/+12
| | | | | to dicts. Fixed ParseResults.__radd__ to return other+self if not adding to 0.
* Updates to include default minutes and seconds in time of day if not given; ↵Paul McGuire2016-01-221-52/+62
| | | | handle both "day at time" and "time on day" ordering; conditionalize tests so module can be imported
* Fix _trim_arity to distinguish between TypeErrors raised in parse actions ↵Paul McGuire2016-01-183-7/+42
| | | | and those raised during internal arity testing
* More internal expression naming, in internal elements of infixNotationPaul McGuire2016-01-012-4/+15
|
* Added expression names for many internal and builtin expressions, to reduce ↵Paul McGuire2015-12-313-31/+89
| | | | name and error message overhead during parsing
* Added new example parseTabularData.pyPaul McGuire2015-12-3116-169/+191
| | | Updated several examples to more current Python and pyparsing practices (and better Py2/Py3 cross-compatibility)
* Remove list comprehensions in favor of gen exprsPaul McGuire2015-12-301-3/+3
|
* Update wordsToNum.py examplePaul McGuire2015-12-251-19/+8
| | | | | - removed list comprehensions when gen expr is sufficient - changed ignore('-') to ignore(Literal('-')) - converted test code to use runTests
* Fixed bug in ignore() (introduced in pyparsing 1.5.3) that would not accept ↵Paul McGuire2015-12-172-2/+8
| | | | a string literal as the ignore expression.
* Fixed up implementations of __dir__ to reduce maintenance overhead, and fix ↵Paul McGuire2015-12-132-4/+6
| | | | output of ParseResults instance dirs.
* Remove duplicated codePaul McGuire2015-12-071-1/+0
|
* Cleaned up additional issues from enhancing the error messages for Or and ↵Paul McGuire2015-11-253-14/+26
| | | | MatchFirst, handling Unicode values in expressions. Fixes Unicode encoding issues in Python 2.
* Simplified string representation of Forward, to avoid memory and performance ↵Paul McGuire2015-11-252-2/+10
| | | | issues during streamlining
* Forgot to add new unit test to main test suitePaul McGuire2015-11-101-0/+1
|
* Fix bug in Each when containing an Optional that has a results name or parse ↵Paul McGuire2015-11-103-3/+15
| | | | action