diff options
author | luzpaz <luzpaz@users.noreply.github.com> | 2021-05-14 11:32:47 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-14 10:32:47 -0500 |
commit | 5353ccdd7026a7eeaa77029102f8c0043553ebd3 (patch) | |
tree | afabf8efc9e0036e1a6903479cac8d7faaf23724 /examples/booleansearchparser.py | |
parent | d27fd7627f3ed60b3b7a9e9f5e790d0e49107359 (diff) | |
download | pyparsing-git-5353ccdd7026a7eeaa77029102f8c0043553ebd3.tar.gz |
Fix misc. documentation typos (#280)
Found via `codespell -q 3 -L ba,fourty,halp,inout,strng`
Diffstat (limited to 'examples/booleansearchparser.py')
-rw-r--r-- | examples/booleansearchparser.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/booleansearchparser.py b/examples/booleansearchparser.py index 7ac502c..d32ef39 100644 --- a/examples/booleansearchparser.py +++ b/examples/booleansearchparser.py @@ -11,7 +11,7 @@ It handles: * parentheses; * quoted strings; * wildcards at the end of a search term (help*); -* wildcards at the begining of a search term (*lp); +* wildcards at the beginning of a search term (*lp); * non-western languages Requirements: @@ -22,7 +22,7 @@ SAMPLE USAGE: from booleansearchparser import BooleanSearchParser from __future__ import print_function bsp = BooleanSearchParser() -text = u"wildcards at the begining of a search term " +text = u"wildcards at the beginning of a search term " exprs= [ u"*cards and term", #True u"wild* and term", #True @@ -139,7 +139,7 @@ class BooleanSearchParser: Grammar: - a query consists of alphanumeric words, with an optional '*' - wildcard at the end or the begining of a word + wildcard at the end or the beginning of a word - a sequence of words between quotes is a literal string - words can be used together by using operators ('and' or 'or') - words with operators can be grouped with parenthesis @@ -151,7 +151,7 @@ class BooleanSearchParser: alphabet = alphanums - # suport for non-western alphabets + # support for non-western alphabets for r in alphabet_ranges: alphabet += "".join(chr(c) for c in range(*r) if not chr(c).isspace()) @@ -315,7 +315,7 @@ class BooleanSearchParser: class ParserTest(BooleanSearchParser): """Tests the parser with some search queries - tests containts a dictionary with tests and expected results. + tests contains a dictionary with tests and expected results. """ def Test(self): |