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

Generated files (from ANTLR) should be not be checked in #56

Open
jeremyong-az opened this issue Aug 25, 2022 · 3 comments
Open

Generated files (from ANTLR) should be not be checked in #56

jeremyong-az opened this issue Aug 25, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@jeremyong-az
Copy link
Contributor

Using CMake commands such as add_custom_command in conjunction with add_custom_target, it should be relatively straightforward to emit the generated grammar file as part of the build, with the token/bnf files as dependencies. This way, they would not need to be checked in and remove a source of possible error with the source files going out of sync with the generated files. More importantly, this change would make grammar changes easier to review.

@siliconvoodoo
Copy link
Contributor

The original rationale was to allow easier code contribution for devs who haven't installed the JDK.

@jeremyong-az
Copy link
Contributor Author

Yea, that makes sense, but chances are the JDK isn't too steep a requirement for people wanting to build azslc. I think we get more value in the long run with having leaner code reviews. Note that if the generated files are checked in, it's very difficult to verify that the committer is actually checking in the right data (let alone maliciously modifying it).

@siliconvoodoo
Copy link
Contributor

Good points

@siliconvoodoo siliconvoodoo added the enhancement New feature or request label Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants