blark icon indicating copy to clipboard operation
blark copied to clipboard

Beckhoff TwinCAT ST (IEC 61131-3) code parsing in Python using Lark (Earley)

Results 7 blark issues
Sort by recently updated
recently updated
newest added

Looks like `blark` isn't liking "repeated" variable declarations using a structured type. I just added a test case for this on [this branch](https://github.com/klauer/blark/tree/repeated-structured-type-declaration-fails-to-parse). Hope that I'll get a chance to...

bug
grammar

Wondering if this is something you considered including or thing you'd be willing to accept? Asking here first before I fork or push a diff up, as I have a...

I'm considering making apischema a non-optional requirement. For those that are unaware, it's what allows blark to easily (de)serialize parsed code to/from JSON directly from the `blark.transform` dataclasses. It's currently...

- [x] Add sphinx (or mkdocs would be fine too) documentation to the repository - [x] Document the blark API (automatically) - [ ] Document the blark CLI entrypoint -...

The sphinx domain allows for generating PLC project API documentation directly from the source code. Currently, it's pretty limited - the proof-of-concept from #12 is now in master. A simple...

sphinx

https://www.beckhoff.com/en-us/products/automation/twincat/twincat-3-build-4026/ Some relevant ones might include: > keyword: ABSTRACT for abstract function block/method/property definition > ENUMs available as strings in the PLC > exception handling via TRY-CATCH > conditional compilation...

grammar

The examples are old ones carried forward from iec2xml and don't really represent what blark can do nowadays. I'd like to add: * Better PLC code examples * Examples on...