lingua-franca 0.10.1
Lingua Franca code generator
Loading...
Searching...
No Matches
org.lflang.generator.c.CMainFunctionGenerator Class Reference

Generate the code that is the entry point of the program. More...

Public Member Functions

 CMainFunctionGenerator (TargetConfig targetConfig, Reactor mainReactor)
String generateCode ()
 Generate the code that is the entry point of the program.
List< Parameter > getCliParameters ()
 Return the list of main reactor parameters that can be overridden from the command line.

Detailed Description

Generate the code that is the entry point of the program.

Constructor & Destructor Documentation

◆ CMainFunctionGenerator()

org.lflang.generator.c.CMainFunctionGenerator.CMainFunctionGenerator ( TargetConfig targetConfig,
Reactor mainReactor )

Member Function Documentation

◆ generateCode()

String org.lflang.generator.c.CMainFunctionGenerator.generateCode ( )

Generate the code that is the entry point of the program.

Ideally, this code would belong to its own main.c file, but it currently lives in the same file as all the code generated for reactors.

◆ getCliParameters()

List< Parameter > org.lflang.generator.c.CMainFunctionGenerator.getCliParameters ( )

Return the list of main reactor parameters that can be overridden from the command line.


The documentation for this class was generated from the following file:
  • /Users/runner/work/lingua-franca/lingua-franca/core/src/main/java/org/lflang/generator/c/CMainFunctionGenerator.java