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

cmake: rewrite grammar generation #2540

Merged
merged 1 commit into from
Dec 4, 2023
Merged

Conversation

Riolku
Copy link
Collaborator

@Riolku Riolku commented Dec 4, 2023

The script to generate our grammar files is now written in CMake's scripting language, and as such is cross-platform. Additionally, the script is run as part of the build. We commit a copy of the Cypher.g4 file so that Java is not a build dependency of Kuzu: specifically, if the grammar has not changed, the generation command will do nothing.

Additionally, a sanity check that the generated files are up to date has been added to CI.

The script to generate our grammar files is now written in CMake's
scripting language, and as such is cross-platform. Additionally, the
script is run as part of the build. We commit a copy of the Cypher.g4
file so that Java is not a build dependency of Kuzu: specifically, if
the grammar has not changed, the generation command will do nothing.

Additionally, a sanity check that the generated files are up to date has
been added to CI.
Copy link

codecov bot commented Dec 4, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9b69690) 91.56% compared to head (491b772) 92.86%.
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2540      +/-   ##
==========================================
+ Coverage   91.56%   92.86%   +1.29%     
==========================================
  Files        1029     1025       -4     
  Lines       38059    38342     +283     
==========================================
+ Hits        34849    35605     +756     
+ Misses       3210     2737     -473     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Riolku Riolku merged commit 97b78f8 into master Dec 4, 2023
14 checks passed
@Riolku Riolku deleted the cmake-grammar-generation branch December 4, 2023 15:56
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