Just checked in a new feature in the TextUML Toolkit: support for data types (a.k.a. structs). This is an example of a data type declaration:
datatype UserName attribute firstName : String; attribute lastName : String; end;
You can declare operations and specialize other classifiers as usual.
Here are the individual changes per plug-in (r177-r186):
- automated tests (180 and 185)
- parser and model generation (181, 184 and 186)
- textual renderer
There, nice and easy. Well, actually, I ended up doing a second commit because I forgot to ensure a data type specializes only other data types. But now that has been taken care of.
As usual, suggestions of UML features to support in the TextUML Toolkit are most welcome.