| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
selected examples
|
| |
|
| |
|
|
|
|
| |
to be more tolerant of variations in TypeError str formatting
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
|
|
|
| |
running on PyPy
|
|
|
|
| |
running on PyPy
|
|
|
|
| |
warn_on_parse_using_empty_Forward warns when failing to attach an expression; warn_on_assignment_to_Forward warns when using '=' instead of '<<='
|
|
|
|
|
|
|
| |
* Add .ignoreWhitespace() method
* Add recursive arg to leave- and ignoreWhitespace(), with tests
* Add tests and implementation of the recursive flag
|
|
|
|
|
|
| |
* Add diagram documentation, add more diagram tests, allow more
customization of diagrams
* Remove accidental edit of unrelated documentation
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Basic framework
* Initial effort
* Clean up and document code
* jinja newline
* Pre-commit, and add extras to tox
* We can't use the class type-annotations syntax in Python 3.5
|
|
|
|
|
| |
* Add GoToColumn test
* Update GoToColumn test with ptmcg's feedback
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Expand testQuotedStrings
* Add tests for expr[n] edge cases
* Add ParserElement.ignore(str) test
* Add Regex invalid type test
* Add test for Word with min=0
* Add Char with asKeyword=True test
* Add CharsNotIn tests
* Remove unused __req__ and __rne__
|
|
|
|
|
| |
* Remove unused import & variables in tests
* Remove exploded pyparsing imports
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Expand Keyword unit test
* Add ParserElement add unit tests
* Add ParserElement sub unit tests
* Add ParserElement mul unit tests
* Add ParserElement Match First unit tests
* Add ParserElement Match Longest unit tests
* Add ParserElement Each unit tests
* Refactor and cleanup
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
countedArray (#209)
* Pop counter token and return rest instead of dropping all tokens
* Include only named results from intExpr in countedArray results
* Remove internal Group from countedArray
* Fix operator precedence
* Update countedArray tests
|
|
|
|
| |
results name, even if listAllMatches was set to False (Issue #205)
|
|
|
|
| |
Keyword or CaselessKeyword classes due to the presence of a preceding or trailing keyword character. See issue #201.
|
|
|
|
| |
instance method on ParseBaseException
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add ParseResults.__new__() unit tests
* Add reversed(ParseResults) unit test
* Add ParseResults.values() unit test
* Add ParseResults.append() unit test
* Add ParseResults.clear() unit test
* Add ParseResults.extend() unit tests
* Add ParseResults.from_dict() unit test
* Add dir(ParseResults) unit test
* Add ParseResults.insert() unit test
* Minor clean up
* Fix dependency on dict order-preservation
* Changes to incorporate notes
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add tests for matchPreviousLiteral - question in comments
* Bug fix - matchPreviousLiteral
One line fix for scanString of matchPreviousLiteral with mulitple
return tokens.
Test still needs to be refactored.
* Demo 3 issues in matchPreviousLiteral and matchPreviousExpr
* Correct mistakes and demonstrate potential matchPreviousExpr issue
* Add nestedExpr unit tests
* Add makeXMLTags unit test
* Add unit tests for oneOf with empty list and int input
|
|
|
|
|
|
|
|
|
| |
* Correct docstring typo in helpers.py
* Remove repetitive imports of pyparsing in tests
* Move repetitive pyparsing_common calls to module level ppc
* Correct docstrings inline code typos
|
| |
|
| |
|
|
|
|
| |
statements; remove dead ParseTest class; cleanup testSkipToParserTests test using assertRaisesParseException; fix parsers in pickle compatibility tests, and remove PickleTest_Greeting class as ParseResults wrapper; change test classes created using type() with more explicit class definitions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* add black git hook
* test change
* test instructions, fix instructions
* spelling
* make tox and pre-commit agree on line length
* start guessing what the line length parameter really is
* 80 char line length
* 88?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add unit test for pop with invalid named arg
* Add unit test for setParseAction() with uncallable arg
* Add unit test for __mul__ with negative number
* Add unit test for __mul__ with Ellipsis
* Add unit tests for matchOnlyAtCol
* Add unit tests for convertToDate and converToDatetime
* blacken the new tests
* Add unit test for assertParseAndCheckDict
* Update with feedback from ptmcg
Removed unnecessary imports
Replaced exception prints with ptmcg's assertRaises override
* blacken updates
* Update tests with additional feedback
Change assertRaises(ParseException) to assertRaisesParseException()
Return exception in overrided assertRaises
|
| |
|
| |
|
| |
|
|
|
|
| |
doing `fwd << a | b`; fixed potential FutureWarning when including unescaped '[' in a regex range definition.
|
| |
|
|
|
|
| |
unit test; change TestParseResultsAsserts to mixin instead of subclass; rollforward 2.4.6 CHANGES blurb from 2.4.6 branch
|
|
|
|
| |
minor changes to select_parser
|
| |
|
|
|
|
|
| |
Available since Python 2.4.
https://docs.python.org/3/library/functions.html#classmethod
|
|
|
|
|
| |
Available since Python 2.4.
https://docs.python.org/3/library/functions.html#staticmethod
|
| |
|
|
|
|
| |
replace most resetting() context managers and try-finallys with ppt.reset_pyparsing_context
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|