Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | 226 railroad updates (#298) | Paul McGuire | 2021-09-08 | 16 | -185/+433 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 | |||||
* | Docs cleanup | ptmcg | 2021-09-02 | 2 | -120/+151 | |
| | ||||||
* | Small perf tweaks | ptmcg | 2021-09-02 | 3 | -7/+8 | |
| | ||||||
* | Minor blackening | ptmcg | 2021-09-02 | 1 | -1/+6 | |
| | ||||||
* | Update docstrings to use new-style snake_case names | ptmcg | 2021-09-02 | 3 | -4/+4 | |
| | ||||||
* | Update docs to use new-style snake_case names, add some missing blurbs to ↵ | ptmcg | 2021-09-02 | 2 | -8/+18 | |
| | | | | whats_new_in_3_0_0.rst, and reformat CloseMatch change blurb in CHANGES | |||||
* | add a caseless parameter to the CloseMatch class (#281) | Adrian Edwards | 2021-09-02 | 3 | -1/+41 | |
| | | | | | | | * add tests for caseless close match * update CloseMatch to include a caseless parameter * update CHANGES file | |||||
* | Fix test issue; update version time | ptmcg | 2021-09-02 | 2 | -6/+11 | |
| | ||||||
* | mypy cleanup | ptmcg | 2021-09-02 | 5 | -37/+50 | |
| | ||||||
* | Make static methods staticmethods | ptmcg | 2021-09-02 | 1 | -0/+2 | |
| | ||||||
* | Add note about names and using 3.0 docs for 2.4.7 environments. | ptmcg | 2021-09-02 | 1 | -4/+11 | |
| | ||||||
* | Expand error message when failing to import .diagram in ↵ | ptmcg | 2021-09-02 | 1 | -1/+2 | |
| | | | | ParserElement.create_diagram() | |||||
* | Use pyparsing.Opt instead of deprecated Optional | ptmcg | 2021-09-02 | 1 | -1/+1 | |
| | ||||||
* | Fix typo | ptmcg | 2021-09-02 | 1 | -1/+1 | |
| | ||||||
* | 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 | 2 | -6/+7 | |
| | | | | not to confuse with collections.abc.Iterable. | |||||
* | Merge branch 'master' of https://github.com/pyparsing/pyparsing | ptmcg | 2021-08-23 | 1 | -12/+16 | |
|\ | ||||||
| * | Fix up CONTRIBUTING.md to reflect PEP8 developments, and wiki page updates. | Paul McGuire | 2021-08-21 | 1 | -12/+16 | |
| | | ||||||
* | | Adding type annotations | ptmcg | 2021-08-23 | 5 | -158/+314 | |
|/ | ||||||
* | Fix test bugs | ptmcg | 2021-08-20 | 1 | -9/+11 | |
| | ||||||
* | Add identchars and identbodychars symbols to make it easier to construct ↵ | ptmcg | 2021-08-19 | 6 | -5/+118 | |
| | | | | identifiers | |||||
* | Fix f-string 3.6 compat bug in test_unit.py; rename __versionTime__ to ↵ | ptmcg | 2021-08-16 | 4 | -18/+21 | |
| | | | | __version_time__; code cleanups | |||||
* | Additional unit tests for IndentedBlock, with bad indented code and indented ↵ | ptmcg | 2021-08-15 | 1 | -0/+25 | |
| | | | | code that skips unindent levels | |||||
* | Fixed bug in QuotedString class when the escaped quote string is not a ↵ | Paul McGuire | 2021-08-15 | 3 | -50/+96 | |
| | | | | 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 | 3 | -1/+26 | |
| | ||||||
* | Update version time | ptmcg | 2021-08-14 | 1 | -1/+1 | |
| | ||||||
* | Add note on enable/disable memoization methods in whats_new_in_3_0_0.rst | ptmcg | 2021-08-14 | 1 | -0/+13 | |
| | ||||||
* | It is to black | ptmcg | 2021-08-14 | 1 | -5/+15 | |
| | ||||||
* | Fix unit test that enables/disables memoization, to not interfere with ↵ | ptmcg | 2021-08-14 | 1 | -1/+26 | |
| | | | | test-level settings; add flag to enable verbose tracebacks for unit testing | |||||
* | Add support for Suppress(...) to suppress the skipped text | ptmcg | 2021-08-12 | 4 | -37/+103 | |
| | ||||||
* | Fix old method names in comparison (#295) | Daniel Roseman | 2021-08-12 | 1 | -2/+2 | |
| | | | Looks like these got over-zealously corrected to the new versions. | |||||
* | More informative exception messages | ptmcg | 2021-08-09 | 4 | -14/+40 | |
| | ||||||
* | Update version for next phase | ptmcg | 2021-08-09 | 1 | -1/+1 | |
| | ||||||
* | Clean up number word parsers for better explanatory value. | ptmcg | 2021-08-09 | 2 | -45/+73 | |
| | ||||||
* | Revert PEP8 naming in README.rst until 3.0 full release. | ptmcg | 2021-08-09 | 1 | -2/+2 | |
| | ||||||
* | Add simplified 1-99 example, extracted from number_words.py | Paul McGuire | 2021-08-08 | 1 | -0/+72 | |
| | ||||||
* | Update version time; prep for releasepyparsing_3.0.0b3 | ptmcg | 2021-08-08 | 1 | -1/+1 | |
| | ||||||
* | Use new PEP-8 names in project README.rst | ptmcg | 2021-08-08 | 1 | -2/+2 | |
| | ||||||
* | Sweep code for usage of Optional -> Opt; sweep HowToUsePyparsing.rst for ↵ | ptmcg | 2021-08-08 | 3 | -111/+101 | |
| | | | | legacy names | |||||
* | Sweep code for calls using legacy names | ptmcg | 2021-08-08 | 7 | -102/+171 | |
| | ||||||
* | Update docs to include `delimited_list` added argument `allow_trailing_delim` | Paul McGuire | 2021-08-07 | 2 | -1/+12 | |
| | ||||||
* | Added PEP-8 notes to the whats_new_in_3_0_0.rst doc | Paul McGuire | 2021-08-07 | 1 | -1/+113 | |
| | ||||||
* | Add PEP-8 naming, with compatibility synonyms | ptmcg | 2021-08-07 | 11 | -780/+1036 | |
| | ||||||
* | TravisCI not supporting 3.10 yet, leave out | ptmcg | 2021-08-07 | 2 | -3/+1 | |
| | ||||||
* | Fix Travis integration (still referenced 3.5, tho no longer supported Python ↵ | ptmcg | 2021-08-07 | 2 | -3/+3 | |
| | | | | for pyparsing 3) | |||||
* | Remove Py3.5 from compatibility targets, add Py3.10, update version timestamp | ptmcg | 2021-08-07 | 4 | -6/+12 | |
| | ||||||
* | Minor code cleanups | ptmcg | 2021-08-07 | 5 | -119/+106 | |
| | ||||||
* | Renumber test classes | ptmcg | 2021-08-01 | 1 | -21/+21 | |
| | ||||||
* | Fix internal bug in ParseResults.getName() (how did this ever work?) | ptmcg | 2021-08-01 | 1 | -1/+1 | |
| |