Skip to content

feat: parser sourcegen #4

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

Merged
merged 24 commits into from
Sep 15, 2023
Merged

feat: parser sourcegen #4

merged 24 commits into from
Sep 15, 2023

Conversation

psteinroe
Copy link
Collaborator

@psteinroe psteinroe commented Jul 28, 2023

What kind of change does this PR introduce?

Adds source code generation for the parser crate.

utility crates are added:

  • pg_query_proto_parser parses the pg_query proto file and exposes methods to read its contents in a simplified manner
  • codegen implements procedural macros from the libpg_query proto definition

also adds a bunch of example sql files to test the parser.

What is the current behavior?

Everything is hand-written, and / or incomplete.

What is the new behavior?

Everything that can be generated, is generated. The proto from libg_query is parsed, and based on its content, several enums and functions are generated.

psteinroe and others added 22 commits July 28, 2023 16:16

Verified

This commit was signed with the committer’s verified signature.
- token type is now manual
- added sibling token to control opening / closing tokens

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

Verified

This commit was signed with the committer’s verified signature.

Verified

This commit was signed with the committer’s verified signature.

Verified

This commit was signed with the committer’s verified signature.

Verified

This commit was signed with the committer’s verified signature.

Verified

This commit was signed with the committer’s verified signature.

Verified

This commit was signed with the committer’s verified signature.
@psteinroe psteinroe marked this pull request as ready for review September 12, 2023 16:55
@psteinroe psteinroe merged commit a33eeb3 into main Sep 15, 2023
This was referenced Sep 15, 2023
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.

None yet

2 participants