| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
|
|
|
| |
whats_new_in_3_0_0.rst, and reformat CloseMatch change blurb in CHANGES
|
| |
|
|
|
|
| |
identifiers
|
| |
|
| |
|
|
|
| |
Looks like these got over-zealously corrected to the new versions.
|
|
|
|
| |
legacy names
|
| |
|
| |
|
| |
|
|
|
|
| |
travis-ci.com instead of .org
|
|
|
|
| |
other pyparsing names (left in enable_left_recursion synonym as omen of names to come); added notes to CHANGES and whats_new_in_3_0_0.rst; added left_recursion.py to examples.
|
|
|
|
| |
strings", and clarify use of the returned ParseResults
|
|
|
| |
Found via `codespell -q 3 -L ba,fourty,halp,inout,strng`
|
|
|
| |
since `pip install railroad` install anthor package, I think it is better to point out the corrected one.
|
| |
|
|
|
|
| |
creating railroad diags; changed create_diagram from monkeypatch to included method on ParserElement; better debug exception if Dict is constructed with non-Group expression
|
| |
|
|
|
|
| |
diagnostics to an enum, and add enable_diag(), disable_diag() and enable_all_warnings() methods; clean up pyparsing imports in test_unit.py
|
| |
|
| |
|
|
|
| |
The metod getTokensEndLoc no longer exists
|
| |
|
| |
|
|
|
|
| |
whats_new_in_3_0_0.rst; cleaned up docstrings, Word() examples, restored setName() docstring; added example to ParseException.explain()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add diagram documentation, add more diagram tests, allow more
customization of diagrams
* Remove accidental edit of unrelated documentation
* Add diagram package
* Add jinja file to manifest
* Add to bdist also
* package_data
* Railroad improvements
* Partial rewrite
* Update
* Use partials everywhere so we can edit the tree before it's constructed
* Rewrite the diagram generator to not duplicate any content; use
monospaced font for titles
* Small documentation change
* Revert back to Python 3.5 type hints, fix a small bug
* More diagram fixes
* Even more pruning; update docs to use SQL example
* Don't check the string value of names now that we don't have to
|
|
|
|
|
|
| |
* Add diagram documentation, add more diagram tests, allow more
customization of diagrams
* Remove accidental edit of unrelated documentation
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
The pyupgrade project is available at
https://github.com/asottile/pyupgrade and can be installed through pip.
The pyupgrade tool automatically upgrades syntax for newer versions of
the language. As pyparsing is now Python 3 only, can apply some cleanups
and simplifications. Ran the tool using the following command:
$ find . -name \*.py -exec pyupgrade --py3-plus {} \;
For now, pyparsing.py was skipped while it is refactored to a package.
|
|
|
| |
Thanks, and nice catch on the except statement too!
|
| |
|
| |
|
|
|
|
| |
clearer
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The psyco package has been declared umaintained and dead. It is no
longer receiving bug fixes including for security issues. From
http://psyco.sourceforge.net/
> 12 March 2012
>
> Psyco is unmaintained and dead. Please look at PyPy for the
> state-of-the-art in JIT compilers for Python.
Avoid recommending the use of an unmaintained package (since 2012).
Users can continue to use PyPy for the latest and greatest in Python
JIT.
|
|
|
|
|
|
| |
Many editors clean up trailing white space on save. By removing it all
in one go, it helps keep future diffs cleaner by avoiding spurious white
space changes on unrelated lines.
|
| |
|
| |
|
| |
|
|
There are still many bugs in the documentation strings, but at least
genration of documentaiton works.
|