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

Parser rewrite #89

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

Parser rewrite #89

wants to merge 14 commits into from

Conversation

fkleon
Copy link
Owner

@fkleon fkleon commented Feb 1, 2025

Context

Adds a modern grammar-based expression parser. This is opt-in at this stage,
and can be used by instantiating a GrammarParser instead of the legacy
ShuntingYardParser.

The new parser fixes some long-standing issues with expression parsing, but
is still missing a few minor features that were previously supported by the legacy
parser, in particular:

  • Implicit multiplication.
  • Identifier naming is more restrictive, names must start with a letter or $,
    followed by any number of word characters (letter or digit). This is mostly
    relevant for user-provided identifiers (algorithmic functions and variables).

Features and fixes

@fkleon fkleon self-assigned this Feb 1, 2025
@fkleon fkleon linked an issue Feb 1, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant