-
Notifications
You must be signed in to change notification settings - Fork 165
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
labels with same letters but different cases break the compilation on the c backend #479
Comments
This is also a problem in the
Related: |
I suppose we want a warning for labels that clash in case-insensitive mode, and an error for the C and Java backends. |
andreasabel
added a commit
that referenced
this issue
Apr 23, 2024
Java does not suffer case-sensitive labels as each label becomes a class in its own file. Thus, we check this and throw an error. Consequently, test 479_LabelsCaseSensitive is broken for the java backends.
andreasabel
added a commit
that referenced
this issue
Apr 23, 2024
Java does not suffer case-sensitive labels as each label becomes a class in its own file. Thus, we check this and throw an error. Consequently, test 479_LabelsCaseSensitive is broken for the java backends.
andreasabel
added a commit
that referenced
this issue
Apr 28, 2024
Java does not suffer case-sensitive labels as each label becomes a class in its own file. Thus, we check this and throw an error. Consequently, test 479_LabelsCaseSensitive is broken for the java backends.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you have labels with the same letters (like Eexp and EExp), bnfc will check and not accuse an error, but the compilation will fail with an error stating that duplicate members exist.
for instance, the following generate code and compile ok in cpp and haskell, but not in C (didn't test with others):
Apparently the name is forced to be lowercase on the c code, but have the case preserved on the CPP backend.
The text was updated successfully, but these errors were encountered: