boschresearch / blech

Blech is a language for developing reactive, real-time critical embedded software.
Apache License 2.0
72 stars 5 forks source link

modular system for source code #10

Closed mterber closed 3 years ago

mterber commented 4 years ago

Is your feature request related to a problem? Please describe. Today, the entire source code of a Blech program resides in a single *.blc file. This

Describe the solution you'd like I would like to be able to separate my Blech code into different source files and to import / include them if required. Example:

// @file: spi.blc - Everything related to SPI communication.
module spi
activity rxTxBytes(...)
...
end
// @file: rf.blc - Everything related to RF communication.
import spi
...
run spi.rxTxBytes(...)
...
schorg commented 3 years ago

Module system will be released in Version 0.7.0