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

Checksum in generated code #116

Open
albert-github opened this issue Nov 3, 2019 · 0 comments
Open

Checksum in generated code #116

albert-github opened this issue Nov 3, 2019 · 0 comments

Comments

@albert-github
Copy link
Contributor

In the generated code there is a line with the md5 checksum at the end of the file (like: /* JavaCC - OriginalChecksum=5361b31ac6530c6c23511012deb15394 (do not edit this line) */) based on the file contents, though this checksum is (as far as I can see) depending on the platform where the file is generated. There is a difference between Window and *nix due to the \r\n versus \n line ending.

  • is there an option to have JavaCC generate platform independent checksums?
  • or otherwise can JavaCC itself always generate the checksum based only on the \n line ending?

The problem is relevant for projects that besides the original code (.jj files) also have to store the generated code (.cc, *.h) in a repository This is necessary so also people without JavaCC can use the product / repository and compile the code. For developers on different platforms the problem is that each time the files are generated on not the original platform a different file exists and this is merged into the repository.

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

No branches or pull requests

1 participant