summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge pull request #55 from jdufresne/wsPaul McGuire2018-12-2387-1663/+1617
|\ | | | | Trim trailing white space throughout the project
| * Trim trailing white space throughout the projectJon Dufresne2018-12-2287-1663/+1617
|/ | | | | | Many editors clean up trailing white space on save. By removing it all in one go, it helps keep future diffs cleaner by avoiding spurious white space changes on unrelated lines.
* Merge pull request #54 from jdufresne/unused-importPaul McGuire2018-12-222-11/+5
|\ | | | | Remove distutils fallback and outdated comment
| * Remove distutils fallback and outdated commentJon Dufresne2018-12-222-11/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | setuptools includes a vendored version of pyparsing (and other dependencies). They are not install through traditional tools. Therefore, distutils is not required as fallback to facilitate setuptools. https://github.com/pypa/setuptools/blob/v40.6.3/setuptools/_vendor/pyparsing.py The Python documentation recommends against using distutils: https://docs.python.org/3/library/distutils.html > Most Python users will not want to use this module directly, but > instead use the cross-version tools maintained by the Python Packaging > Authority. In particular, setuptools is an enhanced alternative to > distutils that provides ... Also remove the unused imports.
* | Merge pull request #56 from jdufresne/cookiePaul McGuire2018-12-222-2/+2
|\ \ | |/ |/| Fix encoding cookie to use encoding "utf-8"
| * Fix encoding cookie to use encoding "utf-8"Jon Dufresne2018-12-222-2/+2
|/ | | | | | | | | | | | | | | The all caps "UTF-8" causes warnings or errors in some editors. "utf-8" is more widely recognized. For example, when opening files in Emacs, I see: > Warning (mule): Invalid coding system ‘UTF-8’ is specified > for the current buffer/file by the :coding tag. > It is highly recommended to fix it before writing to a file. > Really proceed with writing? (yes or no) I'm then promped before saving. The CPython source code uses the lowecase form.
* Fix runTests to strip leading BOM added for some unicode strings after ↵Paul McGuire2018-12-222-3/+4
| | | | 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-212-442/+518
| | | | (convert bare asserts to TestCase.assertTrue and assertEqual; remove trailing spaces throughout)
* Add support for optional postParse argument to ParserElement.runTestsPaul McGuire2018-12-213-8/+37
|
* Issue #51 Expanded the whitespace characters recognized by the White class ↵ptmcg2018-12-132-16/+56
| | | | to include all unicode defined spaces; added docstrings to unicode ranges
* Do true division when computing average (be sure to import from __future__ ↵ptmcg2018-11-231-2/+3
| | | | for Python2/3 cross-compat)
* Minor update to module welcome; add version to generated docsptmcg2018-11-222-3/+4
|
* Intern unicode range strings to prevent their listing in generated docs ↵ptmcg2018-11-222-16/+57
| | | | (pyparsing #50); fixed bug in composition of unicode_sets using multiple inheritance
* Merge remote-tracking branch 'origin/master'ptmcg2018-11-213-5/+6
|\
| * Merge pull request #49 from mcepl/docs_to_tarballPaul McGuire2018-11-213-5/+6
| |\ | | | | | | Not sure how I managed to screw up building documentation again.
| | * Not sure how I managed to screw up building documentation again.Matěj Cepl2018-11-213-5/+6
| |/
* | Convert sphinx inline code literal markups to less-verbose formptmcg2018-11-211-225/+242
|/
* More sphinx cleanupptmcg2018-11-211-143/+194
|
* Merge pull request #47 from mcepl/docs_to_tarballPaul McGuire2018-11-216-2534/+2539
|\ | | | | Docs to tarball and make tests running on py2k
| * Fix failing tests (both py2K and py3k)Matěj Cepl2018-11-213-8/+9
| | | | | | | | Fixes #48
| * Use unittest2 for python2 (Python 2.7 unittest doesn't have subTest)Matěj Cepl2018-11-211-1/+4
| |
| * Convert CRLF->CR in CHANGES, LICENSE, and add docs/ to tarballMatěj Cepl2018-11-213-2525/+2526
|/
* Update timestamp and CHANGES file to reflect mcepl improvementsptmcg2018-11-202-1/+5
|
* Merge pull request #46 from mcepl/44_distribute_testsPaul McGuire2018-11-2021-7439/+6661
|\ | | | | This looks great, thanks for the effort!
| * Forgot to remove docs/conf_old.pyMatěj Cepl2018-11-201-159/+0
| |
| * Reformatting of documentation strings.Matěj Cepl2018-11-201-364/+562
| |
| * Add some fixesMatěj Cepl2018-11-201-19/+40
| |
| * Update ~/.idea directory.Matěj Cepl2018-11-204-4/+29
| |
| * Initial conversion to Sphinx generated documentation.Matěj Cepl2018-11-2018-1694/+830
| | | | | | | | | | 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
| |
| * include also all files necessary for tests.Matěj Cepl2018-11-201-4/+5
|/ | | | Fixes #44
* Add support for combining unicode_sets using multiple inheritancePaul McGuire2018-11-173-10/+24
|
* Add unit test for named ParseResults combined with Dict-created named ↵ptmcg2018-11-131-3/+20
| | | | results in the same Group; removed reference to UnicodeTests, which subsetted the tests that were actually being run
* Added unicode sets for LatinA and LatinB rangesptmcg2018-11-093-5/+33
|
* Merge pull request #41 from cclauss/patch-1Paul McGuire2018-10-311-1/+1
|\ | | | | print() is a function
| * print() is a functioncclauss2018-10-311-1/+1
|/
* assertRaises not compatible in Py2.6pyparsing_2.3.0ptmcg2018-10-311-9/+10
|
* Add unit test for indentedBlock expressionptmcg2018-10-301-0/+37
|
* Fix Issue #40 - Py3 enforces tighter exception scoping, plus other exception ↵ptmcg2018-10-302-9/+10
| | | | typo
* Clean up old cruft from unit testsptmcg2018-10-304-36/+11
|
* Merge pull request #39 from cclauss/patch-2Paul McGuire2018-10-301-1/+1
|\ | | | | Undefined name: file() was removed in Python 3
| * Undefined name: file() was removed in Python 3cclauss2018-10-301-1/+1
| | | | | | | | | | | | | | __file()__ was removed as a builtin in Python 3 so this PR advocates the use of __open()__ instead. Also note that four lines above, __testclass__ is an _undefined name_ and perhaps __testclasses__ should be used in its place. Undefined names have the potential to raise NameError at runtime.
* | Merge pull request #38 from cclauss/patch-1Paul McGuire2018-10-301-2/+2
|\ \ | | | | | | Undefined name: Set() --> set()
| * | Undefined name: Set() --> set()cclauss2018-10-301-2/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | __Set()__ is an _undefined name_ in this context but __set()__ is used elsewhere in this class. [flake8](http://flake8.pycqa.org) testing of https://github.com/pyparsing/pyparsing on Python 3.7.1 $ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__ ``` ./examples/searchParserAppDemo.py:15:18: F821 undefined name 'Set' result = Set() ^ 1 F821 undefined name 'Set' 1 ```
* | Remove _Constants in favor of types.SimpleNamespaceptmcg2018-10-301-4/+7
|/
* Add some examples of most common helper expressionsptmcg2018-10-301-0/+57
|
* Update README.md, remove no-longer-relevant sectionsPaul McGuire2018-10-291-30/+2
|
* Removed reference to unicode_set.all property - not including this property ↵ptmcg2018-10-281-7/+3
| | | | for now
* Merge remote-tracking branch 'origin/master'ptmcg2018-10-284-8/+47
|\