| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* first draft of LR parsing
* removed debug output
* cache is owned and cleared by ParserElement
* bounded recursion must be enabled explicitly
* packrat rejects recursion
* basic LR unit test
* tests for associativity and nesting
* added math example
* fixed test typo
* unittest for empty and non-peg clauses
* LR-Forward can match Empty
* fixed test typos
* added base case to unittest
* memo cache only provides copies
* flattened Forward parse method
* added high-level description of algorithm
* expanded docstring
* added tests for repetition rules
* renamed bounded to left recursion
* naive test for existing suite
* explicitly testing tests for LR compatibility
* LR memo no longer mixes action/no-action results
* simplified replacement logic
* adjusted example with ambiguous failure case
* LR memo content is always returned as copy
* draft for peeking recursion
* memo update consistent for all actions
* fixed a bug for non-string token identifiers
* action wins against no-action
* cleanup
* properly setting names in tests
* memoization can be turned off
* testing memo switches
* typos
* flattened recursion memo
* left recursion memo size may be limited
* adjusted docs for recursion cache
|
|
|
| |
Found via `codespell -q 3 -L ba,fourty,halp,inout,strng`
|
| |
|
|
|
|
| |
creating railroad diags; changed create_diagram from monkeypatch to included method on ParserElement; better debug exception if Dict is constructed with non-Group expression
|
|
|
|
| |
action, plus aslist and asdict args to Group and Dict classes to emit native Python types instead of ParseResults; also update repr() output of ParseResults to include the type name instead of just a bare tuple.
|
|
|
|
| |
setDebug output to include current text line and parse location
|
|
|
|
| |
enclosed in extra nesting level; results names not maintained; did not handle mix with required expressions)
|
|
|
|
| |
diagnostics to an enum, and add enable_diag(), disable_diag() and enable_all_warnings() methods; clean up pyparsing imports in test_unit.py
|
|
|
|
| |
try/pass/fail events (which were previously omitted from debugging output)
|
| |
|
| |
|
| |
|
|
|
|
| |
tests to improve ParseResults coverage
|
|
|
|
| |
infixNotation tests to meaningful names
|
|
|
|
| |
save/restore to reset_pyparsing_context()
|
| |
|
|
|
|
| |
type in all cases
|
| |
|
|
|
|
| |
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
|
| |
|
| |
|