summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Update original "Hello, World!" parser to latest coding, plus runTestsPaul McGuire2019-03-301-17/+25
|
* Convert docstrings containing regex examples to raw string literals, to ↵Paul McGuire2019-03-302-3/+6
| | | | avoid Py3.8 SyntaxWarnings (#80)
* Catch up CHANGES file with other PRs and commits since last relaesePaul McGuire2019-03-301-0/+10
|
* Merge remote-tracking branch 'origin/master'Paul McGuire2019-03-303-23/+113
|\ | | | | | | | | # Conflicts: # pyparsing.py
| * Fix cases where an indentedBlock partially parsing will cause all other ↵TMiguelT2019-03-122-1/+83
| | | | | | | | | | | | | | 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-102-12/+13
| | | | | | Resolves the infinite recursion potential by setting a temporary name during resolution.
| * Py2 simple_unit_tests.py compat changes - part 2ptmcg2019-03-101-4/+3
| |
| * Support for simple_unit_tests under Python 2 (#72)Eric Wald2019-03-102-7/+19
| |
* | Add __compat__.collect_all_And_tokens to address version incompatibility, ↵Paul McGuire2019-03-303-7/+69
|/ | | | and conditionalize API-breaking behavior (#69)
* Add compiler from rosettacode.org; fix bug in ParserElement.runTests that ↵Paul McGuire2019-01-312-4/+284
| | | | interpreted newlines in quotes as test delimiters
* Update examples and unit tests to more preferred coding styles, imports for ↵ptmcg2019-01-3014-115/+124
| | | | pyparsing_common as ppc and pyparsing_unicode as ppu
* Add tests to show use of Combine and simple Regexptmcg2019-01-301-0/+32
|
* Merge pull request #64 from mcepl/denosepyparsing_2.3.1Paul McGuire2019-01-101-193/+190
|\ | | | | Denose
| * Remove dependency on noseMatěj Cepl2019-01-071-183/+180
| |
| * Convert CRLF to LFMatěj Cepl2019-01-071-193/+193
| |
* | Add note that explain() is only supported under Python 3.ptmcg2019-01-092-8/+6
| |
* | Disable explain() tests if running in Py2ptmcg2019-01-091-0/+8
| |
* | Modify explain() for Py2 compatptmcg2019-01-091-2/+7
| |
* | Add enumerated place holders for strings that invoke str.format(), for Py2 ↵ptmcg2019-01-0918-80/+80
| | | | | | | | compatibility
* | Add enumerated place holders for strings that invoke str.format(), for Py2 ↵ptmcg2019-01-091-10/+12
| | | | | | | | compatibility
* | Update CHANGES to include note on fixing issue #65; generalized the note ↵ptmcg2019-01-071-2/+28
| | | | | | | | about the decaf language example; added sample code from the statemachine examples.
* | Unit test to test fix for issue #65ptmcg2019-01-071-0/+14
| |
* | Fix inconsistency between Keyword(caseless=True) and CaselessKeyword (issue #65)ptmcg2019-01-071-7/+1
|/
* Merge pull request #62 from crowsonkb/changes_typoPaul McGuire2019-01-061-1/+1
|\ | | | | Fix typo: 'chemcialFormulas.py' -> 'chemicalFormulas.py'
| * Fix typo: 'chemcialFormulas.py' -> 'chemicalFormulas.py'Katherine Crowson2019-01-061-1/+1
|/
* Convert exception logging to use ParseException.explain()Paul McGuire2019-01-051-5/+7
|
* Add experimental ParseException.explain() method, to return a multiline ↵Paul McGuire2019-01-053-4147/+4284
| | | | string showing the parse expressions leading to a parsing failure
* Clean up CHANGES notes for new examplesptmcg2018-12-313-260/+11
|
* Add document signoff and library book state examples;ptmcg2018-12-317-38/+277
|
* Update statemachine demo code to Py3Paul McGuire2018-12-313-29/+60
|
* Update Lucene grammar example, but remove from Travis-CI acceptance scriptsPaul McGuire2018-12-302-2/+5
|
* Remove print() call left in to test decoyPaul McGuire2018-12-301-1/+1
|
* Cleanup unit tests for better Py2 compatibility and current pyparsing usage: ↵Paul McGuire2018-12-301-83/+100
| | | | prefix string literals containing unicode with 'u'; replace all 'setResultsName' calls to use (name) form; replace all calls to builtin print() with Py2-3 compatible print_(), and add decoy print() method to catch incorrect calls
* Set PYTHONPATH before running examples in Travis-CIPaul McGuire2018-12-301-6/+6
|
* Update Travis-CI scripts to include examples; fix bug in runTests if ↵Paul McGuire2018-12-305-23/+34
| | | | postParse function returns None (or any non-str value)
* Update chemicalFormulas.py example to use new runTests postParse argument, ↵Paul McGuire2018-12-302-28/+49
| | | | add test cases that parse subscript integers
* Fix matching of dictOf with empty contents (Issue #53)ptmcg2018-12-283-2/+24
|
* Fix partial named results when And embedded in named MatchFirst or Orptmcg2018-12-2810-12/+550
|
* Merge pull request #60 from jdufresne/typoPaul McGuire2018-12-271-1/+1
|\ | | | | Fix typo: 'whre' -> 'where'
| * Fix typo: 'whre' -> 'where'Jon Dufresne2018-12-251-1/+1
| |
* | Merge pull request #61 from jdufresne/httpsPaul McGuire2018-12-2620-26/+26
|\ \ | |/ |/| Use HTTPS URLs where available in docs, examples, and comments
| * Use HTTPS URLs where available in docs, examples, and commentsJon Dufresne2018-12-2520-26/+26
|/
* Merge pull request #59 from jdufresne/psycoPaul McGuire2018-12-243-736/+710
|\ | | | | Remove mentions of 'psyco' from docs and examples
| * Merge branch 'master' into psycoPaul McGuire2018-12-245-713/+712
| |\ | |/ |/|
* | Merge pull request #58 from jdufresne/bare-exceptPaul McGuire2018-12-245-9/+9
|\ \ | | | | | | Replace bare 'except:' with 'except Exception;'
| * | Replace bare 'except:' with 'except Exception;'Jon Dufresne2018-12-245-9/+9
|/ / | | | | | | | | | | | | | | | | | | | | | | | | Catching all exceptions is generally considered a bad practice under most circumstances as it will also catch KeyboardInterrupt and SystemExit. These special cases should be raised to the interpreter to allow the Python process to exit. This fix complies with pycodestyle's error code E722: https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes > do not use bare except, specify exception instead
| * Remove mentions of 'psyco' from docs and examplesJon Dufresne2018-12-243-30/+5
|/ | | | | | | | | | | | | | | 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.
* Merge pull request #57 from jdufresne/unusedPaul McGuire2018-12-2427-61/+46
|\ | | | | Remove unused imports throughout project
| * Remove unused imports throughout projectJon Dufresne2018-12-2427-61/+46
|/ | | | | | | | | | | | | 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/
* Merge changes from last PR, plus some more up-to-date coding styles and ↵Paul McGuire2018-12-231-5/+21
| | | | pyparsing features