summaryrefslogtreecommitdiff
path: root/pyparsing.py
Commit message (Collapse)AuthorAgeFilesLines
...
| | * 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
* Fix runTests output bug introduced in d2332c95675d71c10605eaf00b1171ef11d0970dPaul McGuire2019-06-021-3/+6
|
* Updated runTests to call postParse before dumping parsed results; added ↵Paul McGuire2019-05-261-3/+5
| | | | nested_markup.py and updated delta_time.py (renamed from deltaTime.py) examples
* Additional useful kwargs for Char (passthru to Word)Paul McGuire2019-04-071-3/+4
|
* Improved support for "python setup.py test"Paul McGuire2019-04-071-3/+3
|
* Fixed dict structure in makeHTMLTags expressions, and added tag_body ↵Paul McGuire2019-04-061-2/+5
| | | | attribute to the generated start expression giving easy access to a SkipTo(closeTag) that will parse the tag's body text; some code cleanup and removed duplication among examples
* General code cleanup; have unit test module exit(0 or 1) depending on test ↵Paul McGuire2019-04-011-23/+36
| | | | success, to trigger CI pass/fail; fix bug that crept into withAttribute; minor performance tweaks in Regex and Word
* Modifies makeXXXTags to reuse expressions for '<' and '>' literals, to be ↵Paul McGuire2019-03-301-14/+19
| | | | more packrat-friendly
* Convert docstrings containing regex examples to raw string literals, to ↵Paul McGuire2019-03-301-3/+3
| | | | avoid Py3.8 SyntaxWarnings (#80)
* Merge remote-tracking branch 'origin/master'Paul McGuire2019-03-301-10/+12
|\ | | | | | | | | # Conflicts: # pyparsing.py
| * Fix cases where an indentedBlock partially parsing will cause all other ↵TMiguelT2019-03-121-1/+7
| | | | | | | | | | | | | | correct indentedBlocks to fail (#75) * Add failing test for indentedBlock * Simplify fix by storing a backup stack
| * Descriptive names for Forward expressions (#71)Eric Wald2019-03-101-9/+5
| | | | | | Resolves the infinite recursion potential by setting a temporary name during resolution.
| * Support for simple_unit_tests under Python 2 (#72)Eric Wald2019-03-101-1/+5
| |
* | Add __compat__.collect_all_And_tokens to address version incompatibility, ↵Paul McGuire2019-03-301-7/+22
|/ | | | and conditionalize API-breaking behavior (#69)
* Add compiler from rosettacode.org; fix bug in ParserElement.runTests that ↵Paul McGuire2019-01-311-4/+6
| | | | interpreted newlines in quotes as test delimiters
* Add note that explain() is only supported under Python 3.ptmcg2019-01-091-8/+4
|
* Modify explain() for Py2 compatptmcg2019-01-091-2/+7
|
* Add enumerated place holders for strings that invoke str.format(), for Py2 ↵ptmcg2019-01-091-9/+9
| | | | compatibility
* Fix inconsistency between Keyword(caseless=True) and CaselessKeyword (issue #65)ptmcg2019-01-071-7/+1
|
* Add experimental ParseException.explain() method, to return a multiline ↵Paul McGuire2019-01-051-3/+71
| | | | string showing the parse expressions leading to a parsing failure
* Update Travis-CI scripts to include examples; fix bug in runTests if ↵Paul McGuire2018-12-301-1/+3
| | | | postParse function returns None (or any non-str value)
* Fix matching of dictOf with empty contents (Issue #53)ptmcg2018-12-281-2/+2
|
* Fix partial named results when And embedded in named MatchFirst or Orptmcg2018-12-281-2/+24
|
* Use HTTPS URLs where available in docs, examples, and commentsJon Dufresne2018-12-251-5/+5
|
* Remove mentions of 'psyco' from docs and examplesJon Dufresne2018-12-241-5/+3
| | | | | | | | | | | | | | | The psyco package has been declared umaintained and dead. It is no longer receiving bug fixes including for security issues. From http://psyco.sourceforge.net/ > 12 March 2012 > > Psyco is unmaintained and dead. Please look at PyPy for the > state-of-the-art in JIT compilers for Python. Avoid recommending the use of an unmaintained package (since 2012). Users can continue to use PyPy for the latest and greatest in Python JIT.
* Remove unused imports throughout projectJon Dufresne2018-12-241-1/+1
| | | | | | | | | | | | | Unused imports were discovered using flake8. By removing the unused imports, the code is a bit friendlier to new contributors as it is clearer what is being used and not simply leftover from previous refactoring. The flake8 command: $ flake8 . --select F401 http://flake8.pycqa.org/
* Fix runTests to strip leading BOM added for some unicode strings after ↵Paul McGuire2018-12-221-2/+3
| | | | splitlines(); fix typo in CHANGES when I renamed post_parse to postParse
* Fix postParse bug introduced in runTests; extended cleanup of unitTests ↵Paul McGuire2018-12-211-3/+3
| | | | (convert bare asserts to TestCase.assertTrue and assertEqual; remove trailing spaces throughout)
* Add support for optional postParse argument to ParserElement.runTestsPaul McGuire2018-12-211-7/+15
|
* Issue #51 Expanded the whitespace characters recognized by the White class ↵ptmcg2018-12-131-16/+53
| | | | to include all unicode defined spaces; added docstrings to unicode ranges
* Minor update to module welcome; add version to generated docsptmcg2018-11-221-3/+3
|
* Intern unicode range strings to prevent their listing in generated docs ↵ptmcg2018-11-221-13/+25
| | | | (pyparsing #50); fixed bug in composition of unicode_sets using multiple inheritance
* Convert sphinx inline code literal markups to less-verbose formptmcg2018-11-211-225/+242
|
* More sphinx cleanupptmcg2018-11-211-143/+194
|
* Update timestamp and CHANGES file to reflect mcepl improvementsptmcg2018-11-201-1/+1
|
* Reformatting of documentation strings.Matěj Cepl2018-11-201-364/+562
|
* Add some fixesMatěj Cepl2018-11-201-19/+40
|
* Initial conversion to Sphinx generated documentation.Matěj Cepl2018-11-201-271/+283
| | | | | There are still many bugs in the documentation strings, but at least genration of documentaiton works.
* Convert pyparsing.py by a scriptMatěj Cepl2018-11-201-123/+123
|
* CRLF -> LFMatěj Cepl2018-11-201-6010/+6010
|
* Add support for combining unicode_sets using multiple inheritancePaul McGuire2018-11-171-8/+10
|
* Added unicode sets for LatinA and LatinB rangesptmcg2018-11-091-5/+9
|
* Remove _Constants in favor of types.SimpleNamespaceptmcg2018-10-301-4/+7
|
* Add Devanagari language set; make unicode_set public so users can define and ↵ptmcg2018-10-271-17/+21
| | | | submit their own language sets
* Add Py2 unicodeismsptmcg2018-10-271-4/+9
|