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

A much faster parser #179

Open
andreas-zeller opened this issue Dec 17, 2024 · 0 comments
Open

A much faster parser #179

andreas-zeller opened this issue Dec 17, 2024 · 0 comments
Assignees
Labels
prio: medium Medium priority issue

Comments

@andreas-zeller
Copy link
Collaborator

andreas-zeller commented Dec 17, 2024

Make use of the Python built-in parser instead of using our own:

Split the .fan file into three parts:

  1. Grammar rules, identified by ::=
  2. Constraints, identified by ; or a new leading keyword (Introduce constraints by a where keyword #180)
  3. Python code

Then, use the Python parser to parse (2) and (3); use a lightweight parser to parse (1) (or convert (1) into something that can be parsed by Python).

Note:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
prio: medium Medium priority issue
Projects
None yet
Development

No branches or pull requests

2 participants