-
Notifications
You must be signed in to change notification settings - Fork 13
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
Case sensitivity in EXPRESS schema #54
Comments
ISO-10303-11 actually says the following about case sensitivity:
and
As such, restricting any identifiers to lower case goes against the specification. I attempted to change it within the letter parser, but it causes a plethora of unit test failures. I'm still attempting to find out why:
This might be the wrong approach though, as the specification clearly says that we can disregard the case of anything except for string literals. Perhaps we should transform any inputs except string literals to lower case by default. |
I believe I've found the cause of the test failures if mixed case is allowed: For blocks without an END_ tag, such as UNIQUE, the parser swallows the END_ tag of the parent block, because it doesn't know how to differentiate between the end of the UNIQUE block and its contents. For this reason I suggest creating either an I'm currently working on the latter and hope to make a pull request early next week. |
I've started implementing the changes under: https://github.com/g-rauhoeft/ruststep/tree/case-sensitivity-fix Please let me know if you feel this is going in the right direction. I haven't created a pull request yet, because some test cases still fail, but a vast majority are successful. |
This looks true.
I agree. We should accept non-lower case identifiers.
Detecting reserved keyword in
The |
As far as I read ISO-10303-11, user defined identifiers should be snake_case, but some identifier copied into
schema/
does contains non snake_case identifier likedegree_Celsius
The text was updated successfully, but these errors were encountered: