-
Notifications
You must be signed in to change notification settings - Fork 5
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
Bugfix/Enhancement: Add Support of bit_string_literal
in CASE Statements
#35
Bugfix/Enhancement: Add Support of bit_string_literal
in CASE Statements
#35
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor thing. Thanks for catching this and the fix!
This still may be better enhanced by including boolean_literal, but I'm not quite sure of that.
If Codesys/TwinCAT allow for it, blark should support it - that's my take as you know. It'd be weird to use a CASE
statement when an IF
statement is sufficient for a boolean check, but it wouldn't surprise me if it were valid given the other things in the language...
I think this should be ready for another pass at your leisure. 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @engineerjoe440!
Thanks @klauer, should be ready with the new test! |
GitHub won't let me give bonus points for extra effort - so an emoji will have to suffice: 🎉 Thanks! |
Changes:
bit_string_literal
to list ofcase_list_elements
BYTE#...
Issues Addressed:
BYTE#
literals not properly handled inCASE
statement #34Closing Thoughts:
This still may be better enhanced by including
boolean_literal
, but I'm not quite sure of that.