Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Better formatting in range_check.py example, and added to test_examples.pyHEADmaster | ptmcg | 2023-05-06 | 1 | -0/+3 |
| | |||||
* | Updated several examples to latest method names | ptmcg | 2023-05-04 | 1 | -1/+1 |
| | |||||
* | Add test case for PR #479 | ptmcg | 2023-04-18 | 1 | -0/+96 |
| | |||||
* | Fix regex matching for Python quoted strings | ptmcg | 2023-04-18 | 1 | -0/+34 |
| | |||||
* | Blacken | ptmcg | 2023-04-03 | 1 | -102/+103 |
| | |||||
* | Fix #474 - redo QuotedString '\' escape handling as a state machine so that ↵ | ptmcg | 2023-03-28 | 1 | -0/+57 |
| | | | | all transforms are done left to right | ||||
* | Add 'url' named capture group to common.url Regex - update unit tests too | ptmcg | 2023-03-27 | 1 | -0/+1 |
| | |||||
* | Fix #470 - Removed "" from the list of values that ParseResults will not ↵ | ptmcg | 2023-03-27 | 1 | -0/+59 |
| | | | | save with a results name | ||||
* | Fix #475 - SkipTo used incorrect storage of ignore expressions, would match ↵ | ptmcg | 2023-03-26 | 1 | -0/+17 |
| | | | | the target expression if present within an ignorable | ||||
* | Update lucene_grammar.py example, fix * and ? wildcards, and corrected some ↵ | ptmcg | 2023-03-25 | 1 | -2/+2 |
| | | | | tests. Addresses #455 | ||||
* | Fix testing typo | ptmcg | 2023-03-07 | 1 | -1/+1 |
| | |||||
* | Fix detection of debugging to suppress creation of tmpXXXX.html files during ↵ | ptmcg | 2023-03-07 | 1 | -12/+47 |
| | | | | railroad diagram tests | ||||
* | Add ParseResults.deepcopy() - fixes #463 | ptmcg | 2023-03-06 | 1 | -0/+114 |
| | |||||
* | Remove ^ and $ tags from pp.common.url regex - fixes #459 | ptmcg | 2023-01-18 | 1 | -5/+3 |
| | |||||
* | Remove ^ and $ tags from pp.common.url regex - fixes #459 | ptmcg | 2023-01-18 | 1 | -0/+18 |
| | |||||
* | Add pyparsing.unicode.identifier class property | ptmcg | 2023-01-13 | 1 | -52/+65 |
| | |||||
* | Debugging railroad diagram tests | ptmcg | 2022-11-11 | 1 | -1/+4 |
| | |||||
* | Debugging railroad diagram tests | ptmcg | 2022-11-11 | 1 | -2/+6 |
| | |||||
* | Refactor tests creating diagrams of selected examples | ptmcg | 2022-11-11 | 1 | -30/+16 |
| | |||||
* | Add docs that `expr * ...` is a valid alternative to `ZeroOrMore(expr)` ↵ | ptmcg | 2022-11-06 | 1 | -0/+2 |
| | | | | (Issue #445) | ||||
* | Deprecate ParserElement.validate() (Issue #444) | ptmcg | 2022-11-06 | 1 | -1/+2 |
| | |||||
* | Fix stacklevel when warning invalid config setting; added assertWarns ↵ | ptmcg | 2022-11-06 | 1 | -1/+17 |
| | | | | wrapper similar to assertRaises wrapper, to echo success/fail status | ||||
* | Add delta_time, excelExpr, and rosettacode to test_examples.py | ptmcg | 2022-07-12 | 1 | -1/+10 |
| | |||||
* | Add recurse option to set_debug(), fixes #399 | ptmcg | 2022-07-11 | 1 | -0/+44 |
| | |||||
* | Merge branch 'ptm_address_booleansearchparser_issue' | ptmcg | 2022-07-09 | 1 | -0/+87 |
|\ | | | | | | | | | | | | | | | # Conflicts: # examples/booleansearchparser.py # pyparsing/__init__.py # tests/test_examples.py # tests/test_unit.py | ||||
| * | Fix delimited_list bug (Issue #408) | ptmcg | 2022-07-09 | 1 | -1/+107 |
| | | |||||
| * | Add booleansearchparser.py to test_examples for inclusion in pytest runs | ptmcg | 2022-07-09 | 1 | -0/+3 |
| | | |||||
* | | Add booleansearchparser.py to test_examples | ptmcg | 2022-07-09 | 1 | -0/+3 |
| | | |||||
* | | Fix bug in delimited_list (premature streamline), issue #408 | ptmcg | 2022-07-09 | 1 | -1/+21 |
|/ | |||||
* | Add return of NotImplemented to other binary operators (similar to PR #425), ↵ | ptmcg | 2022-07-04 | 1 | -175/+234 |
| | | | | and add unit tests | ||||
* | Added python_quoted_string; fixed exception messages for ParseElementEnhance ↵ | ptmcg | 2022-06-29 | 2 | -107/+152 |
| | | | | subclasses | ||||
* | Update test_diagram.py testing with and without embed | ptmcg | 2022-06-24 | 1 | -6/+6 |
| | |||||
* | Update diagram tests to reflect changes in jinja2 | ptmcg | 2022-06-24 | 3 | -2/+4 |
| | |||||
* | Remove assignment to __class__ in Word, remove internal _WordRegex class | ptmcg | 2022-06-24 | 1 | -2/+10 |
| | |||||
* | Use Literal.__new__ to select optimized subclasses (#413) | Devin J. Pohly | 2022-06-16 | 1 | -5/+10 |
| | | | | | | | | | | | | | | | | | | | * Use Literal.__new__ to select optimized subclasses This turns Literal() into a factory which creates an object of the appropriate type from the start, rather than having to overwrite the __class__ attribute later. * Fix Literal.__copy__() Instance attributes from superclasses weren't being transferred to the copy. Regression test included. * Make Empty a subclass of Literal This unifies the logic with other optimized literal classes like _SingleCharLiteral, and it seemed right in terms of a type relationship. * Style | ||||
* | Fix up docstrings for deprecated functions (doc as deprecated, instead of ↵ | ptmcg | 2022-06-16 | 1 | -2/+2 |
| | | | | duplicating actual function doc) - issue #411 | ||||
* | Fix Word(max=2) (issue #409); create re for Word(exact=n) exprs; validate ↵ | ptmcg | 2022-06-10 | 1 | -0/+52 |
| | | | | that min <= max if both given | ||||
* | Convert most str.format() calls in tests to use f-strings | ptmcg | 2022-05-30 | 2 | -251/+105 |
| | |||||
* | More added type annotations; reworked Word.__init__ so that excludeChars ↵ | ptmcg | 2022-05-29 | 1 | -0/+24 |
| | | | | exclusion code is clearer | ||||
* | Tighten up unit test calls to parseString, to pass parseAll=True except when ↵ | ptmcg | 2022-05-29 | 1 | -273/+330 |
| | | | | False is explicitly required | ||||
* | Fix type annotations of Forward dunder-methods (#402) | Stephen Rosen | 2022-05-29 | 2 | -0/+23 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix type annotations of Forward dunder-methods The `__lshift__`, `__ilshift__`, and `__or__` methods each return a ParserElement object, but have no annotated return type. The result is that the following code will not type check: def foo() -> pp.ParserElement: expr = pp.Forward() expr <<= bar() return expr | pp.Literal("baz") whereas the code will type check if the return line is changed to return pp.MatchFirst([expr, pp.Literal("baz")]) This is a bug in the types which can be resolved fairly simply with some return type annotations. Testing is more complicated. Testing annotation accuracy is a relatively novel space with a few options, none of which can be considered standard as of yet. Many solutions require learning a new toolchain only for that purpose. However, one of the lower-impact options is to use `mypy --warn-unused-ignores` to check that annotations satisfy some constraints. This isn't the most precise test possible, but it's simple and uses a widely known and familiar tool for the job. `tox -e mypy-tests` is a new tox env which calls `mypy` in the desired way. We can confirm with a new test case file that `tox -e mypy-tests` fails prior to this change to `pyparsing/` and that it passes with the change made. * Comment out mypy-test tox env for CI Until CI adjustments are made, it's not possible to add mypy-test to the tox config. It will be run under pypy where it does not work until other changes are made. | ||||
* | Add embed argument to create_diagram, to suppress DOCTYPE, HEAD, and BODY tags | ptmcg | 2022-05-20 | 3 | -0/+173 |
| | |||||
* | Make expr[:ender] equivalent to expr[...:ender] | ptmcg | 2022-05-18 | 1 | -9/+47 |
| | |||||
* | Add support for slice in expr[] notation, to pass stop_on repetition sentinel | ptmcg | 2022-05-18 | 1 | -11/+14 |
| | |||||
* | Fixed bug in srange (escaped chars inside range set); fixed ignore type ↵ | ptmcg | 2022-05-14 | 2 | -6/+22 |
| | | | | annotation in SkipTo | ||||
* | Added BMP unicode_set for the Unicode Basic Multilingual Plane (issue #392) | ptmcg | 2022-04-28 | 1 | -0/+29 |
| | |||||
* | Add tests and updated docs for changes to lpar and rpar args to ↵ | ptmcg | 2022-03-27 | 1 | -0/+26 |
| | | | | infix_notation; add grouping of non-suppressed tokens with grouped contents | ||||
* | Add tests and updated docs for changes to lpar and rpar args to ↵ | ptmcg | 2022-03-24 | 1 | -10/+127 |
| | | | | infix_notation; add grouping of non-suppressed tokens with grouped contents | ||||
* | Black and pre-commit fixes | ptmcg | 2022-02-15 | 1 | -54/+90 |
| | |||||
* | Update CHANGES and timestamp from #362; fix related unit test and ValueError ↵ | Paul McGuire | 2022-02-05 | 1 | -2/+2 |
| | | | | message |