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

Repeated Variable Declaration in Structure with a Single Structured Data Type Fails to Parse #99

Open engineerjoe440 opened 3 months ago

engineerjoe440 commented 3 months ago

Looks like blark isn't liking "repeated" variable declarations using a structured type. I just added a test case for this on this branch. Hope that I'll get a chance to dig into it a little more very soon!

TYPE somethingCool :
STRUCT
        AlertTimer, SignalBadTimer, QualityBadTimer : library.TPUDO;
END_STRUCT
END_TYPE

ℹ️ Note:

I updated this description and title to reflect that this is specifically related to structures.