Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add support for LR parsingleft_recursion_support | Max Fischer | 2021-07-30 | 5 | -23/+409 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 | ||||
* | Remove old language stating that parseString returns "a list of matched ↵ | ptmcg | 2021-05-14 | 2 | -4/+35 |
| | | | | strings", and clarify use of the returned ParseResults | ||||
* | Fix misc. documentation typos (#280) | luzpaz | 2021-05-14 | 15 | -40/+40 |
| | | | Found via `codespell -q 3 -L ba,fourty,halp,inout,strng` | ||||
* | Remove setuptools import fallback to distutils.core (distutils.core use not ↵ | ptmcg | 2021-04-13 | 1 | -4/+1 |
| | | | | recommended) | ||||
* | #261 - fix table name in sql2dot.py example | ptmcg | 2021-04-13 | 2 | -2/+5 |
| | |||||
* | #271 - remove comparison with bytes in ParseResults._null_values | ptmcg | 2021-04-13 | 2 | -1/+8 |
| | |||||
* | Update README.rst (#269) | TheOneMusic | 2021-04-11 | 1 | -10/+9 |
| | |||||
* | Update core.py (#259) | retsyo | 2021-01-03 | 1 | -1/+1 |
| | | | since `pip install railroad` installs anthor package, I think it is better to point out the corrected one. | ||||
* | Update whats_new_in_3_0_0.rst (#258) | retsyo | 2021-01-03 | 1 | -1/+2 |
| | | | since `pip install railroad` install anthor package, I think it is better to point out the corrected one. | ||||
* | Cleanup old file names and tests/__pycache__ files from MANIFEST.inpyparsing_3.0.0b2 | ptmcg | 2020-12-30 | 1 | -3/+2 |
| | |||||
* | Update CHANGES file with version release dates | ptmcg | 2020-12-30 | 1 | -4/+4 |
| | |||||
* | Fix minor typos and add Located to `__all__` list | ptmcg | 2020-12-29 | 1 | -1/+2 |
| | |||||
* | Add Python 3.9 support (#256) | Miroslav Šedivý | 2020-12-27 | 3 | -1/+4 |
| | |||||
* | Deprecate `locatedExpr` in favor of new `Located` class | ptmcg | 2020-12-24 | 5 | -8/+141 |
| | |||||
* | Hide internal null_values list in ParseResults class | ptmcg | 2020-12-24 | 1 | -2/+2 |
| | |||||
* | Move OnlyOnce out of core.py and into actions.py | ptmcg | 2020-12-24 | 2 | -22/+23 |
| | |||||
* | Update version for next dev phase | ptmcg | 2020-12-24 | 1 | -2/+2 |
| | |||||
* | Add IndentedBlock class; made vertical keyword arg more visible when ↵pyparsing_3.0.0b1 | ptmcg | 2020-11-02 | 11 | -68/+302 |
| | | | | creating railroad diags; changed create_diagram from monkeypatch to included method on ParserElement; better debug exception if Dict is constructed with non-Group expression | ||||
* | Add number_words.py example; update diagramming code | ptmcg | 2020-10-25 | 2 | -3/+105 |
| | |||||
* | minor perf changes II | ptmcg | 2020-10-25 | 3 | -10/+14 |
| | |||||
* | minor perf changes | ptmcg | 2020-10-25 | 2 | -19/+14 |
| | |||||
* | Remove py39-dev from Travis-CI | ptmcg | 2020-10-25 | 2 | -3/+1 |
| | |||||
* | Remove black from tox.ini, Travis CI black is not aligned with local black; ↵ | ptmcg | 2020-10-25 | 1 | -2/+2 |
| | | | | add py39-dev version - this time I mean it! | ||||
* | Remove black from tox.ini, Travis CI black is not aligned with local black; ↵ | ptmcg | 2020-10-25 | 2 | -6/+2 |
| | | | | add py39-dev version | ||||
* | ParseResults.List class to support returning an actual list from a parse ↵ | ptmcg | 2020-10-24 | 6 | -562/+568 |
| | | | | 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. | ||||
* | There will be black | Paul McGuire | 2020-10-11 | 1 | -1/+1 |
| | |||||
* | test_bibparse includes parsed strings with leading space, no longer included ↵ | Paul McGuire | 2020-10-11 | 1 | -28/+29 |
| | | | | in output | ||||
* | Issue #244, fixed debug output to indicate correct parse location; updated ↵ | Paul McGuire | 2020-10-11 | 4 | -32/+129 |
| | | | | setDebug output to include current text line and parse location | ||||
* | Updated HowToUsePyparsing.rst and whats_new_in_3_0_0.rst docs | Paul McGuire | 2020-10-11 | 2 | -28/+25 |
| | |||||
* | Exclude /examples from black in tox, since examples are now inexplicably ↵ | ptmcg | 2020-10-11 | 1 | -1/+1 |
| | | | | failing black formatting | ||||
* | Fixed bugs in Each with ZeroOrMore and OneOrMore (first matched element ↵ | ptmcg | 2020-10-11 | 3 | -8/+56 |
| | | | | enclosed in extra nesting level; results names not maintained; did not handle mix with required expressions) | ||||
* | Fix enum auto() incompat with Py3.5 | Paul McGuire | 2020-08-19 | 2 | -11/+11 |
| | |||||
* | Convert SyntaxWarnings to ValueError and TypeError exceptions; change ↵ | Paul McGuire | 2020-08-19 | 5 | -570/+436 |
| | | | | diagnostics to an enum, and add enable_diag(), disable_diag() and enable_all_warnings() methods; clean up pyparsing imports in test_unit.py | ||||
* | Second markup cleanup pass | Paul McGuire | 2020-08-19 | 1 | -6/+6 |
| | |||||
* | Update HowToUsePyparsing.rst to include diagnostics, and general markup cleanup | Paul McGuire | 2020-08-19 | 1 | -49/+103 |
| | |||||
* | Add __version_info__ module attribute, similar in content and structure to ↵ | Paul McGuire | 2020-08-19 | 2 | -3/+21 |
| | | | | sys.version_info | ||||
* | Add '*' markers to debug output to indicate cached parse expression ↵ | ptmcg | 2020-08-18 | 3 | -16/+133 |
| | | | | try/pass/fail events (which were previously omitted from debugging output) | ||||
* | Add lookahead on matching identifiers to ensure we aren't matching a keyword | ptmcg | 2020-08-17 | 1 | -1/+10 |
| | |||||
* | Follow-up to PR #233 | ptmcg | 2020-08-16 | 2 | -4/+4 |
| | |||||
* | Remove identChars override from Keyword.copy (#233) | jgrey4296 | 2020-08-16 | 2 | -1/+5 |
| | |||||
* | Update lua_parser.py example to include associative arrays and more complete ↵ | ptmcg | 2020-08-16 | 1 | -22/+47 |
| | | | | infix notation operators | ||||
* | Better display of single-character Words | Paul McGuire | 2020-07-30 | 2 | -1/+8 |
| | |||||
* | Add size spec to default Word repr output | Paul McGuire | 2020-07-30 | 3 | -14/+50 |
| | |||||
* | Nicer default name for QuotedStrings; clean out more Py2 vestigial code | ptmcg | 2020-07-19 | 2 | -9/+6 |
| | |||||
* | Replace last-century '%' string interp with .format() usage | Paul McGuire | 2020-07-19 | 4 | -70/+85 |
| | |||||
* | Fixing generated default name for QuotedString (#229) | Joshua Coales | 2020-07-19 | 1 | -1/+1 |
| | | | Looks like an issue in changing the type of string format used | ||||
* | Docstring fixes; cleanup dead/Py2 vestigial code | ptmcg | 2020-07-10 | 3 | -16/+5 |
| | |||||
* | Docstrings cleanup; add 'encoding' argument to parseFile; additional unit ↵ | ptmcg | 2020-07-08 | 5 | -141/+199 |
| | | | | tests to improve ParseResults coverage | ||||
* | The metod getTokensEndLoc no longer exists (#228) | Juan VM | 2020-07-08 | 1 | -3/+0 |
| | | | The metod getTokensEndLoc no longer exists | ||||
* | infixNotation unit tests require infixNotation bug fixes! | ptmcg | 2020-07-07 | 1 | -14/+11 |
| |