klauer / blark

Beckhoff TwinCAT ST (IEC 61131-3) code parsing in Python using Lark (Earley)
https://klauer.github.io/blark/
GNU General Public License v2.0
42 stars 5 forks source link

Enhancement/support recursive pointer to #33

Closed engineerjoe440 closed 2 years ago

engineerjoe440 commented 2 years ago

Changes:

Linked Issues:

Reason for Draft State:

The content here is failing pytest due to a failure (on my part) to implement from_lark to allow multiple token arguments. I'm sure it's something little that I'm overlooking, but I'm completely missing it.

Closing Thoughts:

I'm sure there are some cleaner ways of implementing what I've added, and I could very well be misinterpreting some of the dataclass structure, so please let me know if I've missed anything. Thank you!

engineerjoe440 commented 2 years ago

OK! :tada:

I've made an update that I think should do everything we're hoping for here. May not be "the best" (will look to you for guidance if there's anything I should modify).

engineerjoe440 commented 2 years ago

Should be ready for your re-review! :smile:

Thank you!