Build MPS Model Dynamically

6 views
Skip to first unread message

Eman Negm

unread,
Nov 7, 2019, 6:49:43 AM11/7/19
to mbeddr-...@googlegroups.com
Hi,

   I want to build the mps model (AST) dynamically using SModel language,  Are there any tutorials or examples that could help?

Another Question, can I import external java libraries and use it inside MPS?

Thanks,
Eman Negm


Sergej Koščejev

unread,
Nov 7, 2019, 8:24:17 AM11/7/19
to mbeddr-...@googlegroups.com
Hi Eman,

I have a small blog post about creating concept declarations dynamically: https://specificlanguages.com/posts/create-mps-concept-declaration-programmatically/. The same steps work for creating any other kind of node, it should be actually simpler. Please let me know if it helps.

Regarding importing external Java libraries, Federico Tomassetti has the process documented quite well: https://tomassetti.me/how-to-add-jars-and-resources-in-a-jetbrains-mps-project/. The official MPS documentation is here: https://www.jetbrains.com/help/mps/getting-the-dependencies-right.html#addingexternaljavaclassesandjarstoaproject-runtimesolutions

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 on the web visit https://groups.google.com/d/msgid/mbeddr-discuss/CAKd81f_fTkFFJVCWyf%3DBmv8pv2SZNDNY0P2ben%3DXeG4yef%2BM_g%40mail.gmail.com.

Eugen Schindler

unread,
Nov 7, 2019, 9:08:57 AM11/7/19
to mbeddr-...@googlegroups.com
Hi Eman,

Just to add to Sergej's excellent answer: in addition to Federico's very useful post about adding external java libraries to MPS, there is also a section "How to add JARs to MPS" on https://github.com/mbeddr/mbeddr.core/wiki/Misc-Topics.

Greetings,
Eugen

Eman Negm

unread,
Nov 8, 2019, 6:44:54 AM11/8/19
to mbeddr-...@googlegroups.com
Hi Sergej and Eugen,

  It was very helpful for me. Excellent post and links.



Reply all
Reply to author
Forward
0 new messages