Closed klauer closed 1 year ago
With #9 I think I'll stick with what I have here, as it parses all Beckhoff PLC code I have. It could be a good reference, so I may leave this open just as a reminder / for further discussion if needed.
Joe added this in the README in #51 - I'll close this now.
OpenPLC's matiec is a working compiler which has a grammar based on flex/yacc https://github.com/thiagoralves/OpenPLC_v3/blob/master/utils/matiec_src/stage1_2/iec_bison.yy
It's similar to the one blark is currently based on, but likely better tested. It may make sense to give porting it a try at some point.