You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.\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.
The text was updated successfully, but these errors were encountered: