This isn’t a feature of some new revision of UML.


This isn’t a feature of some new revision of UML. This is one of the things UML was being used for in the late 90s. Most Java textbooks, for instance, use UML to describe Java syntax.