summaryrefslogtreecommitdiff
path: root/src/pyparsing.py
Commit message (Collapse)AuthorAgeFilesLines
* Move src to rootCengiz Kaygusuz2017-11-201-5720/+0
|
* Add minor enht for infixNotation, to accept a sequence of parse actions at ↵Paul McGuire2017-03-061-5/+10
| | | | each precedence level
* Prep for 2.2.0 releasePaul McGuire2017-03-031-1/+1
|
* Fix error and expand docstring examples for ParserElement.searchStringPaul McGuire2017-03-031-1/+5
|
* Fix deprecated use of '\' as described in https://bugs.python.org/issue27364 ↵Paul McGuire2017-02-281-4/+4
| | | | (Deprecated in Python 3.6, will become SyntaxError in a future release)
* Minor change when using '-' operator, to be compatible with ↵Paul McGuire2017-02-281-1/+1
| | | | ParserElement.streamline() method.
* Fix KeyError when packrat cache gets updated recursivelyPaul McGuire2017-02-281-5/+20
|
* Fix docstring formatting for epydoc compatibilityPaul McGuire2016-10-071-2/+2
|
* Fix @(*#&$#& typoPaul McGuire2016-10-061-4/+2
|
* Add example to LineStart docstringPaul McGuire2016-10-061-0/+19
|
* Fixed bug in col, which allowed simplification of LineStart down to minimal ↵Paul McGuire2016-10-061-9/+3
| | | | implementation
* Fixed behavior of LineStart; added AutoReset to other unit tests that modify ↵Paul McGuire2016-10-041-10/+8
| | | | global state in pyparsing; also, disable output buffering in unit tests when specific test classes are given to build the test suite
* Fix all bare 'except:' statements in pyparsing; add more 'n-or-more' unit testsPaul McGuire2016-10-021-10/+10
|
* Fix bug in ZeroOrMore results name reportingPaul McGuire2016-09-281-6/+3
|
* Fixed bug in ParseResults.dump when keys were not strings. Also changed ↵Paul McGuire2016-09-241-3/+7
| | | | 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.
* Added support for multiline test strings in runTestsPaul McGuire2016-09-111-1/+9
|
* Fix typo in doc string; add comment on support for ()'s in infixNotationPaul McGuire2016-09-111-4/+5
|
* Cleanup/notes in prep for 2.1.9 releasePaul McGuire2016-09-101-2/+2
|
* Fix Py3 bug in ParseResults.getName; fixed bug in Keyword and ↵Paul McGuire2016-09-081-5/+7
| | | | CaselessKeyword when using setDefaultKeywordChars.
* Copied upcaseTokens and downcaseTokens to pyparsing_common; renamed ↵Paul McGuire2016-08-261-11/+27
| | | | pyparsing_common's signedInteger and sciReal to signed_integer and sci_real
* Added CloseMatch classPaul McGuire2016-08-171-3/+64
|
* Some docstring changesPaul McGuire2016-08-151-11/+34
|
* Some docstring changesPaul McGuire2016-08-141-9/+11
|
* enhanced runTests to better handle non-parsing exceptionsPaul McGuire2016-08-141-3/+17
| | | modified pyparsing_common.convertToDate and convertToDatetime parse actions to convert ValueErrors raised by strptime to ParseExceptions
* Simplified merging ParseResults from expressions in an Each; also fixed ↵Paul McGuire2016-08-131-40/+31
| | | | class hierarchy for OneOrMore vs. ZeroOrMore, which was causing ZeroOrMore expressions to be treated as required expressions in an Each
* Add limit=n args to extract_stack and extract_tb calls, to minimize scanning ↵Paul McGuire2016-08-121-7/+7
| | | | through full call stack - trying to address UnicodeDecodeError exceptions from loading in more code than we need.
* Clearer example output in ParseResultsPaul McGuire2016-08-111-15/+18
|
* Added inline doc example for ParserElement.setDebugPaul McGuire2016-08-111-2/+31
|
* Fixed bug in ParserElement.inlineLiteralsUsing, causing infinite loop with ↵Paul McGuire2016-08-111-3/+6
| | | | | Suppress; added AutoReset context manager class to unit tests, for saving/resetting global state when tests need to change globals
* Undo removal of generator handlingPaul McGuire2016-08-111-1/+5
|
* Remove dangling ref to _generatorTypePaul McGuire2016-08-111-1/+1
|
* Add support for all iterables (sets, generators, etc.) to oneOf and ↵Paul McGuire2016-08-111-11/+6
| | | | ParseExpression
* Fix regression when using packrat parsing and raising ParseSyntaxException ↵Paul McGuire2016-08-091-11/+17
| | | | in And._ErrorStop.
* Typo in Keyword docstringPaul McGuire2016-08-071-1/+1
|
* docstring tweak (ParseResults.asDict)Paul McGuire2016-08-071-1/+1
|
* More docstring cleanup/enhancementPaul McGuire2016-08-071-27/+45
|
* Fix typo in SkipTo docstringPaul McGuire2016-08-071-1/+1
|
* Reformat Word docstring to include links to helper stringsPaul McGuire2016-08-071-9/+10
|
* Add the last of the new inline doc examplesPaul McGuire2016-08-061-57/+469
| | | Added full option to ParseResults.dump(), and fullDump option to ParserElement.runTests
* Add more inline doc examplesPaul McGuire2016-08-061-36/+286
|
* Fixed version datePaul McGuire2016-08-061-1/+1
|
* Add inline examples to docstrings, for realPaul McGuire2016-08-051-481/+1094
|
* Fixed bug in upcaseTokens and downcaseTokens introduced in 2.1.5, when the ↵Paul McGuire2016-08-051-2/+2
| | | | parse action was used in conjunction with results names
* Add inline examples to docstrings, so that reference docs will show sample ↵Paul McGuire2016-08-051-8/+8
| | | | code along with arg and usage descriptions - hopefully this will make them generally more useful, or at least a little less dry.
* Deprecated ParseResults.asXML Paul McGuire2016-08-051-2/+2
|
* Updated traceParseAction to use repr of input/output tokens instead of strPaul McGuire2016-08-051-3/+3
|
* Rename pyparsing_common's "numeric" and "number" expressions to "number" and ↵Paul McGuire2016-08-051-5/+5
| | | | "fnumber", to better indicate which expression forces conversion to float (that is fnumber)
* LRU rework to use OrderedDict instead, better cross-version Python ↵Paul McGuire2016-08-041-41/+86
| | | | compatibility.
* Modified init for Py2 compatibility (need args attribute for exception ↵Paul McGuire2016-07-271-0/+1
| | | | construction during packratting)
* Final code cleanup for adding lru_cache. Removed DictCache wrapper on dict, ↵Paul McGuire2016-07-271-43/+29
| | | | just changed LruDictCache look more dict-like. Made container cacheing a little more explicit with variable names and comments. Added note to CHANGES file.