Create instances of a concept

Hello,

I want to create an enumeration of countries, except that this enumeration is not limited to country name, but each country has a name, code and number of inhabitants.

How can i do this?

Thank you. 

0
4 comments

Well, than having a dedicated concept for country would work best.

0

That's what I've done, the problem is how to create the instances so that in the editor it's a predefined list

0

You'll need to define these pre-defined instances in an accessory model - e.g. like in here: https://www.jetbrains.com/help/mps/regular-expressions.html#accessorymodels

0

Thank you for your “quick” response. 

0

Please sign in to leave a comment.