Datetime type for a concept property: Where's the dates language?

I've seen examples of languages that have properties/concepts that are dates. I'd like to use something like this in one of my own languages, but cannot figure out what to import.

The MPS documentation mentions a dates baselang extension. How do I get this and what do I need to import into my own language to use it?

Many thanks,

Steffen

2
2 comments

Yes, I've been trying to find where this thing is also. Anyone?

0

If I understand you right, you are talking about this one: jetbrains.mps.baseLanguage.date

Documentation page: https://www.jetbrains.com/help/mps/implementing-generators-for-baselanguage-s-extensions.html

If you want to use the date as a property of your concept you can use "Constrained Data Type" from the "structure aspect" and describe your datatype with regexp.

Documentation page: https://www.jetbrains.com/help/mps/common-language-patterns.html#regularexpressions

0

Please sign in to leave a comment.