Mathias Rieder
Mathias Rieder
is it fine to mix the two? ```st FUNCTION xxx : DINT VAR_INPUT a : DINT; b : DINT; VAR_END xxx := 0; IF a < 0 THEN RETURN a...
> Good question. > > I would say it should be discouraged to mix them in the same function? As it might be confusing. I don't have a strong opinion...
I think mixing it, adds some potentials for confusion, but it is no show-stopper for me. I'd vote for a low-prio issue that adds a warning to return-statements if users...
What would be a nice way of writing these tests? For me the hard part is, to get a hold of the AST-Elements that you want to check :/ so...
hi @rohanrayan , thx for the issue. so far we implemented a language grammar of iec61131-3 from a version that did not support oop (classes and methods). Implementing OOP support...
sure. I think the issue is somewhere here: https://github.com/PLC-lang/rusty/blob/51efb1efb29147337bc29465f8761b9fdf053c87/src/parser.rs#L1157-L1176 Line 1164 allows a coma separated list of any expression. I think it should only expect a coma separated list of...