Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Blacken and update version time | ptmcg | 2021-09-23 | 1 | -1/+5 | |
| | ||||||
* | Include expr name in debug fail messages to make it easier to sync up match ↵ | ptmcg | 2021-09-23 | 1 | -1/+1 | |
| | | | | vs success/fail debug messages | |||||
* | Code cleanup: replaced dynamic attrs in ParseBaseException with properties, ↵ | ptmcg | 2021-09-21 | 1 | -2/+2 | |
| | | | | some addtional type annotations | |||||
* | Fix handling of ParseFatalExceptions in a MatchFirst (reported in Issue #251) | ptmcg | 2021-09-19 | 1 | -16/+2 | |
| | ||||||
* | Cleanup str() representations for And and Opt; remove extraneous "{}"s | ptmcg | 2021-09-19 | 1 | -2/+10 | |
| | ||||||
* | Code cleanup: use raise-from syntax; use set operations instead of str ↵ | ptmcg | 2021-09-19 | 1 | -19/+18 | |
| | | | | operations; fix some type annotations | |||||
* | Address #188 - __eq__ should call matches with parse_all=True | ptmcg | 2021-09-08 | 1 | -1/+1 | |
| | ||||||
* | The blackening | ptmcg | 2021-09-08 | 1 | -3/+1 | |
| | ||||||
* | parseFile and create_diagram methods now accept pathlib.Path arguments | ptmcg | 2021-09-08 | 1 | -3/+4 | |
| | ||||||
* | Only collapse re character ranges if they consist of more than 3 characters | ptmcg | 2021-09-08 | 1 | -10/+10 | |
| | ||||||
* | Word optimization when using max argument; fix create_diagram -> NoReturn ↵ | ptmcg | 2021-09-08 | 1 | -7/+25 | |
| | | | | s/b None | |||||
* | 226 railroad updates (#298) | Paul McGuire | 2021-09-08 | 1 | -4/+16 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 | |||||
* | Small perf tweaks | ptmcg | 2021-09-02 | 1 | -4/+5 | |
| | ||||||
* | Minor blackening | ptmcg | 2021-09-02 | 1 | -1/+6 | |
| | ||||||
* | Update docstrings to use new-style snake_case names | ptmcg | 2021-09-02 | 1 | -1/+1 | |
| | ||||||
* | add a caseless parameter to the CloseMatch class (#281) | Adrian Edwards | 2021-09-02 | 1 | -1/+6 | |
| | | | | | | | * add tests for caseless close match * update CloseMatch to include a caseless parameter * update CHANGES file | |||||
* | mypy cleanup | ptmcg | 2021-09-02 | 1 | -11/+13 | |
| | ||||||
* | Expand error message when failing to import .diagram in ↵ | ptmcg | 2021-09-02 | 1 | -1/+2 | |
| | | | | ParserElement.create_diagram() | |||||
* | In 3.7, Callable cannot use NoReturn for a return type, must use None | ptmcg | 2021-08-23 | 1 | -4/+4 | |
| | ||||||
* | Fix annotations using Iterable, must import and use as IterableType so as ↵ | ptmcg | 2021-08-23 | 1 | -5/+6 | |
| | | | | not to confuse with collections.abc.Iterable. | |||||
* | Adding type annotations | ptmcg | 2021-08-23 | 1 | -124/+246 | |
| | ||||||
* | Add identchars and identbodychars symbols to make it easier to construct ↵ | ptmcg | 2021-08-19 | 1 | -5/+6 | |
| | | | | identifiers | |||||
* | Fix f-string 3.6 compat bug in test_unit.py; rename __versionTime__ to ↵ | ptmcg | 2021-08-16 | 1 | -7/+6 | |
| | | | | __version_time__; code cleanups | |||||
* | Fixed bug in QuotedString class when the escaped quote string is not a ↵ | Paul McGuire | 2021-08-15 | 1 | -29/+61 | |
| | | | | repeated character; reworked regex construction in QuotedString class (Issue #263) | |||||
* | Add PEP-8 names for initial args | Paul McGuire | 2021-08-15 | 1 | -8/+14 | |
| | ||||||
* | Fix bug in Located class when used with a results name. (Issue #294) | ptmcg | 2021-08-14 | 1 | -1/+6 | |
| | ||||||
* | Add support for Suppress(...) to suppress the skipped text | ptmcg | 2021-08-12 | 1 | -0/+18 | |
| | ||||||
* | Sweep code for calls using legacy names | ptmcg | 2021-08-08 | 1 | -30/+84 | |
| | ||||||
* | Add PEP-8 naming, with compatibility synonyms | ptmcg | 2021-08-07 | 1 | -365/+477 | |
| | ||||||
* | Minor code cleanups | ptmcg | 2021-08-07 | 1 | -25/+29 | |
| | ||||||
* | Update __versionTime__; blacken core code and examples | ptmcg | 2021-08-01 | 1 | -61/+87 | |
| | ||||||
* | Rename enable_left_recursion to enableLeftRecursion for consistency with ↵ | ptmcg | 2021-08-01 | 1 | -1/+4 | |
| | | | | other pyparsing names (left in enable_left_recursion synonym as omen of names to come); added notes to CHANGES and whats_new_in_3_0_0.rst; added left_recursion.py to examples. | |||||
* | adjusted docs for recursion cache | Max Fischer | 2021-06-28 | 1 | -4/+10 | |
| | ||||||
* | left recursion memo size may be limited | Max Fischer | 2021-06-28 | 1 | -1/+12 | |
| | ||||||
* | flattened recursion memo | Max Fischer | 2021-06-28 | 1 | -10/+12 | |
| | ||||||
* | typos | Max Fischer | 2021-06-28 | 1 | -2/+2 | |
| | ||||||
* | memoization can be turned off | Max Fischer | 2021-06-28 | 1 | -6/+29 | |
| | ||||||
* | cleanup | Max Fischer | 2021-06-26 | 1 | -2/+0 | |
| | ||||||
* | action wins against no-action | Max Fischer | 2021-06-26 | 1 | -5/+9 | |
| | ||||||
* | memo update consistent for all actions | Max Fischer | 2021-06-26 | 1 | -2/+2 | |
| | ||||||
* | draft for peeking recursion | Max Fischer | 2021-06-26 | 1 | -18/+25 | |
| | ||||||
* | LR memo content is always returned as copy | Max Fischer | 2021-06-26 | 1 | -1/+1 | |
| | ||||||
* | simplified replacement logic | Max Fischer | 2021-06-23 | 1 | -8/+2 | |
| | ||||||
* | LR memo no longer mixes action/no-action results | Max Fischer | 2021-06-22 | 1 | -4/+5 | |
| | ||||||
* | renamed bounded to left recursion | Max Fischer | 2021-06-21 | 1 | -6/+6 | |
| | ||||||
* | expanded docstring | Max Fischer | 2021-06-20 | 1 | -3/+9 | |
| | ||||||
* | added high-level description of algorithm | Max Fischer | 2021-06-20 | 1 | -0/+14 | |
| | ||||||
* | flattened Forward parse method | Max Fischer | 2021-06-20 | 1 | -4/+0 | |
| | ||||||
* | memo cache only provides copies | Max Fischer | 2021-06-20 | 1 | -1/+1 | |
| | ||||||
* | LR-Forward can match Empty | Max Fischer | 2021-06-20 | 1 | -2/+0 | |
| |