Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | No longer use undocumented module "sre_constants" (#379) | Serhiy Storchaka | 2022-03-29 | 1 | -1/+1 |
| | | | Closes #378. | ||||
* | Add tests and updated docs for changes to lpar and rpar args to ↵ | ptmcg | 2022-03-24 | 1 | -5/+15 |
| | | | | infix_notation; add grouping of non-suppressed tokens with grouped contents | ||||
* | Fix bug #375 (#376) | Philippe PRADOS | 2022-03-24 | 1 | -2/+4 |
| | |||||
* | Clean up dump() examples in docstrings | ptmcg | 2022-02-15 | 1 | -4/+4 |
| | |||||
* | Updated version number for development; blackening; some timestamp cleanup | ptmcg | 2022-02-15 | 1 | -1/+3 |
| | |||||
* | Fixed exception generated in a ParserElementEnhance if the contained expr is ↵ | ptmcg | 2022-01-18 | 1 | -1/+1 |
| | | | | None | ||||
* | Fix #345 - delimitedList calling streamline() changes content of expr in ↵ | ptmcg | 2021-12-14 | 1 | -1/+1 |
| | | | | some cases; use a copy to generate default expr name | ||||
* | Added further type annotations | ptmcg | 2021-12-06 | 1 | -1/+1 |
| | |||||
* | Added min/max keyword arguments for delimited_list (#335) | Marius | 2021-12-04 | 1 | -1/+11 |
| | | | | | * Added min/max keyword arguments for delimited_list * Rename arguments and add validation | ||||
* | Revert results names for packaging compatibility (#110) | ptmcg | 2021-11-12 | 1 | -10/+4 |
| | |||||
* | Fix delimitedList regression when called with a literal string instead of a ↵ | ptmcg | 2021-11-09 | 1 | -1/+4 |
| | | | | ParserElement (Issue #331) | ||||
* | Added type hints for col, line, and lineno public methods; plus black | ptmcg | 2021-11-02 | 1 | -2/+8 |
| | |||||
* | Removed spurious warnings when assigning results name to originalTextFor ↵ | ptmcg | 2021-10-31 | 1 | -3/+4 |
| | | | | expression (Issue #110) | ||||
* | PEP-8 some internal names | ptmcg | 2021-10-31 | 1 | -2/+2 |
| | |||||
* | Fix bug where streamline() did not return self if already streamlined | ptmcg | 2021-10-30 | 1 | -1/+1 |
| | |||||
* | Fix regex typo in one_of (:? should be (?: | ptmcg | 2021-10-27 | 1 | -1/+1 |
| | |||||
* | Fixed IndentedBlock | ptmcg | 2021-10-27 | 1 | -35/+0 |
| | |||||
* | To blacken | ptmcg | 2021-10-26 | 1 | -1/+3 |
| | |||||
* | Fix one_of to generate regex internally, even if caseless or as_keyword ↵ | ptmcg | 2021-10-26 | 1 | -12/+26 |
| | | | | given as True | ||||
* | blackening | ptmcg | 2021-10-24 | 1 | -4/+7 |
| | |||||
* | Fixed bug where warn_on_multiple_string_args_to_oneof warning is raised even ↵ | ptmcg | 2021-10-24 | 1 | -1/+2 |
| | | | | when not enabled | ||||
* | Clean up warning and exception messages with oneOf -> one_of | ptmcg | 2021-10-23 | 1 | -3/+3 |
| | |||||
* | Modified helpers common_html_entity and replace_html_entity() to use the ↵ | ptmcg | 2021-10-22 | 1 | -3/+4 |
| | | | | HTML entity definitions from html.entities.html5 | ||||
* | Clean up bullet lists in docstrings | ptmcg | 2021-10-02 | 1 | -58/+58 |
| | |||||
* | Fixup type annotations | ptmcg | 2021-09-29 | 1 | -1/+1 |
| | |||||
* | Blacken and update version time | ptmcg | 2021-09-25 | 1 | -4/+4 |
| | |||||
* | Added start_line and end_line args to with_line_numbers, and more docstring | ptmcg | 2021-09-25 | 1 | -6/+7 |
| | |||||
* | Allow multiplying an expr by 0 or (0,0) | ptmcg | 2021-09-24 | 1 | -5/+6 |
| | |||||
* | Fix to IndentedBlock where first line of block was suppressed; use ↵ | ptmcg | 2021-09-23 | 1 | -1/+5 |
| | | | | Empty().preParse to advance to printable character if not already there | ||||
* | The blackening | ptmcg | 2021-09-08 | 1 | -6/+3 |
| | |||||
* | Better type matching for infix_notation operator specs | ptmcg | 2021-09-08 | 1 | -6/+14 |
| | |||||
* | Optimization in infixNotation | ptmcg | 2021-09-08 | 1 | -2/+5 |
| | |||||
* | 226 railroad updates (#298) | Paul McGuire | 2021-09-08 | 1 | -8/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add line separators to HowToUsePyparsing.rst to call attention to PEP-8 naming in this document * Update railroad diagram generation code, to show results names as group annotations, and break out all expressions with a name set using setName. * Revert dataclasses back to NamedTuples for 3.6-7 compat; add setName calls in simpleBool.py; add simpleBool to make_diagram.py * Remove default setName calls on delimitedList * Add setName calls to simpleSQL for better diagram * Remove hard-coded debug mode * Move setName on delimitedList into test code * Restore default setName() calls for delimitedList; set default vertical=3; update jsonParser.py and simpleSQL.py with better setName() calls (and update test_diagram.py accordingly); update test_diagram.py to move asserts after tempfiles are written, moved tempfiles to local dir instead of hard-to-find temp dir * Get proper railroad diags for infixNotation * Undo forced railroad_debug * Code cleanup from PR comments * Remove hard-coded base_expr name from infix_notation * Add special EachItem to compose DiagramItem for Group-OneOrMore-Choice; refactored tests to move duplicated code to function; added names to mozillaCalendarParser.py for better diagram * Make sure root element gets in the diagram, even if it has no custom name * Update tests to reflect diagram structure changes * Add LOOKAHEAD and LOOKBEHIND annotations for FollowedBy and PrecededBy elements, and changed the annotation on Each to [ALL]; renamed _first to _element_diagram_states; add expr.streamline() in create_diagram() to collapse nested exprs; added railroad_diagram_demo.py example general blackening; update CHANGES with latest enhancements; bump version date * Fix pip command * Update CHANGES and whats_new_in_3_0_0.rst with some features and acknowledgements * Updates from PR review: change user instructions to use pyparsing[diagrams]; consistent annotations for NotAny along with FollowedBy and PrecededBy; fixed up comments and type annotations * Remove unneeded pip installs for tox (already handled in tox.ini) * Refactor duplicate code into decorator; drop unused group_results_name argument * Add diagram handling for SkipTo, and for And's constructed using `expr*N` notation (use a OneOrMore diagram with a repeat count instead of a sequence of N exprs) * Fix parsing ambiguity in railroad_diagram_demo.py so that parser can actually parse a valid input string | ||||
* | Update docstrings to use new-style snake_case names | ptmcg | 2021-09-02 | 1 | -2/+2 |
| | |||||
* | mypy cleanup | ptmcg | 2021-09-02 | 1 | -4/+11 |
| | |||||
* | Fix annotations using Iterable, must import and use as IterableType so as ↵ | ptmcg | 2021-08-23 | 1 | -1/+1 |
| | | | | not to confuse with collections.abc.Iterable. | ||||
* | Adding type annotations | ptmcg | 2021-08-23 | 1 | -26/+55 |
| | |||||
* | Fix f-string 3.6 compat bug in test_unit.py; rename __versionTime__ to ↵ | ptmcg | 2021-08-16 | 1 | -6/+6 |
| | | | | __version_time__; code cleanups | ||||
* | Sweep code for usage of Optional -> Opt; sweep HowToUsePyparsing.rst for ↵ | ptmcg | 2021-08-08 | 1 | -16/+16 |
| | | | | legacy names | ||||
* | Sweep code for calls using legacy names | ptmcg | 2021-08-08 | 1 | -15/+30 |
| | |||||
* | Add PEP-8 naming, with compatibility synonyms | ptmcg | 2021-08-07 | 1 | -145/+190 |
| | |||||
* | Add allowTrailingDelim to delimitedList helper (#285) | Kazantcev Andrey | 2021-07-29 | 1 | -4/+17 |
| | | | Merge pull request #285 - Add allowTrailingDelim to delimitedList helper | ||||
* | Deprecate `locatedExpr` in favor of new `Located` class | ptmcg | 2020-12-24 | 1 | -1/+3 |
| | |||||
* | Add IndentedBlock class; made vertical keyword arg more visible when ↵pyparsing_3.0.0b1 | ptmcg | 2020-11-02 | 1 | -1/+36 |
| | | | | creating railroad diags; changed create_diagram from monkeypatch to included method on ParserElement; better debug exception if Dict is constructed with non-Group expression | ||||
* | minor perf changes II | ptmcg | 2020-10-25 | 1 | -5/+7 |
| | |||||
* | Fix enum auto() incompat with Py3.5 | Paul McGuire | 2020-08-19 | 1 | -2/+2 |
| | |||||
* | Convert SyntaxWarnings to ValueError and TypeError exceptions; change ↵ | Paul McGuire | 2020-08-19 | 1 | -13/+7 |
| | | | | diagnostics to an enum, and add enable_diag(), disable_diag() and enable_all_warnings() methods; clean up pyparsing imports in test_unit.py | ||||
* | Docstrings cleanup; add 'encoding' argument to parseFile; additional unit ↵ | ptmcg | 2020-07-08 | 1 | -31/+30 |
| | | | | tests to improve ParseResults coverage | ||||
* | infixNotation unit tests require infixNotation bug fixes! | ptmcg | 2020-07-07 | 1 | -14/+11 |
| | |||||
* | Convert internal imports to relative imports, to support projects that ↵ | ptmcg | 2020-05-13 | 1 | -2/+15 |
| | | | | vendor pyparsing |