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 `method_statement` from grammar #61

Closed klauer closed 1 year ago

klauer commented 1 year ago

Looks like it's time to get rid of method_statement entirely.

function_call_statement (using function_call) handles everything it does and more, so having both just makes for ambiguity in the grammar.

_Originally posted by @klauer in https://github.com/klauer/blark/pull/59#discussion_r1164761928_

Checklist:

engineerjoe440 commented 1 year ago

I actually had some questions about this, so this makes a lot of sense to me. Thank you for your attention to detail, here! :tada: