| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
vendor pyparsing
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
| |
of internal import of re with other RE modules such as regex
|
| |
|
| |
|
|
|
|
| |
#207); deleted duplicated examples (commit *all* changes this time)
|
|
|
|
| |
bigquery_view_parser.py; change some lambdas to explicit methods for clarity (some discussion in #207); deleted duplicated examples
|
|
|
|
| |
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
|
|
|
|
| |
output to break at test comments if any
|
|
|
|
|
|
|
| |
* Tidy docstring formatting for lists and example codeblock
* Add class references and formatting to docstrings
* Experimental docstring formatting changes
|
|
|
|
|
|
|
|
|
| |
This import is currently unused in the file.
I'm looking at optimising start-up times of a project I work on, and
importing pyparsing currently takes about 82ms, which is quite a lot for
my domain. Just not importing `unittest` shaves 14ms off of that import
time.
|
|
|
|
| |
pyparsing_common. Issue #194.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
| |
|
| |
|
|
|
|
| |
with 24-hour time)
|
|
|
|
| |
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
|
|
|
|
| |
_ParseResultsWithOffset, and streamline args for ParseResults.__new__
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* change names of vars
* add `__slots__`
* remove doinit, use `__new__`
* use set, not dict
* black formatting
* shorter names, but keep descriptive names
|
| |
|
|
|
|
| |
some micro-optimizations when using packrat parsing
|
| |
|
| |
|
|
|
|
| |
doing `fwd << a | b`; fixed potential FutureWarning when including unescaped '[' in a regex range definition.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Support whitespace in column identifier
* Support WITH clause nested in UNION clause
* SELECT statements can be surrounded by parenthesis
* Parse quoted table names
* Formatting code with `black`
|
| |
|
|
|
| |
Add Tidelift sponsorship link
|
| |
|
| |
|
|
|
|
| |
unit test; change TestParseResultsAsserts to mixin instead of subclass; rollforward 2.4.6 CHANGES blurb from 2.4.6 branch
|
|
|
| |
The unicode entities in whiteStr were incorrectly defined, leading to an exception when constructing White instances with these entities.
|