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

tools/internal/parser: minor parser cleanups #2021

Merged

Conversation

danderson
Copy link
Contributor

Two cleanup commits: one is a pure code move to extract the fuzzy metadata parsing into its own file, and the other switches to pointers for the output data structures instead of copying and duplicating big structs all over the place.

I'm still working on switching the output to a tree so we can do the fmt and format switching bits, but I should have that ready in the next day or 2.

This avoids a bunch of implicit copying of these somewhat large
types, and generally has less confusing semantics within the parser
and validator.
@danderson danderson changed the title Danderson/psl parser tools/internal/parser: minor parser cleanups Jul 1, 2024
@simon-friedberger simon-friedberger merged commit 75437f2 into publicsuffix:master Jul 1, 2024
1 check passed
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.

2 participants