Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Doc updates, remove references to deprecated delimitedList and ↵ | ptmcg | 2023-04-19 | 1 | -21/+8 |
| | | | | delimited_list (use DelimitedList class) | ||||
* | Blacken | ptmcg | 2023-04-03 | 1 | -0/+1 |
| | |||||
* | Added DelimitedList class, for better handling of naming and diagramming ↵ | ptmcg | 2022-12-11 | 1 | -83/+32 |
| | | | | (replaces delimited_list function) | ||||
* | Additional measures to prevent premature streamlining (Issue #447) | ptmcg | 2022-11-10 | 1 | -2/+2 |
| | |||||
* | Add type annotations | ptmcg | 2022-07-14 | 1 | -0/+3 |
| | |||||
* | Add recurse option to set_debug(), fixes #399 | ptmcg | 2022-07-11 | 1 | -0/+1 |
| | |||||
* | Fix bug in delimited_list (premature streamline), issue #408 | ptmcg | 2022-07-09 | 1 | -1/+29 |
| | |||||
* | Additional docstring and sphinx cleanup | ptmcg | 2022-06-18 | 1 | -1/+1 |
| | |||||
* | More docstring fixes | ptmcg | 2022-06-17 | 1 | -4/+7 |
| | |||||
* | Explicitly declare compatibility alias functions (#414) | Devin J. Pohly | 2022-06-17 | 1 | -13/+39 |
| | | | | | This allows static type checkers to find and check these functions correctly, and it removes the need to fiddle around with stack frames to get the aliases defined. | ||||
* | Clean up docstrings to use new PEP8 names instead of old camelCase names | ptmcg | 2022-06-16 | 1 | -3/+3 |
| | |||||
* | Fix up docstrings for deprecated functions (doc as deprecated, instead of ↵ | ptmcg | 2022-06-16 | 1 | -16/+25 |
| | | | | duplicating actual function doc) - issue #411 | ||||
* | fix Sphinx errors/warnings (#410) | Devin J. Pohly | 2022-06-10 | 1 | -0/+2 |
| | | | | | | Two warnings remain from the Hebrew and Devanagari names in pyparsing_unicode, but those are due to Sphinx using Python's builtin `re` library to parse identifiers (which does not have thorough Unicode handling for `\w`). | ||||
* | Convert most str.format() calls to use f-strings | ptmcg | 2022-05-30 | 1 | -12/+7 |
| | |||||
* | More added type annotations; reworked Word.__init__ so that excludeChars ↵ | ptmcg | 2022-05-29 | 1 | -3/+11 |
| | | | | exclusion code is clearer | ||||
* | Update docstrings, replacing ZeroOrMore and OneOrMore with [...] and [1, ↵ | ptmcg | 2022-04-11 | 1 | -2/+2 |
| | | | | ...] notation | ||||
* | Reworked mypy typing, removed definitions of OptionalType, DictType, and ↵ | ptmcg | 2022-04-11 | 1 | -9/+14 |
| | | | | IterableType | ||||
* | 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 |