Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Better formatting in range_check.py example, and added to test_examples.pyHEADmaster | ptmcg | 2023-05-06 | 1 | -23/+70 |
| | |||||
* | Updated several examples to latest method names | ptmcg | 2023-05-04 | 14 | -574/+556 |
| | |||||
* | Some format cleanup in unicode_denormalizer.py; handle uppercase ligatures; ↵ | ptmcg | 2023-04-18 | 1 | -30/+49 |
| | | | | add a few more comments and helpful variable names | ||||
* | Add some helpful comments to the unicode_denormalizer.py example script | ptmcg | 2023-04-18 | 1 | -13/+18 |
| | |||||
* | Add some helpful comments to the unicode_denormalizer.py example script | ptmcg | 2023-04-18 | 1 | -7/+21 |
| | |||||
* | More PEP8 and modern Python styling | ptmcg | 2023-04-05 | 1 | -112/+112 |
| | |||||
* | Update adventureEngine example, add EXAMINE command, create diagram | ptmcg | 2023-04-05 | 1 | -6/+40 |
| | |||||
* | Update some examples to latest pyparsing style, PEP8 names | ptmcg | 2023-04-01 | 17 | -228/+222 |
| | |||||
* | verilogParse.py code update: convert str literals to Keywords; add ↵ | ptmcg | 2023-03-29 | 1 | -299/+273 |
| | | | | using_each to define multiple related Keywords; used f-string instead of str addition to build up identifier1 expr; merged alternative Regex exprs to single Regex in udpInitVal; change setName to set_name throughout; ZeroOrMore and OneOrMore to [...] and [1, ...] throughout; convert most Optional(expr) to (expr | ""); add ParseException.explain() to test() function | ||||
* | Update lucene_grammar.py example, fix * and ? wildcards, and corrected some ↵ | ptmcg | 2023-03-25 | 1 | -30/+52 |
| | | | | tests. Addresses #455 | ||||
* | Update and rename invRegex.py to inv_regex.py (#461) | Ross J. Duff, MSc | 2023-01-22 | 1 | -66/+64 |
| | | | PEP8 update of invRegex example | ||||
* | Used keyword var in lucene_grammar.py (#454) | Elijah Nicol | 2022-12-13 | 1 | -1/+2 |
| | | | * Added usage of keyword variable | ||||
* | Added set_name calls to make diagramming clearer | ptmcg | 2022-12-11 | 1 | -8/+8 |
| | |||||
* | Remove sparser.py and pymicko.py examples (GPL license) - fixes #440 | ptmcg | 2022-08-22 | 3 | -2116/+0 |
| | |||||
* | Add delta_time, excelExpr, and rosettacode to test_examples.py | ptmcg | 2022-07-12 | 3 | -71/+59 |
| | |||||
* | Add booleansearchparser.py to test_examples for inclusion in pytest runs | ptmcg | 2022-07-09 | 1 | -79/+23 |
| | |||||
* | Minor changes in verilogParse.py - remove unused timing vars, change ↵ | ptmcg | 2022-06-24 | 1 | -4/+3 |
| | | | | time.time() to time.perf_counter() | ||||
* | Enable packrat in verilogParse.py by default | ptmcg | 2022-06-17 | 1 | -2/+2 |
| | |||||
* | Fixed bug in srange (escaped chars inside range set); fixed ignore type ↵ | ptmcg | 2022-05-14 | 1 | -1/+4 |
| | | | | annotation in SkipTo | ||||
* | Back out Lox language parser (from Crafting Interpreters, by Robert Nystrom)pyparsing_3.0.9 | ptmcg | 2022-05-10 | 1 | -220/+0 |
| | |||||
* | Added Lox language parser (from Crafting Interpreters, by Robert Nystrom) | ptmcg | 2022-05-08 | 2 | -2911/+220 |
| | |||||
* | Added Lox language parser (from Crafting Interpreters, by Robert Nystrom) | ptmcg | 2022-05-08 | 1 | -0/+2911 |
| | |||||
* | Added test case to bigquery_view_parser.py from #291 | ptmcg | 2022-04-30 | 1 | -0/+6 |
| | |||||
* | Added another test case to bigquery_view_parser.py | ptmcg | 2022-04-30 | 1 | -0/+24 |
| | |||||
* | Fixed bigquery_view_parser.py example to parse examples from ↵ | ptmcg | 2022-04-30 | 1 | -88/+260 |
| | | | | https://cloud.google.com/bigquery/docs/reference/legacy-sql | ||||
* | Add unicode_denormalizer.py to examples. | ptmcg | 2022-03-29 | 1 | -0/+123 |
| | |||||
* | Fixing Unicode block range in examples/booleansearchparser.py (#342) | tc-yu | 2021-12-15 | 1 | -25/+59 |
| | | | | | * Updated range for unicode blocks, updated add char logic to include last character in each block, update some function names * Test case for CJK block and last character in block | ||||
* | Added sys.setrecursionlimit for complex query strings; general reformatting | Paul McGuire | 2021-11-13 | 1 | -370/+126 |
| | |||||
* | Revert strict LineStart interpretation in 3.0.0 to 2.4.x behavior (Issue #317) | ptmcg | 2021-10-26 | 1 | -4/+4 |
| | |||||
* | Fix type annotation for ranges in unicode_sets; make _get_chars_for_ranges a ↵ | ptmcg | 2021-09-27 | 1 | -2/+2 |
| | | | | lazyclassproperty | ||||
* | Fix type annotation for ranges in unicode_sets; make _get_chars_for_ranges a ↵ | ptmcg | 2021-09-27 | 1 | -31/+43 |
| | | | | lazyclassproperty | ||||
* | Add numbers and punctuation to Cuneiform class | ptmcg | 2021-09-25 | 1 | -0/+1 |
| | |||||
* | Some tweaks to cuneiform_python.py | ptmcg | 2021-09-24 | 1 | -2/+4 |
| | |||||
* | Add cuneiform_python.py example | ptmcg | 2021-09-23 | 1 | -0/+101 |
| | |||||
* | Add pyparsing_common.url to urlExtractorNew.py | ptmcg | 2021-09-11 | 1 | -7/+49 |
| | |||||
* | Update eval_arith.py to have better representation of true and false eval ↵ | ptmcg | 2021-09-08 | 1 | -2/+4 |
| | | | | expressions | ||||
* | Reformat code for railroad_diagram_demo.py | ptmcg | 2021-09-08 | 1 | -6/+22 |
| | |||||
* | 226 railroad updates (#298) | Paul McGuire | 2021-09-08 | 8 | -52/+85 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 | ||||
* | Clean up number word parsers for better explanatory value. | ptmcg | 2021-08-09 | 2 | -45/+73 |
| | |||||
* | Add simplified 1-99 example, extracted from number_words.py | Paul McGuire | 2021-08-08 | 1 | -0/+72 |
| | |||||
* | Minor code cleanups | ptmcg | 2021-08-07 | 1 | -37/+7 |
| | |||||
* | Update __versionTime__; blacken core code and examples | ptmcg | 2021-08-01 | 17 | -177/+491 |
| | |||||
* | Rename enable_left_recursion to enableLeftRecursion for consistency with ↵ | ptmcg | 2021-08-01 | 1 | -0/+45 |
| | | | | 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. | ||||
* | Fix misc. documentation typos (#280) | luzpaz | 2021-05-14 | 8 | -22/+22 |
| | | | Found via `codespell -q 3 -L ba,fourty,halp,inout,strng` | ||||
* | #261 - fix table name in sql2dot.py example | ptmcg | 2021-04-13 | 1 | -1/+1 |
| | |||||
* | Add IndentedBlock class; made vertical keyword arg more visible when ↵pyparsing_3.0.0b1 | ptmcg | 2020-11-02 | 4 | -19/+83 |
| | | | | 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 | 1 | -0/+89 |
| | |||||
* | ParseResults.List class to support returning an actual list from a parse ↵ | ptmcg | 2020-10-24 | 1 | -13/+51 |
| | | | | 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 |