Enumerator in DSL

This may be a newbiew question...

I was wondering what is the best approach to design a concept that allows me to write a program and use a (enum) construct (operator.PLUS in the example below). I'd like the enums to be embedded in the language - i.e. The user only has a small subset of operators available (PLUS,MINUS,DIVISON,MULTIPLICATION). I guess I could create a type for each one of them but I'd like to get a enum style type...

width operator.PLUS height

Any hints would be appreciated....
1 comment
There is an enumeration concept in the structure language.  Use that to define your enumerations, then you can use it as the type for properties in other concepts in your language, reference it in the editor, etc.

Please sign in to leave a comment.