![]() |
lingua-franca 0.10.1
Lingua Franca code generator
|
Generates C code to declare and initialize parameters. More...
Static Public Member Functions | |
| static String | generateDeclarations (TypeParameterizedReactor reactor, CTypes types, boolean suppressLineDirectives) |
| Generate code for parameters variables of a reactor in the form "parameter.type
parameter.name;". | |
| static String | getInitializer (ParameterInstance p) |
| Return a C expression that can be used to initialize the specified parameter instance. | |
Generates C code to declare and initialize parameters.
|
static |
Generate code for parameters variables of a reactor in the form "parameter.type parameter.name;".
| reactor | TypeParameterizedReactor |
| types | A helper class for types |
| suppressLineDirectives | Whether to suppress the generation of line directives. |
|
static |
Return a C expression that can be used to initialize the specified parameter instance.
If the parameter initializer refers to other parameters, then those parameter references are replaced with accesses to the self struct of the parents of those parameters.