This is a simple program made to create code snipets
You can use it now via github pages:
https://thiago099.github.io/thiago-code-preprocessor
Even trough macros are not a good programming practice, they are sometimes useful, this program is a layer that can be used over any language to generate code using macros
All the commands are hoisted (which means the order you define them does not matter).
With that instruction the code until the next instruction will be a output snippet
#output Output Name
Creates a global function in the code
#define myFunction
$variable
You can call your function anywhere by using
@myFunction(parameter1: value1, parameter2: value2)
You can use data to declare an object that can be used by other functions
#data myData(
parameter3: value3,
parameter4: value4
)
Then you can use it like this on a function call
@myFunction(
parameter1: value1,
parameter2: value2,
@myData
)
