PLC-lang / rusty

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

feat: Introduce `TO_<NUM>` functions #1338

Closed volsa closed 1 month ago

volsa commented 1 month ago

This commit introduces the TO_<NUM> library functions, which make use of the already existing and tested <NUM>_TO_<NUM> library functions.

Note: Functions for string, bit / byte datatypes (BIT, BOOL, BYTE, WORD, DWORD, LWORD) and date / time (TIME, LTIME, DATE, LDATE, DT, LDT, TOD, LTOD) will be handled in another PR.

mhasel commented 1 month ago

One more thought about the python scripts - the stdlib headers is something we deliver, so I'm still not sure if we want to keep these together in the same folder. I'm fine with keeping them in our sources, but honestly I'd prefer them to be in a separate location. It feels more like an internal dev-tool than something we should/want to include in our stdlib package.

You can merge this commit as it is now, we can discuss this further and move the files in another commit if necessary.