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

FIX: Bugfix for expressions in initial array elements #74

Closed klauer closed 1 year ago

klauer commented 1 year ago

Closes #69

This relaxes array initial elements to not just being constants, but general expressions.

codecov-commenter commented 1 year ago

Codecov Report

Merging #74 (54d1830) into master (11d5c30) will increase coverage by 0.1%. The diff coverage is n/a.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/klauer/blark/pull/74/graphs/tree.svg?width=650&height=150&src=pr&token=QZDTKF30TH&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=K+Lauer)](https://app.codecov.io/gh/klauer/blark/pull/74?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=K+Lauer) ```diff @@ Coverage Diff @@ ## master #74 +/- ## ======================================== + Coverage 78.1% 78.2% +0.1% ======================================== Files 26 26 Lines 5339 5339 ======================================== + Hits 4171 4180 +9 + Misses 1168 1159 -9 ``` | [Impacted Files](https://app.codecov.io/gh/klauer/blark/pull/74?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=K+Lauer) | Coverage Δ | | |---|---|---| | [blark/transform.py](https://app.codecov.io/gh/klauer/blark/pull/74?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=K+Lauer#diff-YmxhcmsvdHJhbnNmb3JtLnB5) | `98.9% <ø> (ø)` | | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/klauer/blark/pull/74/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=K+Lauer)