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

Remove unused grammar rules #18

Closed klauer closed 2 years ago

klauer commented 2 years ago

Program configuration settings (with VAR_ACCESS), and some others aren't actually valid for TwinCAT 3-flavor IEC61131-3.

Probably those that do not have a set of transformer dataclasses defined yet can be removed - or at least set aside - for the time being.

klauer commented 2 years ago

I had erroneously assumed instruction lists and SFCs would be in text. Looks to be not the case. I jumped forward and added support, even with tests + transformer dataclasses.

I think I'll remove these for now to speed up processing of the general case. I'd be happy to re-add these if/when I find something in the wild that uses it (or if anyone can point one out).