Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge changes from master | Paul McGuire | 2019-09-26 | 1 | -0/+19 |
| | |||||
* | Add Py2 compat code at submitter's request; add non-Western test case; more ↵ | Paul McGuire | 2019-08-18 | 1 | -98/+109 |
| | | | | helpful message when tests fail; exit with exit code to include with package tests; trim trailing whitespace | ||||
* | Boolean Search query parser: allows to perform searches with the common ↵ | xecgr | 2019-08-13 | 1 | -0/+394 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | boolean search syntax against a text (#21) * Add files via upload Boolean Search query parser, based on searchparser, that allows to perform searches with the common boolean search syntax against a text (western + non-western alphabets) SAMPLE USAGE: from booleansearchparser import BooleanSearchParser bsp = BooleanSearchParser() text = u"wildcards at the begining of a search term " exprs= [ u"*cards and term", #True u"wild* and term", #True u"not terms", #True u"terms or begin", #False ] for expr in exprs: print bsp.match(text,expr) #non-western samples text = u"안녕하세요, 당신은 어떠세요?" exprs= [ u"*신은 and 어떠세요", #True u"not 당신은", #False u"당신 or 당", #False ] for expr in exprs: print bsp.match(text,expr) * from __future__ import print_function and changing this over to be Python 2/3 compatible * ptmcg conversation issues | ||||
* | Update example to proto3 syntax (#113) | Andrew Artyushok | 2019-08-13 | 1 | -5/+18 |
| | | | Thanks again for submitting! | ||||
* | Typo and spelling cleanup, add helpful comments | Paul McGuire | 2019-08-07 | 1 | -3/+10 |
| | |||||
* | Fixed bug in CloseMatch where end location was incorrectly computed; and ↵ | Paul McGuire | 2019-08-05 | 1 | -88/+51 |
| | | | | updated partial_gene_match.py example. | ||||
* | Code style updates; remove deprecated methods | Paul McGuire | 2019-08-05 | 3 | -144/+147 |
| | |||||
* | Example BigQuery view SQL parser (#112) | Michael Smedberg | 2019-08-04 | 1 | -0/+1510 |
| | | | | Example BigQuery view SQL parser | ||||
* | fourFn.py updates - handle leading '+' and '-' unary signs for parenthesized ↵ | Paul McGuire | 2019-08-04 | 1 | -4/+11 |
| | | | | expressions; and real numbers with no leading digit before the decimal | ||||
* | Update fourFn.py to handle functions that take multiple args, and nested ↵ | Paul McGuire | 2019-08-03 | 2 | -309/+354 |
| | | | | functions | ||||
* | Version 2.4.2a1 - changing [...] notation to ZeroOrMore, not OneOrMore | Paul McGuire | 2019-07-23 | 2 | -267/+267 |
| | |||||
* | Update coding styles; better comments, attribution of example file | Paul McGuire | 2019-07-20 | 1 | -9/+21 |
| | |||||
* | Change example to use addCondition instead of parse action that raises ↵ | Paul McGuire | 2019-07-19 | 1 | -10/+10 |
| | | | | ParseException | ||||
* | Update/cleanup code in examples | Paul McGuire | 2019-07-13 | 7 | -1187/+1244 |
| | |||||
* | Code reorg/reformat, added results names | Paul McGuire | 2019-07-06 | 1 | -127/+151 |
| | |||||
* | Add support for multiple '...' skips in a single expression; `_skippped` ↵ | Paul McGuire | 2019-07-06 | 1 | -4/+5 |
| | | | | results name will always return a list of skipped items | ||||
* | Update examples to reflect newer pyparsing and coding styles, and use '...' ↵ | ptmcg | 2019-07-05 | 3 | -91/+93 |
| | | | | to illustrate repetition and skipping | ||||
* | Add compatibility results name; ungroup qty expression to simplify accessing ↵ | Paul McGuire | 2019-05-29 | 1 | -6/+8 |
| | | | | qty value | ||||
* | Some code cleanup, and added tests and test validations | Paul McGuire | 2019-05-28 | 1 | -6/+27 |
| | |||||
* | Fix description in module header | Paul McGuire | 2019-05-28 | 1 | -1/+3 |
| | |||||
* | delta_time fixes: add more time validations; add 1-second epsilon when ↵ | ptmcg | 2019-05-28 | 1 | -2/+24 |
| | | | | verifying computed times; add 'an' for 'an hour' times | ||||
* | Update generated code for both unnamed and named state transition state machines | Paul McGuire | 2019-05-27 | 1 | -1/+9 |
| | |||||
* | 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 |
| |