Seeking help

21 views
Skip to first unread message

Arian Dev

unread,
Sep 22, 2025, 7:04:58 AMSep 22
to mbeddr-discuss
Moin,

I am trying to create a DSL in MPS that gets generated to C code.

I already have set up a small example language and now want to write a simple generator that (for now) just needs to take some of the parameters from some of my custom concepts and write them to a .h file. I don't want to use TextGen - although it would be sufficient for this - because later on I want to generate more complex code.

I installed mbeddr all-plugins.zip into my MPS 2018.2.6 installation and can see the dependencies in the MPS IDE, but this is kind of where I am stuck.
The tutorials I found so far on how to continue just show how to open an example application that does not do what I need. The "screencast" section on the mbeddr website has mostly missing video references. The user guide only shows how to write C in a MPS solution.

Generally it seems that most people are focused on using mbeddr in solutions (so writing and extending mbeddr-C) but I intend to use mbeddr to convert a custom DSL into C code.

Do you know of any good resources for learning how to do this?
Is this even possible or did I completely misunderstand the purpose of mbeddr?

Thank you for any help!

Greetings,
Arian

Sergej Koščejev

unread,
Sep 22, 2025, 10:01:15 AMSep 22
to mbeddr-...@googlegroups.com
Hi Arian,

my knowledge of mbeddr C specifically is rather limited but it seems that you need to create a generator for your language which would transform it to the language com.mbeddr.core.modules.gen (concept GenModuleH seems to represent C header files). The textgen of that language will then produce the .h files.

I suggest you join the MPS Slack (https://slack-mps.jetbrains.com/). I hold MPS office hours twice a week (channel #office-hours once you join) where I try to help newcomers get to grips with MPS, among other things.

Best regards,
Sergej

--
You received this message because you are subscribed to the Google Groups "mbeddr-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mbeddr-discus...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/mbeddr-discuss/e7b4c3c4-15fe-4f68-8649-cb9f725c3067n%40googlegroups.com.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages