I can't understand a goal of support for "any arbitrary grammar". What should be the output?
Now it's UML and it's really good to have textual representation of a model.
Hi,
Yes, the text2uml follows a specific grammar that is close to uml. I do not know how it would be possible to convert from an "arbitrary" grammar, but i would also be interested in the solution.
Regards,
attila
Martin Homik wrote:
I followed the online tutorial and I have the impression that Text2UML can convert only models that respect a specific grammar whose terminology is quite close to UML class diagrams. Is Text2UML fixed to that specific grammer? Or does Text2UML support the conversion of any grammer specified with Xtext. Here is an example:
textual DSL grammer (taken from a Java Magazine):
-------------------------------------------------------------------
MyModel:
(types+=Type)*;
Type:
BusinessObject | Datatype;
BusinessObject:
"bo" name=ID "{"
(properties+=Property)*
"}";
Property:
type=TypeRef name=ID;
TypeRef:
name=[Type|ID](multi?="[]")?;
An example Model (taken from a Java Magazine):
-------------------------------------------------------------------
bo Person {
String name
Address address
Order[] orders
PhoneNumber[] phones
}
Cheers,
Martin