summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Code reorg/reformat, added results namesPaul McGuire2019-07-061-127/+151
|
* Run *all* the unit tests!Paul McGuire2019-07-061-1/+0
|
* Add support for multiple '...' skips in a single expression; `_skippped` ↵Paul McGuire2019-07-064-31/+49
| | | | results name will always return a list of skipped items
* Cleanup unit tests for SkipTo expressions, especially using '...'Paul McGuire2019-07-051-31/+47
|
* Update examples to reflect newer pyparsing and coding styles, and use '...' ↵ptmcg2019-07-053-91/+93
| | | | to illustrate repetition and skipping
* Add support for "(expr | ...)" as a form of "on-error, skip" notationptmcg2019-07-053-57/+126
|
* Further mods to `Forward.__str__` to possibly address memory issues reported ↵ptmcg2019-07-052-7/+11
| | | | in #85 and #91, and also does not stomp on user-defined expression names
* Slight mod to `Forward.__str__` to possibly address memory issues reported ↵ptmcg2019-07-051-4/+4
| | | | in #91
* Fix numeric unit tests to be Py2-friendlyptmcg2019-07-041-29/+47
|
* Minor code changes in runTestsptmcg2019-07-041-19/+20
|
* Wrap expressions using ... in unitTests.py with eval() so that Py2 won't ↵Paul McGuire2019-07-041-7/+8
| | | | complain about syntax
* Add support for ... as short cut for SkipTo in And, and for repetition as ↵Paul McGuire2019-07-034-36/+207
| | | | OneOrMore and ZeroOrMore; fix PY2 test bug in unitTests.py
* Issue #93 - interaction of Or and addCondition sometimes selects alternative ↵Paul McGuire2019-07-023-24/+76
| | | | that is not the longest
* Fix up changes to parse reals without leading digits before the decimal, and ↵Paul McGuire2019-06-293-3/+95
| | | | add unit tests
* Merge remote-tracking branch 'origin/master'Paul McGuire2019-06-291-2/+2
|\
| * Support for omitted integer part of the float number (#98)Paul McGuire2019-06-291-2/+2
| |\ | | | | | | | | | | | | | | | * Added support for omitted integer part of the float number * Added support for omitted integer part in sci_real numbers
| | * Added support for omitted integer part in sci_real numbersAndrey Sobolev2019-06-141-1/+1
| | |
| | * 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-293-3/+29
|/ /
* | Drop Python 2.6 from TravisCI versions, apparently no longer supportedPaul McGuire2019-06-291-1/+0
| |
* | Fix runTests to output results if post_parse returns NonePaul McGuire2019-06-291-1/+3
| |
* | Fix issue #87, regression in indentedBlockPaul McGuire2019-06-293-11/+136
| |
* | Fix typo: "the the" (#99)Jon Dufresne2019-06-292-2/+2
|/
* Suppress PyCharm IDE settings from Git repoPaul McGuire2019-06-051-3/+5
|
* Add better help directing to ParseResults as the return type for ↵Paul McGuire2019-06-053-3/+10
| | | | ParserElement.parseString
* Fix runTests output bug introduced in d2332c95675d71c10605eaf00b1171ef11d0970dPaul McGuire2019-06-021-3/+6
|
* Add compatibility results name; ungroup qty expression to simplify accessing ↵Paul McGuire2019-05-291-6/+8
| | | | qty value
* Some code cleanup, and added tests and test validationsPaul McGuire2019-05-281-6/+27
|
* Fix description in module headerPaul McGuire2019-05-281-1/+3
|
* delta_time fixes: add more time validations; add 1-second epsilon when ↵ptmcg2019-05-281-2/+24
| | | | verifying computed times; add 'an' for 'an hour' times
* Update generated code for both unnamed and named state transition state machinesPaul McGuire2019-05-271-1/+9
|
* Typo - `isinstance` should be `issubclass`Paul McGuire2019-05-271-1/+1
|
* 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