summaryrefslogtreecommitdiff
path: root/pyparsing.py
Commit message (Collapse)AuthorAgeFilesLines
* Break up pyparsing.py monolith into sub-modules in a pyparsing package (#162)Paul McGuire2019-11-181-7815/+0
| | | | | | | | | | | | | | * Break up pyparsing.py monolith into sub-modules in a pyparsing package * Convert relative imports to absolutes * Reference submodule pyparsing in setup.py modules * Remove recursive import of pyparsing from setup.py * Black updates * setup.py updates - packages vs. modules. use .dev1 for the version
* Blacken the project (#141)Jon Dufresne2019-10-311-580/+1479
|
* refactor tests into tests directory (#130)Kyle Lahnakoski2019-10-211-7/+16
|
* Remove unused imports (#147)Jon Dufresne2019-10-191-1/+1
| | | | | Discovered using the command: flake8 --select F401 .
* Py3 cleanup: Remove unnecessary __ne__ method (#140)Jon Dufresne2019-10-171-3/+0
| | | | | | | | | | Unlink Python 2, in Python 3, __ne__ defaults to the inverse of the __eq__ method. Can remove the definitions that follow this default. From the Python docs https://docs.python.org/3/reference/datamodel.html#object.__ne__ > By default, __ne__() delegates to __eq__() and inverts the result > unless it is NotImplemented.
* Add support for dynamic overwrite of pyparsing's use of stdlib re module ↵Paul McGuire2019-10-131-6/+24
| | | | with regex or other RE-compatible module
* Fix PrecededBy bug, issue #127Paul McGuire2019-10-131-6/+6
|
* Merge unittest enhancements from branchPaul McGuire2019-09-271-7/+135
|
* More Py2->Py3 cleanup, roll forward fix to ParserElement.__eq__ptmcg2019-09-251-79/+62
|
* 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
| | |