PLC-lang / rusty

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

feat: `TO_<NUM>` library functions #1334

Closed volsa closed 1 month ago

volsa commented 1 month ago

This PR introduces the TO_<NUM> library function. Under the hood any TO_<NUM> function makes use of the already existing and tested <NUM>_TO_<NUM> functions.

Also, I've decided to isolate the TO_<NUM> functions into a separate file instead of appending them to num_conversion.st, to make discoverability and readability easier.