Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Textual representation for UML class diagrams - DSL for UML

Tags:

uml

dsl

UML classdiagrams are a standard graphical notation to describe classes and their relationships.

Is there a standard textual notation (DSL) to describe the same? Don't say XMI or EMF;-)

I think you could do that with Corba IDL and use Interfaces for classes, but this is somehow too much on the Corba side. You could use Java Interfaces, but this is too Java.

Background of my question is writing generators. I think it is easier to write a generator based on the syntax tree of a DSL than to parse a graphical notation. A graphical notation first has to be translated into a syntax tree (that would be the same you'd get from the corresponding DSL). I think translating a graphical notation into the syntax tree is harder than to translate a DSL (where you can use ANTLR).

like image 557
weberjn Avatar asked Nov 10 '10 11:11

weberjn


2 Answers

You've got the answer already, but I'd like to clarify. There is a standard notation, it's called HUTN, and nobody uses it.

like image 119
Andrey Breslav Avatar answered Oct 20 '22 02:10

Andrey Breslav


Check this complete list of textual notations to describe UML models. Btw, the reasons to create one of these tools (in particular TextUML) can be find here.

like image 31
Jordi Cabot Avatar answered Oct 20 '22 02:10

Jordi Cabot