summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* optimize pyparsing import time by deferring regex compile (#363)Anthony Sottile2022-02-051-1/+1
|
* Fix #355 - needed re.escape, not escape_regex_range_chars in QuotedStringPaul McGuire2022-01-141-0/+23
|
* Issue #350 - fixed whitespace skipping around White expressionsptmcg2022-01-021-0/+14
|
* Fixed PEP-8 compatibility logic in WordStart and WordEnd (Issue #346)ptmcg2021-12-181-0/+18
|
* Fix #345 - delimitedList calling streamline() changes content of expr in ↵ptmcg2021-12-141-0/+37
| | | | some cases; use a copy to generate default expr name
* Minor enhancement to Word generation of internal regular expression when ↵ptmcg2021-12-061-20/+31
| | | | characters are 2 consecutive chars
* Documented ParseResults bugfix to evaluate ParseResults as True if either ↵ptmcg2021-12-061-0/+10
| | | | list is non empty or results names dict is non empty
* Added min/max keyword arguments for delimited_list (#335)Marius2021-12-042-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.6ptmcg2021-11-121-11/+50
|
* Revert results names for packaging compatibility (#110)ptmcg2021-11-121-2/+22
|
* Add tests written when working on #323Paul McGuire2021-11-111-4/+72
|
* Add asserts in unit testptmcg2021-11-101-0/+4
|
* Rework version_info to use typing.NamedTupleptmcg2021-11-101-8/+7
|
* Fix delimitedList regression when called with a literal string instead of a ↵ptmcg2021-11-091-0/+6
| | | | ParserElement (Issue #331)
* Removed spurious warnings when assigning results name to originalTextFor ↵ptmcg2021-10-311-0/+16
| | | | expression (Issue #110)
* Add tests to verify that warnings are not raised when not enabledptmcg2021-10-311-8/+47
|
* Fix bug where streamline() did not return self if already streamlinedptmcg2021-10-301-0/+22
|
* Update version time, reblacken test_unit.pyptmcg2021-10-291-1/+1
|
* Fix Dict() bugfix to wrap tokenlist.as_dict() if self.resultsNameptmcg2021-10-291-0/+95
|
* Fix whitespace skipping bug introduced while reverting LineStart() changes - ↵ptmcg2021-10-271-10/+13
| | | | Issue #319
* Fixed IndentedBlockptmcg2021-10-271-60/+59
|
* Revert strict LineStart interpretation in 3.0.0 to 2.4.x behavior (Issue #317)ptmcg2021-10-261-9/+52
|
* Fixed bug where ParseResults accidentally created recursive contents. (Issue ↵pyparsing_3.0.1ptmcg2021-10-241-0/+7
| | | | #315)
* Fixed bug in Word with max argument (#314)ptmcg2021-10-241-0/+38
|
* Fixed bug where warn_on_multiple_string_args_to_oneof warning is raised even ↵ptmcg2021-10-241-0/+5
| | | | when not enabled
* refactor unit test TestCase to add assertDoesNotWarnptmcg2021-10-241-53/+70
|
* Added global method `autoname_elements()`ptmcg2021-10-231-0/+18
|
* Added support for python -W warning option to call enable_all_warnings() at ↵ptmcg2021-10-221-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 ↵ptmcg2021-10-221-0/+25
| | | | HTML entity definitions from html.entities.html5
* Guard against empty ParseExpressionsptmcg2021-10-221-0/+8
|
* Fix named fields returned by common.url expression; add more common.* items ↵ptmcg2021-10-221-0/+17
| | | | to HowToUsePyparsing.rst
* Code cleanupptmcg2021-09-281-20/+25
|
* Fixed issue #272, reported by PhasecoreX, when LineStart() expressions would ↵ptmcg2021-09-281-0/+61
| | | | match expressions that were not necessarily at the beginning of a line; added AtLineStart and AtStringStart classes
* Blacken and update version timeptmcg2021-09-251-5/+13
|
* Added start_line and end_line args to with_line_numbers, and more docstringptmcg2021-09-251-1/+37
|
* Allow multiplying an expr by 0 or (0,0)ptmcg2021-09-241-6/+12
|
* Include expr name in debug fail messages to make it easier to sync up match ↵ptmcg2021-09-231-19/+19
| | | | vs success/fail debug messages
* Add return types in results.py, and small perf change in __bool__ptmcg2021-09-221-9/+14
|
* Code cleanup: replaced dynamic attrs in ParseBaseException with properties, ↵ptmcg2021-09-211-18/+0
| | | | some addtional type annotations
* Update version timestamp, blackeningptmcg2021-09-191-3/+1
|
* Fix ParseResults return of "" for dunder methods, which breaks some Python ↵ptmcg2021-09-191-0/+10
| | | | internals (Issue #208)
* Fix handling of ParseFatalExceptions in a MatchFirst (reported in Issue #251)ptmcg2021-09-191-8/+42
|
* Handle types passed to ParseResults (Py3.9 behavior change) (#276)ptmcg2021-09-091-0/+12
|
* Add url expression to pyparsing_common (#249)ptmcg2021-09-081-0/+80
|
* Only collapse re character ranges if they consist of more than 3 charactersptmcg2021-09-081-21/+23
|
* Add test for optimized Word with max>0ptmcg2021-09-081-2/+48
|
* 226 railroad updates (#298)Paul McGuire2021-09-081-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 Edwards2021-09-021-0/+32
| | | | | | | * add tests for caseless close match * update CloseMatch to include a caseless parameter * update CHANGES file
* Fix test issue; update version timeptmcg2021-09-021-2/+4
|
* Make static methods staticmethodsptmcg2021-09-021-0/+2
|