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

Enhancements and Fixes Found While Testing Code Base #36

Conversation

engineerjoe440
Copy link
Collaborator

I've found a number of little things that were causing some trouble while I was testing this project against a number of 61131 repositories, I've made a bunch of smaller, incremental branches for each stage of work, so if you'd prefer going through one at a time, let me know!

Changes:

  • Add Support of VAR_EXTERNAL in Functions.
  • Allow DateTimes to exclude seconds/fractional-seconds (both appear to be legal options for 61131).
  • Support Arrays of FunctionBlocks that use an FB_init inline. example
  • Allow "Stray" semicolons that would otherwise have no effect.
  • Allow Namespaced (dotted) access to structures in declaration when setting a default. example
  • Separate Global Variable Attributes to allow inclusion of "INTERNAL".
  • Allow function call with empty arguments. example

Closing Thoughts:

Please do let me know if you'd rather take a piecemeal approach to this, I've still got all of the branches, and we can work each one in separately. If there's anything that I've missed (clearly I've done that a time or two before), please let me know! I'm happy to get this all cleaned up.

I'm finding this project very useful, thank you!

@klauer
Copy link
Owner

klauer commented May 19, 2022

I haven't forgotten about this - it's still on my TODO list. To your question, I'm OK with bunching these changes into one PR.

Hope to get back to you soon, and thanks! 👍

@engineerjoe440
Copy link
Collaborator Author

Don't worry about it! Heh! I wouldn't have been able to do anything this week if you asked for changes, anyway! Thank you!

Copy link
Owner

@klauer klauer left a comment

Choose a reason for hiding this comment

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

You found a lot of good things to fix here!

A few things to fix up before merging are mixed in my comments above. Let me know if any of them were unclear.

blark/iec.lark Show resolved Hide resolved
blark/iec.lark Show resolved Hide resolved
blark/iec.lark Show resolved Hide resolved
blark/iec.lark Show resolved Hide resolved
blark/iec.lark Show resolved Hide resolved
blark/transform.py Outdated Show resolved Hide resolved
blark/iec.lark Show resolved Hide resolved
Copy link
Owner

@klauer klauer left a comment

Choose a reason for hiding this comment

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

Thank you, @engineerjoe440!

I think another tag will be in order soon with all of these nice fixes.

@klauer klauer merged commit ad9759f into klauer:master May 25, 2022
@engineerjoe440 engineerjoe440 deleted the enhancement/allow-optional-seconds-in-datetime branch May 25, 2022 19:20
@engineerjoe440
Copy link
Collaborator Author

Woo-Hoo!!! Thank you @klauer !!!!! 🎉

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.

3 participants