Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 556 Bytes

File metadata and controls

11 lines (7 loc) · 556 Bytes

Generating C

Shows how to generate C code from a simple DSL. After checking out the project, run ./gradlew setup, then open in MPS.

The MPS version to use can be found in build.gradle.kts. At the time of this writing, it is 2025.1.

Implementation

mbeddr C uses a "top-priority" mapping configuration to look for a BuildConfiguration and generate modules referenced by it. If we want our DSL to be free of these concerns, we have to generate the BuildConfiguration and Module instances in a top-priority configuration as well.