summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Add .DS_Store to .gitignore (#115)Cengiz Kaygusuz2019-08-181-0/+5
|
* Boolean Search query parser: allows to perform searches with the common ↵xecgr2019-08-131-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 Artyushok2019-08-131-5/+18
| | | Thanks again for submitting!
* 3.x-ify some print statements and an except (#114)kms708472019-08-131-5/+5
| | | Thanks, and nice catch on the except statement too!
* More Py2 compatibility scrubbing in unit tests, and migration ZeroOrMore to ↵ptmcg2019-08-111-337/+327
| | | | [...] notation
* Remove Py2 compatibility code from unit testsPaul McGuire2019-08-102-217/+128
|
* Rework __diag__ and __compat__ to be actual classes instead of just ↵Paul McGuire2019-08-103-63/+180
| | | | namespaces, to add helpful behavior and methods
* Fixed bug in indentedBlock with a parser using two different types of nested ↵Paul McGuire2019-08-092-7/+45
| | | | indented blocks with different indent values, but sharing the same indent stack. Raised in comments on #87.
* Typo and spelling cleanup, add helpful commentsPaul McGuire2019-08-071-3/+10
|
* Fixed bug in CloseMatch where end location was incorrectly computed; and ↵Paul McGuire2019-08-053-90/+56
| | | | updated partial_gene_match.py example.
* Code style updates; remove deprecated methodsPaul McGuire2019-08-053-144/+147
|
* Remove deprecated methods and names; disabled ↵Paul McGuire2019-08-053-73/+73
| | | | __compat__.collect_all_And_tokens; correct doctests; more minor whitespace cleanup
* First pass removing Py2 cross-compatibility featuresPaul McGuire2019-08-055-571/+231
|
* Improved handling of '-' ErrorStop's when used within EachPaul McGuire2019-08-043-17/+104
|
* Example BigQuery view SQL parser (#112)Michael Smedberg2019-08-041-0/+1510
| | | | Example BigQuery view SQL parser
* fourFn.py updates - handle leading '+' and '-' unary signs for parenthesized ↵Paul McGuire2019-08-042-9/+15
| | | | expressions; and real numbers with no leading digit before the decimal
* Update fourFn.py to handle functions that take multiple args, and nested ↵Paul McGuire2019-08-033-331/+401
| | | | functions
* Typo and whitespace cleanupPaul McGuire2019-08-032-364/+365
|
* Merge pull request #108 from cngkaygusuz/word-docPaul McGuire2019-07-301-28/+37
|\ | | | | Revise ParserElement.parseString docstring
| * Revise ParserElement.parseString docstringCengiz Kaygusuz2019-07-271-28/+37
| |
* | Include new files filetypes and dirs in MANIFEST.inpyparsing_2.4.2Paul McGuire2019-07-291-4/+4
| |
* | Update README to include links to online docs - also remove numerous special ↵Paul McGuire2019-07-291-14/+27
| | | | | | | | characters, smart quotes, etc. for cleaner cross-platform presentation. See Issue #109
* | Updates to prep for 2.4.2 releasePaul McGuire2019-07-284-78/+86
|/
* Fold in 2.4.1.1 blurb from 2.4.1.x branch, describing known issues in 2.4.1.1Paul McGuire2019-07-251-0/+46
|
* Add unit test for #103; also make CHANGES blurb and HowToUse notes a little ↵pyparsing_2.4.2a1pyparsing_2.4.1.1Paul McGuire2019-07-243-2/+32
| | | | clearer
* More accurate description of bugs and their respective fixesPaul McGuire2019-07-241-10/+21
|
* Fixed faux iteration behavior implicit with using __getitem__, found while ↵Paul McGuire2019-07-241-10/+19
| | | | investigating and resolving issue #103
* Merge branch 'pyparsing_2.4.x'Paul McGuire2019-07-236-1260/+1352
|\ | | | | | | | | # Conflicts: # pyparsing.py
| * Version 2.4.2a1 - changing [...] notation to ZeroOrMore, not OneOrMorePaul McGuire2019-07-236-1260/+1352
| |
* | Update version in prep for new 2.5.x workPaul McGuire2019-07-221-2/+2
|/
* Fix latent bug if adding a parse action after having cleared parse actions ↵pyparsing_2.4.1Paul McGuire2019-07-202-2/+6
| | | | with None
* Update coding styles; better comments, attribution of example filePaul McGuire2019-07-201-9/+21
|
* Change example to use addCondition instead of parse action that raises ↵Paul McGuire2019-07-191-10/+10
| | | | ParseException
* Missing bits in CONTRIBUTING filePaul McGuire2019-07-151-4/+5
|
* Add CONTRIBUTING.md guidelines; code and whitespace cleanupPaul McGuire2019-07-153-948/+1091
|
* Update/cleanup code in examplesPaul McGuire2019-07-138-1187/+1245
|
* Update `__eq__` to Py2/Py3 compatPaul McGuire2019-07-131-2/+5
|
* Some code cleanup based on inspection reportsPaul McGuire2019-07-131-4/+8
|
* Some performance refinements, pre-resolving re.match to re_match attribute, ↵Paul McGuire2019-07-131-31/+52
| | | | overriding current class with a class with optimized parseImpl()
* Simplify from_dict signature, support nested dict -> nested ParseResultsPaul McGuire2019-07-112-17/+22
|
* Add include_list optional arg to ParseResults.dump(); make Optional default ↵Paul McGuire2019-07-102-10/+28
| | | | singleton class-local
* Add new module symbols to __all__Paul McGuire2019-07-091-2/+3
|
* Cleaned up CHANGES to accurately describe the pre/post 2.3.0 bugfix ↵Paul McGuire2019-07-093-20/+150
| | | | behavior; added file argument to runTests; added conditionAsParseAction helper
* sys.write does not take keyword argsPaul McGuire2019-07-081-2/+2
|
* Add __diag__ namespace to enable diagnostic switches; add asKeyword optional ↵Paul McGuire2019-07-083-34/+189
| | | | arg for oneOf to emit Keyword expressions instead of Literals
* Nicer looking found string if fail on backslashPaul McGuire2019-07-081-1/+1
|
* Add deprecation Final Warning to CHANGESPaul McGuire2019-07-071-3/+31
|
* Some code cleanup in unitTests.pyPaul McGuire2019-07-071-109/+177
|
* Augment ParseException str() output to include what character was found at ↵Paul McGuire2019-07-072-4/+26
| | | | the error location, to help diagnose errors.
* Add ParseResults.from_dict classmethod, for easy construction outside of ↵Paul McGuire2019-07-072-3/+32
| | | | parseString