Constrained data type? Follow ikar Created July 21, 2005 06:31 Could you suggest how to define a Constrained data type, please? I'm trying to define a type which is an integer limited to 1-16 range..
Igor Karpov wrote:
You can create ConstrainedDataType concept. You can constraint string
representation for some datatype by specifying regexp. Look at concept
FPNumberString in jetbrains.mps.baseLanguage.structure model (you can
find it if you expand jetbrains.mps.baseLanguage node in Languages node
in project tree).