summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Fine tuning of statemachine example, moving InvalidStateTransition ↵Paul McGuire2019-05-277-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 McGuire2019-05-266-211/+383
| | | | nested_markup.py and updated delta_time.py (renamed from deltaTime.py) examples
* Fix generated stateMixin class to properly implement overridable transition ↵Paul McGuire2019-04-172-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 McGuire2019-04-162-1/+21
| | | | reformat/cleanup/commenting in statemachine.py
* Refactor generated State code to use overridden transition methods instead ↵Paul McGuire2019-04-154-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.0Paul McGuire2019-04-072-54/+117
|
* Additional useful kwargs for Char (passthru to Word)Paul McGuire2019-04-071-3/+4
|
* Merge remote-tracking branch 'origin/master'Paul McGuire2019-04-071-1/+1
|\
| * snmp_api.h missing from manifest (#83)Brandon Bergren2019-04-071-1/+1
| | | | | | Add examples/*.h to manifest so snmp_api.h gets packaged with the rest of the example files.
* | Improved support for "python setup.py test"Paul McGuire2019-04-076-275/+308
|/
* Fixed dict structure in makeHTMLTags expressions, and added tag_body ↵Paul McGuire2019-04-0613-544/+497
| | | | 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 runTestsPaul McGuire2019-04-062-96/+90
|
* Some reformatting for better readability, and more explanatory commentsPaul McGuire2019-04-051-22/+33
|
* Add example include_preprocessor.pyPaul McGuire2019-04-052-0/+79
|
* Fix tests for Py2 when using explainPaul McGuire2019-04-021-0/+24
|
* Remove disabling of tests for Py2 when using explainPaul McGuire2019-04-011-8/+0
|
* Fix unnumbered str format placeholders for Py2.6Paul McGuire2019-04-011-1/+1
|
* General code cleanup; have unit test module exit(0 or 1) depending on test ↵Paul McGuire2019-04-014-29/+46
| | | | success, to trigger CI pass/fail; fix bug that crept into withAttribute; minor performance tweaks in Regex and Word
* Separate bullet to collect all updates in Examples, and included new HTML ↵Paul McGuire2019-03-311-4/+11
| | | | table parsing example that I left out of earlier commit
* Modifies makeXXXTags to reuse expressions for '<' and '>' literals, to be ↵Paul McGuire2019-03-301-14/+19
| | | | more packrat-friendly
* SimpleSQL.py update - nested select and infixNotation for 'where'Paul McGuire2019-03-302-88/+98
|
* Add example showing scraping/parsing of an HTML table into a Python dictPaul McGuire2019-03-301-0/+61
|
* 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
|