summaryrefslogtreecommitdiff
path: root/pyparsing.py
Commit message (Collapse)AuthorAgeFilesLines
* Add convenience assert methods (to parse and check list or dict contents in ↵unittest_integrationPaul McGuire2019-09-261-0/+20
| | | | one go)
* Merge changes from masterPaul McGuire2019-09-261-85/+62
|
* First take on unittest integration methods and classesPaul McGuire2019-09-061-7/+99
|
* Update version timestampPaul McGuire2019-09-021-1/+1
|
* Propagate setDefaultWhitespaceChars to helper expressions defined in ↵Paul McGuire2019-09-021-7/+20
| | | | pyparsing module
* Fixed bug when ZeroOrMore parses no matching exprs, did not include a named ↵Paul McGuire2019-08-261-2/+2
| | | | result containing []
* Make next release 3.0.0 instead of 2.5.0 to reflect Py3-only; fix warning ↵Paul McGuire2019-08-251-6/+7
| | | | message; minor improvement when default literal string class is other than Literal; always add extra newline after dump()
* Fix minor bug in creating regex range for single character; add unit testsPaul McGuire2019-08-201-2/+3
|
* Add regex range collapsing to compress large character ranges for faster re ↵Paul McGuire2019-08-181-16/+34
| | | | performance; update CHANGES to reflect new booleansearchparser example
* Rework __diag__ and __compat__ to be actual classes instead of just ↵Paul McGuire2019-08-101-16/+59
| | | | namespaces, to add helpful behavior and methods
* Fixed bug in indentedBlock with a parser using two different types of nested ↵Paul McGuire2019-08-091-5/+8
| | | | indented blocks with different indent values, but sharing the same indent stack. Raised in comments on #87.
* Fixed bug in CloseMatch where end location was incorrectly computed; and ↵Paul McGuire2019-08-051-2/+2
| | | | updated partial_gene_match.py example.
* Remove deprecated methods and names; disabled ↵Paul McGuire2019-08-051-60/+34
| | | | __compat__.collect_all_And_tokens; correct doctests; more minor whitespace cleanup
* First pass removing Py2 cross-compatibility featuresPaul McGuire2019-08-051-450/+227
|
* Improved handling of '-' ErrorStop's when used within EachPaul McGuire2019-08-041-17/+65
|
* Merge pull request #108 from cngkaygusuz/word-docPaul McGuire2019-07-301-28/+37
|\ | | | | Revise ParserElement.parseString docstring
| * Revise ParserElement.parseString docstringCengiz Kaygusuz2019-07-271-28/+37
| |
* | Updates to prep for 2.4.2 releasePaul McGuire2019-07-281-2/+2
|/
* Fixed faux iteration behavior implicit with using __getitem__, found while ↵Paul McGuire2019-07-241-10/+19
| | | | investigating and resolving issue #103
* Version 2.4.2a1 - changing [...] notation to ZeroOrMore, not OneOrMorePaul McGuire2019-07-231-16/+24
|
* Fix latent bug if adding a parse action after having cleared parse actions ↵pyparsing_2.4.1Paul McGuire2019-07-201-2/+2
| | | | with None
* Add CONTRIBUTING.md guidelines; code and whitespace cleanupPaul McGuire2019-07-151-948/+966
|
* Update `__eq__` to Py2/Py3 compatPaul McGuire2019-07-131-2/+5
|
* Some code cleanup based on inspection reportsPaul McGuire2019-07-131-4/+8
|
* Some performance refinements, pre-resolving re.match to re_match attribute, ↵Paul McGuire2019-07-131-31/+52
| | | | overriding current class with a class with optimized parseImpl()
* Simplify from_dict signature, support nested dict -> nested ParseResultsPaul McGuire2019-07-111-14/+20
|
* Add include_list optional arg to ParseResults.dump(); make Optional default ↵Paul McGuire2019-07-101-9/+27
| | | | singleton class-local
* Add new module symbols to __all__Paul McGuire2019-07-091-2/+3
|
* Cleaned up CHANGES to accurately describe the pre/post 2.3.0 bugfix ↵Paul McGuire2019-07-091-13/+31
| | | | behavior; added file argument to runTests; added conditionAsParseAction helper
* Add __diag__ namespace to enable diagnostic switches; add asKeyword optional ↵Paul McGuire2019-07-081-28/+122
| | | | arg for oneOf to emit Keyword expressions instead of Literals
* Nicer looking found string if fail on backslashPaul McGuire2019-07-081-1/+1
|
* Augment ParseException str() output to include what character was found at ↵Paul McGuire2019-07-071-3/+10
| | | | the error location, to help diagnose errors.
* Add ParseResults.from_dict classmethod, for easy construction outside of ↵Paul McGuire2019-07-071-1/+24
| | | | parseString
* Add support for multiple '...' skips in a single expression; `_skippped` ↵Paul McGuire2019-07-061-8/+10
| | | | results name will always return a list of skipped items
* Add support for "(expr | ...)" as a form of "on-error, skip" notationptmcg2019-07-051-54/+85
|
* Further mods to `Forward.__str__` to possibly address memory issues reported ↵ptmcg2019-07-051-6/+9
| | | | in #85 and #91, and also does not stomp on user-defined expression names
* Slight mod to `Forward.__str__` to possibly address memory issues reported ↵ptmcg2019-07-051-4/+4
| | | | in #91
* Minor code changes in runTestsptmcg2019-07-041-19/+20
|
* Add support for ... as short cut for SkipTo in And, and for repetition as ↵Paul McGuire2019-07-031-10/+97
| | | | OneOrMore and ZeroOrMore; fix PY2 test bug in unitTests.py
* Issue #93 - interaction of Or and addCondition sometimes selects alternative ↵Paul McGuire2019-07-021-23/+46
| | | | that is not the longest
* Fix up changes to parse reals without leading digits before the decimal, and ↵Paul McGuire2019-06-291-3/+3
| | | | add unit tests
* Merge remote-tracking branch 'origin/master'Paul McGuire2019-06-291-2/+2
|\
| * Support for omitted integer part of the float number (#98)Paul McGuire2019-06-291-2/+2
| |\ | | | | | | | | | | | | | | | * Added support for omitted integer part of the float number * Added support for omitted integer part in sci_real numbers
| | * Added support for omitted integer part in sci_real numbersAndrey Sobolev2019-06-141-1/+1
| | |
| | * Added support for omitted integer part of the float numberAndrey Sobolev2019-06-121-1/+1
| | |
* | | Add support for expr.setParseAction(None) to clear all parse actionsPaul McGuire2019-06-291-3/+11
|/ /
* | Fix runTests to output results if post_parse returns NonePaul McGuire2019-06-291-1/+3
| |
* | Fix issue #87, regression in indentedBlockPaul McGuire2019-06-291-8/+11
| |
* | Fix typo: "the the" (#99)Jon Dufresne2019-06-291-1/+1
|/
* Add better help directing to ParseResults as the return type for ↵Paul McGuire2019-06-051-1/+7
| | | | ParserElement.parseString