Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | optimize pyparsing import time by deferring regex compile (#363) | Anthony Sottile | 2022-02-05 | 1 | -1/+1 | |
| | ||||||
* | Fix #355 - needed re.escape, not escape_regex_range_chars in QuotedString | Paul McGuire | 2022-01-14 | 1 | -0/+23 | |
| | ||||||
* | Issue #350 - fixed whitespace skipping around White expressions | ptmcg | 2022-01-02 | 1 | -0/+14 | |
| | ||||||
* | Fixed PEP-8 compatibility logic in WordStart and WordEnd (Issue #346) | ptmcg | 2021-12-18 | 1 | -0/+18 | |
| | ||||||
* | Fix #345 - delimitedList calling streamline() changes content of expr in ↵ | ptmcg | 2021-12-14 | 1 | -0/+37 | |
| | | | | some cases; use a copy to generate default expr name | |||||
* | Minor enhancement to Word generation of internal regular expression when ↵ | ptmcg | 2021-12-06 | 1 | -20/+31 | |
| | | | | characters are 2 consecutive chars | |||||
* | Documented ParseResults bugfix to evaluate ParseResults as True if either ↵ | ptmcg | 2021-12-06 | 1 | -0/+10 | |
| | | | | list is non empty or results names dict is non empty | |||||
* | Added min/max keyword arguments for delimited_list (#335) | Marius | 2021-12-04 | 2 | -0/+31 | |
| | | | | | * Added min/max keyword arguments for delimited_list * Rename arguments and add validation | |||||
* | Add warning suppression detection for all diagnostic warningspyparsing_3.0.6 | ptmcg | 2021-11-12 | 1 | -11/+50 | |
| | ||||||
* | Revert results names for packaging compatibility (#110) | ptmcg | 2021-11-12 | 1 | -2/+22 | |
| | ||||||
* | Add tests written when working on #323 | Paul McGuire | 2021-11-11 | 1 | -4/+72 | |
| | ||||||
* | Add asserts in unit test | ptmcg | 2021-11-10 | 1 | -0/+4 | |
| | ||||||
* | Rework version_info to use typing.NamedTuple | ptmcg | 2021-11-10 | 1 | -8/+7 | |
| | ||||||
* | Fix delimitedList regression when called with a literal string instead of a ↵ | ptmcg | 2021-11-09 | 1 | -0/+6 | |
| | | | | ParserElement (Issue #331) | |||||
* | Removed spurious warnings when assigning results name to originalTextFor ↵ | ptmcg | 2021-10-31 | 1 | -0/+16 | |
| | | | | expression (Issue #110) | |||||
* | Add tests to verify that warnings are not raised when not enabled | ptmcg | 2021-10-31 | 1 | -8/+47 | |
| | ||||||
* | Fix bug where streamline() did not return self if already streamlined | ptmcg | 2021-10-30 | 1 | -0/+22 | |
| | ||||||
* | Update version time, reblacken test_unit.py | ptmcg | 2021-10-29 | 1 | -1/+1 | |
| | ||||||
* | Fix Dict() bugfix to wrap tokenlist.as_dict() if self.resultsName | ptmcg | 2021-10-29 | 1 | -0/+95 | |
| | ||||||
* | Fix whitespace skipping bug introduced while reverting LineStart() changes - ↵ | ptmcg | 2021-10-27 | 1 | -10/+13 | |
| | | | | Issue #319 | |||||
* | Fixed IndentedBlock | ptmcg | 2021-10-27 | 1 | -60/+59 | |
| | ||||||
* | Revert strict LineStart interpretation in 3.0.0 to 2.4.x behavior (Issue #317) | ptmcg | 2021-10-26 | 1 | -9/+52 | |
| | ||||||
* | Fixed bug where ParseResults accidentally created recursive contents. (Issue ↵pyparsing_3.0.1 | ptmcg | 2021-10-24 | 1 | -0/+7 | |
| | | | | #315) | |||||
* | Fixed bug in Word with max argument (#314) | ptmcg | 2021-10-24 | 1 | -0/+38 | |
| | ||||||
* | Fixed bug where warn_on_multiple_string_args_to_oneof warning is raised even ↵ | ptmcg | 2021-10-24 | 1 | -0/+5 | |
| | | | | when not enabled | |||||
* | refactor unit test TestCase to add assertDoesNotWarn | ptmcg | 2021-10-24 | 1 | -53/+70 | |
| | ||||||
* | Added global method `autoname_elements()` | ptmcg | 2021-10-23 | 1 | -0/+18 | |
| | ||||||
* | Added support for python -W warning option to call enable_all_warnings() at ↵ | ptmcg | 2021-10-22 | 1 | -0/+31 | |
| | | | | startup. Also detects setting of PYPARSINGENABLEALLWARNINGS environment variable to any non-blank value. | |||||
* | Modified helpers common_html_entity and replace_html_entity() to use the ↵ | ptmcg | 2021-10-22 | 1 | -0/+25 | |
| | | | | HTML entity definitions from html.entities.html5 | |||||
* | Guard against empty ParseExpressions | ptmcg | 2021-10-22 | 1 | -0/+8 | |
| | ||||||
* | Fix named fields returned by common.url expression; add more common.* items ↵ | ptmcg | 2021-10-22 | 1 | -0/+17 | |
| | | | | to HowToUsePyparsing.rst | |||||
* | Code cleanup | ptmcg | 2021-09-28 | 1 | -20/+25 | |
| | ||||||
* | 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 | |||||
* | Blacken and update version time | ptmcg | 2021-09-25 | 1 | -5/+13 | |
| | ||||||
* | Added start_line and end_line args to with_line_numbers, and more docstring | ptmcg | 2021-09-25 | 1 | -1/+37 | |
| | ||||||
* | Allow multiplying an expr by 0 or (0,0) | ptmcg | 2021-09-24 | 1 | -6/+12 | |
| | ||||||
* | Include expr name in debug fail messages to make it easier to sync up match ↵ | ptmcg | 2021-09-23 | 1 | -19/+19 | |
| | | | | vs success/fail debug messages | |||||
* | Add return types in results.py, and small perf change in __bool__ | ptmcg | 2021-09-22 | 1 | -9/+14 | |
| | ||||||
* | Code cleanup: replaced dynamic attrs in ParseBaseException with properties, ↵ | ptmcg | 2021-09-21 | 1 | -18/+0 | |
| | | | | some addtional type annotations | |||||
* | Update version timestamp, blackening | ptmcg | 2021-09-19 | 1 | -3/+1 | |
| | ||||||
* | Fix ParseResults return of "" for dunder methods, which breaks some Python ↵ | ptmcg | 2021-09-19 | 1 | -0/+10 | |
| | | | | internals (Issue #208) | |||||
* | Fix handling of ParseFatalExceptions in a MatchFirst (reported in Issue #251) | ptmcg | 2021-09-19 | 1 | -8/+42 | |
| | ||||||
* | Handle types passed to ParseResults (Py3.9 behavior change) (#276) | ptmcg | 2021-09-09 | 1 | -0/+12 | |
| | ||||||
* | Add url expression to pyparsing_common (#249) | ptmcg | 2021-09-08 | 1 | -0/+80 | |
| | ||||||
* | Only collapse re character ranges if they consist of more than 3 characters | ptmcg | 2021-09-08 | 1 | -21/+23 | |
| | ||||||
* | Add test for optimized Word with max>0 | ptmcg | 2021-09-08 | 1 | -2/+48 | |
| | ||||||
* | 226 railroad updates (#298) | Paul McGuire | 2021-09-08 | 1 | -30/+68 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 | |||||
* | add a caseless parameter to the CloseMatch class (#281) | Adrian Edwards | 2021-09-02 | 1 | -0/+32 | |
| | | | | | | | * 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 | 1 | -2/+4 | |
| | ||||||
* | Make static methods staticmethods | ptmcg | 2021-09-02 | 1 | -0/+2 | |
| |