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

Change SET references to SET0 #3

Merged
merged 1 commit into from
Feb 11, 2025
Merged

Change SET references to SET0 #3

merged 1 commit into from
Feb 11, 2025

Conversation

volsa
Copy link
Member

@volsa volsa commented Feb 7, 2025

Now that we introduced the PROPERTY language feature in the compiler, SET will be identified as a reserved keyword. Hence, using set as a variable name will result in compiler errors.

Now that we introduced the PROPERTY language feature in the compiler, SET will be
identified as a reserved keyword. Hence, using set as a variable name will result
in compiler errors.
@@ -530,7 +530,7 @@ VAR_INPUT (* CONSTANT *)
Timeout : TIME;
END_VAR
VAR_INPUT
SET : BOOL;
SET0 : BOOL;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change and should be documented as such in the readme.
Additionally, SET is not a keyword in CodeSys and we should allow it in identifiers, but that probably requires quite a few changes and we can come back to it later

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, good catch! I'll merge this and revert these changes once we fixed it on the compiler side as discussed yesterday. Here's the relevant issue PLC-lang/rusty#1408 to keep track of it

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We still need to update the list of breaking changes in the readme (in this repo, not in RuSTy)

@volsa volsa merged commit dccaef4 into main Feb 11, 2025
@volsa volsa deleted the volsa/set branch February 11, 2025 08:53
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

Successfully merging this pull request may close these issues.

2 participants