Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Typo - `isinstance` should be `issubclass` | Paul McGuire | 2019-05-27 | 1 | -1/+1 | |
| | ||||||
* | Fine tuning of statemachine example, moving InvalidStateTransition ↵ | Paul McGuire | 2019-05-27 | 7 | -12/+167 | |
| | | | | declaration inside generated class; added video state machine demo; added vending machine state machine demo showing how to using statemachine without importing a .pystate file | |||||
* | Updated runTests to call postParse before dumping parsed results; added ↵ | Paul McGuire | 2019-05-26 | 3 | -208/+366 | |
| | | | | nested_markup.py and updated delta_time.py (renamed from deltaTime.py) examples | |||||
* | Fix generated stateMixin class to properly implement overridable transition ↵ | Paul McGuire | 2019-04-17 | 2 | -9/+7 | |
| | | | | methods instead of messing with getattr; allows use of `super().transition_name()` in classes that subclass from the Mixin | |||||
* | Added change note re: changes to statemachine example; some code ↵ | Paul McGuire | 2019-04-16 | 1 | -1/+13 | |
| | | | | reformat/cleanup/commenting in statemachine.py | |||||
* | Refactor generated State code to use overridden transition methods instead ↵ | Paul McGuire | 2019-04-15 | 4 | -78/+117 | |
| | | | | of overriding getattr; add generation of state-managing mixin class to delegate to _state instance variable, and reworked demos to use mixin instead of replicating state code | |||||
* | Code updates to current idiomspyparsing_2.4.0 | Paul McGuire | 2019-04-07 | 2 | -54/+117 | |
| | ||||||
* | Improved support for "python setup.py test" | Paul McGuire | 2019-04-07 | 1 | -219/+223 | |
| | ||||||
* | Fixed dict structure in makeHTMLTags expressions, and added tag_body ↵ | Paul McGuire | 2019-04-06 | 10 | -528/+452 | |
| | | | | 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 | |||||
* | Updated examples to current pyparsing styles, and to use runTests | Paul McGuire | 2019-04-06 | 2 | -96/+90 | |
| | ||||||
* | Some reformatting for better readability, and more explanatory comments | Paul McGuire | 2019-04-05 | 1 | -22/+33 | |
| | ||||||
* | Add example include_preprocessor.py | Paul McGuire | 2019-04-05 | 1 | -0/+77 | |
| | ||||||
* | SimpleSQL.py update - nested select and infixNotation for 'where' | Paul McGuire | 2019-03-30 | 1 | -88/+95 | |
| | ||||||
* | Add example showing scraping/parsing of an HTML table into a Python dict | Paul McGuire | 2019-03-30 | 1 | -0/+61 | |
| | ||||||
* | Update original "Hello, World!" parser to latest coding, plus runTests | Paul McGuire | 2019-03-30 | 1 | -17/+25 | |
| | ||||||
* | Add compiler from rosettacode.org; fix bug in ParserElement.runTests that ↵ | Paul McGuire | 2019-01-31 | 1 | -0/+278 | |
| | | | | interpreted newlines in quotes as test delimiters | |||||
* | Update examples and unit tests to more preferred coding styles, imports for ↵ | ptmcg | 2019-01-30 | 12 | -85/+94 | |
| | | | | pyparsing_common as ppc and pyparsing_unicode as ppu | |||||
* | Merge pull request #64 from mcepl/denosepyparsing_2.3.1 | Paul McGuire | 2019-01-10 | 1 | -193/+190 | |
|\ | | | | | Denose | |||||
| * | Remove dependency on nose | Matěj Cepl | 2019-01-07 | 1 | -183/+180 | |
| | | ||||||
| * | Convert CRLF to LF | Matěj Cepl | 2019-01-07 | 1 | -193/+193 | |
| | | ||||||
* | | Add enumerated place holders for strings that invoke str.format(), for Py2 ↵ | ptmcg | 2019-01-09 | 17 | -71/+71 | |
|/ | | | | compatibility | |||||
* | Clean up CHANGES notes for new examples | ptmcg | 2018-12-31 | 2 | -258/+0 | |
| | ||||||
* | Add document signoff and library book state examples; | ptmcg | 2018-12-31 | 7 | -38/+277 | |
| | ||||||
* | Update statemachine demo code to Py3 | Paul McGuire | 2018-12-31 | 3 | -29/+60 | |
| | ||||||
* | Update Lucene grammar example, but remove from Travis-CI acceptance scripts | Paul McGuire | 2018-12-30 | 1 | -1/+5 | |
| | ||||||
* | Update Travis-CI scripts to include examples; fix bug in runTests if ↵ | Paul McGuire | 2018-12-30 | 3 | -22/+25 | |
| | | | | postParse function returns None (or any non-str value) | |||||
* | Update chemicalFormulas.py example to use new runTests postParse argument, ↵ | Paul McGuire | 2018-12-30 | 1 | -27/+48 | |
| | | | | add test cases that parse subscript integers | |||||
* | Fix partial named results when And embedded in named MatchFirst or Or | ptmcg | 2018-12-28 | 4 | -0/+482 | |
| | ||||||
* | Use HTTPS URLs where available in docs, examples, and comments | Jon Dufresne | 2018-12-25 | 17 | -18/+18 | |
| | ||||||
* | Merge branch 'master' into psyco | Paul McGuire | 2018-12-24 | 4 | -709/+708 | |
|\ | ||||||
| * | Replace bare 'except:' with 'except Exception;' | Jon Dufresne | 2018-12-24 | 4 | -5/+5 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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 examples | Jon Dufresne | 2018-12-24 | 1 | -13/+0 | |
|/ | | | | | | | | | | | | | | | 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 project | Jon Dufresne | 2018-12-24 | 25 | -47/+35 | |
| | | | | | | | | | | | | | 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 McGuire | 2018-12-23 | 1 | -5/+21 | |
| | | | | pyparsing features | |||||
* | Trim trailing white space throughout the project | Jon Dufresne | 2018-12-22 | 76 | -919/+879 | |
| | | | | | | 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. | |||||
* | Fix encoding cookie to use encoding "utf-8" | Jon Dufresne | 2018-12-22 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | 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 failing tests (both py2K and py3k) | Matěj Cepl | 2018-11-21 | 2 | -4/+4 | |
| | | | | Fixes #48 | |||||
* | Fix Issue #40 - Py3 enforces tighter exception scoping, plus other exception ↵ | ptmcg | 2018-10-30 | 2 | -9/+10 | |
| | | | | typo | |||||
* | Undefined name: Set() --> set() | cclauss | 2018-10-30 | 1 | -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 ``` | |||||
* | Add unicode character ranges by name | ptmcg | 2018-10-27 | 2 | -10/+9 | |
| | ||||||
* | Upgrade Python syntax with pyupgrade | Hugo | 2018-08-21 | 17 | -108/+107 | |
| | ||||||
* | Add "group by" case to select_parser.py tests | Paul McGuire | 2018-07-14 | 1 | -0/+1 | |
| | | | Update test strings to demonstrate fix in group_by_terms results - original bug was reported on SF bugs by Adam Groszer | |||||
* | Wrong expression grouping in select_parser.py | Paul McGuire | 2018-07-14 | 1 | -1/+1 | |
| | | | Results name "group_by_terms" was defined at the wrong level in the "having_expr", causing those names to be left out of the results. | |||||
* | Move src to root | Cengiz Kaygusuz | 2017-11-20 | 93 | -0/+16518 | |