Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Fix python_requires in setup.py | ptmcg | 2021-09-29 | 1 | -1/+1 | |
| | ||||||
* | Fixup type annotations | ptmcg | 2021-09-29 | 3 | -32/+33 | |
| | ||||||
* | Code cleanup | ptmcg | 2021-09-28 | 4 | -21/+119 | |
| | ||||||
* | Fixed issue #272, reported by PhasecoreX, when LineStart() expressions would ↵ | ptmcg | 2021-09-28 | 1 | -0/+61 | |
| | | | | match expressions that were not necessarily at the beginning of a line; added AtLineStart and AtStringStart classes | |||||
* | Fix type annotation for ranges in unicode_sets; make _get_chars_for_ranges a ↵ | ptmcg | 2021-09-27 | 1 | -2/+2 | |
| | | | | lazyclassproperty | |||||
* | Fix type annotation for ranges in unicode_sets; make _get_chars_for_ranges a ↵ | ptmcg | 2021-09-27 | 1 | -31/+43 | |
| | | | | lazyclassproperty | |||||
* | Fix type annotation for ranges in unicode_sets; make _get_chars_for_ranges a ↵ | ptmcg | 2021-09-27 | 2 | -28/+38 | |
| | | | | lazyclassproperty | |||||
* | Add numbers and punctuation to Cuneiform class | ptmcg | 2021-09-25 | 1 | -0/+1 | |
| | ||||||
* | Fix example for with_line_numbers in CHANGES | ptmcg | 2021-09-25 | 1 | -1/+2 | |
| | ||||||
* | Blacken and update version time | ptmcg | 2021-09-25 | 4 | -11/+19 | |
| | ||||||
* | Added start_line and end_line args to with_line_numbers, and more docstring | ptmcg | 2021-09-25 | 4 | -22/+62 | |
| | ||||||
* | Added start and end args to with_line_numbers, and more docstring | ptmcg | 2021-09-25 | 1 | -4/+24 | |
| | ||||||
* | Added with_line_numbers method to pyparsing_testing | ptmcg | 2021-09-25 | 2 | -0/+49 | |
| | ||||||
* | Allow multiplying an expr by 0 or (0,0) | ptmcg | 2021-09-24 | 3 | -16/+25 | |
| | ||||||
* | Some tweaks to cuneiform_python.py | ptmcg | 2021-09-24 | 1 | -2/+4 | |
| | ||||||
* | Add cuneiform_python.py example | ptmcg | 2021-09-23 | 2 | -0/+104 | |
| | ||||||
* | Blacken and update version time | ptmcg | 2021-09-23 | 2 | -2/+6 | |
| | ||||||
* | Fix to IndentedBlock where first line of block was suppressed; use ↵ | ptmcg | 2021-09-23 | 2 | -1/+7 | |
| | | | | Empty().preParse to advance to printable character if not already there | |||||
* | Include expr name in debug fail messages to make it easier to sync up match ↵ | ptmcg | 2021-09-23 | 3 | -21/+22 | |
| | | | | vs success/fail debug messages | |||||
* | Add return types in results.py, and small perf change in __bool__ | ptmcg | 2021-09-22 | 2 | -14/+18 | |
| | ||||||
* | Cleanup whats_new_in_3_0_0.rst doc - add 'pyparsing_common.url', make ↵ | ptmcg | 2021-09-22 | 1 | -7/+18 | |
| | | | | backward compat synonyms more prominent; fix instructions on pip install for railroad diags | |||||
* | Code cleanup: replaced dynamic attrs in ParseBaseException with properties, ↵ | ptmcg | 2021-09-21 | 6 | -67/+64 | |
| | | | | some addtional type annotations | |||||
* | Update version timestamp, blackening | ptmcg | 2021-09-19 | 2 | -4/+2 | |
| | ||||||
* | Fix ParseResults return of "" for dunder methods, which breaks some Python ↵ | ptmcg | 2021-09-19 | 3 | -0/+16 | |
| | | | | internals (Issue #208) | |||||
* | Fix handling of ParseFatalExceptions in a MatchFirst (reported in Issue #251) | ptmcg | 2021-09-19 | 3 | -24/+47 | |
| | ||||||
* | 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 | |||||
* | Update timestamp; reblack __init__.py | ptmcg | 2021-09-19 | 1 | -12/+9 | |
| | ||||||
* | Add pyparsing_common.url to urlExtractorNew.py | ptmcg | 2021-09-11 | 3 | -7/+54 | |
| | ||||||
* | Handle types passed to ParseResults (Py3.9 behavior change) (#276) | ptmcg | 2021-09-09 | 4 | -3/+19 | |
| | ||||||
* | Add url expression to pyparsing_common (#249) | ptmcg | 2021-09-08 | 3 | -0/+134 | |
| | ||||||
* | Bump version time too | ptmcg | 2021-09-08 | 1 | -1/+1 | |
| | ||||||
* | Address #188 - __eq__ should call matches with parse_all=True | ptmcg | 2021-09-08 | 1 | -1/+1 | |
| | ||||||
* | Bump version number for next release (call it rc2 for now, but hopefully it ↵ | ptmcg | 2021-09-08 | 1 | -1/+1 | |
| | | | | will be the final) | |||||
* | Set version to use "rc", add date to CHANGES, reorder items a bitpyparsing_3.0.0rc1 | ptmcg | 2021-09-08 | 1 | -22/+22 | |
| | ||||||
* | Set version to use "rc" if release level start with "c" | ptmcg | 2021-09-08 | 1 | -3/+8 | |
| | ||||||
* | The blackening | ptmcg | 2021-09-08 | 4 | -12/+13 | |
| | ||||||
* | Bump __version_time__ | ptmcg | 2021-09-08 | 1 | -1/+1 | |
| | ||||||
* | parseFile and create_diagram methods now accept pathlib.Path arguments | ptmcg | 2021-09-08 | 2 | -3/+7 | |
| | ||||||
* | Update eval_arith.py to have better representation of true and false eval ↵ | ptmcg | 2021-09-08 | 1 | -2/+4 | |
| | | | | expressions | |||||
* | Reformat code for railroad_diagram_demo.py | ptmcg | 2021-09-08 | 1 | -6/+22 | |
| | ||||||
* | Only collapse re character ranges if they consist of more than 3 characters | ptmcg | 2021-09-08 | 3 | -32/+36 | |
| | ||||||
* | Only collapse re character ranges if they consist of 4 or more characters | ptmcg | 2021-09-08 | 1 | -9/+12 | |
| | ||||||
* | 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 | |
| | ||||||
* | Add test for optimized Word with max>0 | ptmcg | 2021-09-08 | 1 | -2/+48 | |
| | ||||||
* | Add missing setName() calls; use new identchars and identbodychars to define ↵ | ptmcg | 2021-09-08 | 1 | -2/+2 | |
| | | | | identifier | |||||
* | 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 | 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 | |
| |