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

refactor the builder API to avoid symbol table manipulation #103

Merged
merged 7 commits into from
Jun 15, 2024

Conversation

Geal
Copy link
Contributor

@Geal Geal commented Jun 15, 2024

the builder API was using symbol tables internally, which meant that datalog elements were converted too early, and that made the API too complicate. This aligns the builder implementation with the approach use in the rust implementation, where the builder types only contain other builder types, and the conversion with the symbol table is only done when calling the build() method.
This also removes some functions from the public API that could be misused to get invalid symbol tables, and fixes some parser precedence issues

Geal added 7 commits June 15, 2024 17:51
the builder API was using symbol tables internally, which meant that
datalog elements were converted too early, and tat made the API too
complicate. This aligns the builder implementation with the approach use
in the rust implementation, where the builder types only contain other
builder types, and the conversion with the symbol table is only done
when calling the build() method.
This also removes some functions from the public API that could be
misused to get invalid symbol tables
@Geal Geal merged commit ad9f0e8 into master Jun 15, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant