PLC-lang / rusty

Structured Text Parser and LLVM Frontend
GNU Lesser General Public License v3.0
223 stars 53 forks source link

refactor: Make second parameter in ADD / MUL variadic #1312

Closed volsa closed 2 months ago

volsa commented 2 months ago

This commit changes the function signature of the ADD and MUL functions, i.e.

FUNCTION ADD < T1: ANY, T2: ANY >: T1
    VAR_INPUT
        IN1: T1;
-       IN1: T2;
+       IN2: T2...;
    END_VAR
END_FUNCTION

(This should not change the behavior when calling some specific ADD__... function with too many arguments because the validation should catch such cases)