summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Cleanup str() representations for And and Opt; remove extraneous "{}"sptmcg2021-09-191-2/+10
|
* Code cleanup: use raise-from syntax; use set operations instead of str ↵ptmcg2021-09-191-19/+18
| | | | operations; fix some type annotations
* Update timestamp; reblack __init__.pyptmcg2021-09-191-12/+9
|
* Add pyparsing_common.url to urlExtractorNew.pyptmcg2021-09-113-7/+54
|
* Handle types passed to ParseResults (Py3.9 behavior change) (#276)ptmcg2021-09-094-3/+19
|
* Add url expression to pyparsing_common (#249)ptmcg2021-09-083-0/+134
|
* Bump version time tooptmcg2021-09-081-1/+1
|
* Address #188 - __eq__ should call matches with parse_all=Trueptmcg2021-09-081-1/+1
|
* Bump version number for next release (call it rc2 for now, but hopefully it ↵ptmcg2021-09-081-1/+1
| | | | will be the final)
* Set version to use "rc", add date to CHANGES, reorder items a bitpyparsing_3.0.0rc1ptmcg2021-09-081-22/+22
|
* Set version to use "rc" if release level start with "c"ptmcg2021-09-081-3/+8
|
* The blackeningptmcg2021-09-084-12/+13
|
* Bump __version_time__ptmcg2021-09-081-1/+1
|
* parseFile and create_diagram methods now accept pathlib.Path argumentsptmcg2021-09-082-3/+7
|
* Update eval_arith.py to have better representation of true and false eval ↵ptmcg2021-09-081-2/+4
| | | | expressions
* Reformat code for railroad_diagram_demo.pyptmcg2021-09-081-6/+22
|
* Only collapse re character ranges if they consist of more than 3 charactersptmcg2021-09-083-32/+36
|
* Only collapse re character ranges if they consist of 4 or more charactersptmcg2021-09-081-9/+12
|
* Better type matching for infix_notation operator specsptmcg2021-09-081-6/+14
|
* Optimization in infixNotationptmcg2021-09-081-2/+5
|
* Add test for optimized Word with max>0ptmcg2021-09-081-2/+48
|
* Add missing setName() calls; use new identchars and identbodychars to define ↵ptmcg2021-09-081-2/+2
| | | | identifier
* Word optimization when using max argument; fix create_diagram -> NoReturn ↵ptmcg2021-09-081-7/+25
| | | | s/b None
* 226 railroad updates (#298)Paul McGuire2021-09-0816-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 cleanupptmcg2021-09-022-120/+151
|
* Small perf tweaksptmcg2021-09-023-7/+8
|
* Minor blackeningptmcg2021-09-021-1/+6
|
* Update docstrings to use new-style snake_case namesptmcg2021-09-023-4/+4
|
* Update docs to use new-style snake_case names, add some missing blurbs to ↵ptmcg2021-09-022-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 Edwards2021-09-023-1/+41
| | | | | | | * add tests for caseless close match * update CloseMatch to include a caseless parameter * update CHANGES file
* Fix test issue; update version timeptmcg2021-09-022-6/+11
|
* mypy cleanupptmcg2021-09-025-37/+50
|
* Make static methods staticmethodsptmcg2021-09-021-0/+2
|
* Add note about names and using 3.0 docs for 2.4.7 environments.ptmcg2021-09-021-4/+11
|
* Expand error message when failing to import .diagram in ↵ptmcg2021-09-021-1/+2
| | | | ParserElement.create_diagram()
* Use pyparsing.Opt instead of deprecated Optionalptmcg2021-09-021-1/+1
|
* Fix typoptmcg2021-09-021-1/+1
|
* In 3.7, Callable cannot use NoReturn for a return type, must use Noneptmcg2021-08-231-4/+4
|
* Fix annotations using Iterable, must import and use as IterableType so as ↵ptmcg2021-08-232-6/+7
| | | | not to confuse with collections.abc.Iterable.
* Merge branch 'master' of https://github.com/pyparsing/pyparsingptmcg2021-08-231-12/+16
|\
| * Fix up CONTRIBUTING.md to reflect PEP8 developments, and wiki page updates.Paul McGuire2021-08-211-12/+16
| |
* | Adding type annotationsptmcg2021-08-235-158/+314
|/
* Fix test bugsptmcg2021-08-201-9/+11
|
* Add identchars and identbodychars symbols to make it easier to construct ↵ptmcg2021-08-196-5/+118
| | | | identifiers
* Fix f-string 3.6 compat bug in test_unit.py; rename __versionTime__ to ↵ptmcg2021-08-164-18/+21
| | | | __version_time__; code cleanups
* Additional unit tests for IndentedBlock, with bad indented code and indented ↵ptmcg2021-08-151-0/+25
| | | | code that skips unindent levels
* Fixed bug in QuotedString class when the escaped quote string is not a ↵Paul McGuire2021-08-153-50/+96
| | | | repeated character; reworked regex construction in QuotedString class (Issue #263)
* Add PEP-8 names for initial argsPaul McGuire2021-08-151-8/+14
|
* Fix bug in Located class when used with a results name. (Issue #294)ptmcg2021-08-143-1/+26
|
* Update version timeptmcg2021-08-141-1/+1
|