summaryrefslogtreecommitdiff
path: root/src/pyparsing.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Rework to use lru_cache instead of TTLCachePaul McGuire2016-07-271-70/+62
|
* _TTLCache logic cleanup, add get() method similar to dict.get Paul McGuire2016-07-271-7/+10
|
* Redo packrat cache to use _TTLCache instead of dict, to permit cache size ↵Paul McGuire2016-07-261-21/+95
| | | | constraints
* Fixed bug in pyparsing_common.numeric, integers were parsed as floatsPaul McGuire2016-06-181-3/+3
|
* Added ParserElement.split() generator methodPaul McGuire2016-06-131-1/+17
| | | Also fixed minor blip in originalTextFor, to inherit ignored exprs from the embedded expression.
* Fix docstring formatting for epydocPaul McGuire2016-06-121-5/+5
| | | Cleaned up expression naming in pyparsing_common
* Fix docstring formatting for epydocPaul McGuire2016-06-121-2/+2
|
* Change result value returned by runTests to be a list of (test,result) tuplesPaul McGuire2016-06-121-16/+39
| | | | | | Add pyparsing_common helpers convertToDate and convertToDatetime Add named regex fields to iso8601_date and iso8601_datetime Fix pyparsing_common method stripHTMLTags Corresponding cleanups in unittests
* Add names to new pyparsing_common fraction expressionsPaul McGuire2016-06-081-3/+3
|
* Update version timestampPaul McGuire2016-06-081-1/+1
|
* Add support in pyparsing_common for fractions and mixed integer-fraction valuesPaul McGuire2016-06-081-5/+13
|
* Added pyparsing_common.stripHTMLTags; added links to pyparsing_common docstring Paul McGuire2016-06-021-7/+15
|
* Added tokenMap parse action helper; general code cleanup; renamed ↵Paul McGuire2016-05-241-62/+113
| | | | literalStringClass to _literalStringClass throughout
* Updated comments in pyparsing_common and CHANGESPaul McGuire2016-05-181-1/+4
|
* Add hex_integer to pyparsing_commonPaul McGuire2016-05-181-0/+3
|
* runTests changes: made parseAll=True the default; added support for failure ↵Paul McGuire2016-05-181-15/+17
| | | | | tests; always return success,results tuple revamp unitTests to use new failureTests arg
* Add UUID to pyparsing_commonPaul McGuire2016-05-181-2/+4
|
* Added more expressions to pyparsing_common: IPv4 and IPv6 addresses ↵Paul McGuire2016-05-181-3/+23
| | | | (including long, short, and mixed forms of IPv6; MAC address; ISO8601 date and date time strings
* 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-131-16/+39
| | | | 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-131-1/+11
| | | | | 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-121-39/+131
| | | | | | | 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.
* 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
* Fixed similar backtracking issues in the C and C++ style commentsPaul McGuire2016-04-291-4/+4
|
* Fixed catastrophic regex backtracking in implementation of the quoted string ↵Paul McGuire2016-04-291-4/+5
| | | | expressions (dblQuotedString, sglQuotedString, and quotedString)
* Fix bug in _trim_arity when pyparsing is part of a PyInstaller (which leaves ↵Paul McGuire2016-04-221-5/+26
| | | | 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-191-2/+15
| | | | 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-061-2/+12
| | | | converted to dicts, even if they were just unkeyed lists of tokens.
* Fixed bug in Each introduced in 2.1.0Paul McGuire2016-02-231-4/+6
|
* Fixed bug in SkipTo when using failOn; replaced explicit references to ↵Paul McGuire2016-02-221-4/+4
| | | | 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-161-21/+2
| | | | 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-151-7/+4
| | | | originalTextFor using sliced assignment
* Added stopOn arg to ZeroOrMore and OneOrMore; refactored/cleaned up SkipTo ↵Paul McGuire2016-02-071-97/+128
| | | | 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
* Removed deprecated class Upcase and deprecated class keepOriginalText; ↵Paul McGuire2016-02-071-28/+3
| | | | updated examples to remove those symbols, and to replace operatorPrecedence with infixNotation
* Switched version number to 2.1.0Paul McGuire2016-02-071-2/+2
|
* Add support for pickling ParseResults with protocols 2 and higher (default ↵Paul McGuire2016-02-061-1/+6
| | | | protocol in Py3 is 3)
* Fixed ParseResults.asDict() to correctly convert nested ParseResults values ↵Paul McGuire2016-01-231-4/+9
| | | | | to dicts. Fixed ParseResults.__radd__ to return other+self if not adding to 0.
* Fix _trim_arity to distinguish between TypeErrors raised in parse actions ↵Paul McGuire2016-01-181-6/+18
| | | | and those raised during internal arity testing
* More internal expression naming, in internal elements of infixNotationPaul McGuire2016-01-011-3/+4
|
* Added expression names for many internal and builtin expressions, to reduce ↵Paul McGuire2015-12-311-20/+25
| | | | name and error message overhead during parsing
* Fixed bug in ignore() (introduced in pyparsing 1.5.3) that would not accept ↵Paul McGuire2015-12-171-2/+5
| | | | a string literal as the ignore expression.
* Fixed up implementations of __dir__ to reduce maintenance overhead, and fix ↵Paul McGuire2015-12-131-4/+3
| | | | 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-251-13/+6
| | | | MatchFirst, handling Unicode values in expressions. Fixes Unicode encoding issues in Python 2.