PLC-lang / rusty

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

Add decoding to section mangler #1205

Open CohenArthur opened 1 month ago

CohenArthur commented 1 month ago

Needs #1198 and #1199, so only review section_mangler/parser.rs and section_mangler/lib.rs

This PR adds the reverse operation to #1160 and #1198, by parsing the mangled section name and deserializing it into an instance of SectionMangler. This allows the loader to compare two mangled section names easily, and to make certain decisions.