PLC-lang / rusty

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

feat: parse VAR_CONFIG variables #1299

Closed mhasel closed 2 months ago

mhasel commented 2 months ago

Extends the parser to be able to parse VAR_CONFIG blocks. These are added to a new field in the compilation unit for later initialization. A global variable matching the hardware-access naming-scheme will be mangled into the global variables during pre-processing if it does not already exist.