Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a new example showcasing a recursive parser for parsing advance… #549

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Commits on Mar 8, 2024

  1. Added a new example showcasing a recursive parser for parsing advance…

    …d mathematical expressions in infix notation.
    
    The parser supports binary, unary, and variadic operators that can be customized by modifying the class variables.
    It therefore goes way beyond any existing examples for artithmetic expression parsers. It also
    showcases how regex can be utilized to improve the performance of a parser written utilzing pyparsing.
    
    I wrote this parser for another project, where it was needed. I could not find a ready-made parser for my purposes in the
    examples, or the web in general. Therefore, I am making this pull request in hopes it gets accepted and hopefully lessens
    the burden of some other future user, who might have a similar need for a parser as I did. I left comments in the code that I made
    for myself when learning the library. I believe they add to the example, and therefore left them there.
    gialmisi committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    f060060 View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2024

  1. Configuration menu
    Copy the full SHA
    0f21d88 View commit details
    Browse the repository at this point in the history
  2. Fixes to infix_math_parser.py.

    Implemented minor fixes to infix_math_parser.py based on comments by @ptmcg.
    gialmisi committed Mar 11, 2024
    Configuration menu
    Copy the full SHA
    5449290 View commit details
    Browse the repository at this point in the history