Skip to main content



      Home
Home » Modeling » TMF (Xtext) » [xtext] abstract types
[xtext] abstract types [message #46560] Sat, 30 May 2009 03:55 Go to next message
Eclipse UserFriend
Hi,

Would it make sense to mark some types in the generated Ecore model as
abstract? As for instance the type 'Type' generated from the example
grammar:

Model :
(imports+=Import)*
(elements+=Type)*;

Import :
'import' importURI=STRING;

Type:
DataType | Class;

...

As I remember it this wasn't possible in oAW Xtext, but I think this
should be possible in TMF Xtext.

Regards,

--knut
Re: [xtext] abstract types [message #46589 is a reply to message #46560] Sat, 30 May 2009 04:45 Go to previous message
Eclipse UserFriend
Hi Knut,

I like your suggestion although I don't think it will make it into Xtext
0.7.0. Please file a bug (an provide a patch ;-).
It is currently possible to use the IXtext2EcorePostProcessor to mark
"Type" as abstract.

Regards,
Sebastian

Am 30.05.2009 9:55 Uhr, schrieb Knut Wannheden:
> Hi,
>
> Would it make sense to mark some types in the generated Ecore model as
> abstract? As for instance the type 'Type' generated from the example
> grammar:
>
> Model :
> (imports+=Import)*
> (elements+=Type)*;
>
> Import :
> 'import' importURI=STRING;
>
> Type:
> DataType | Class;
>
> ...
>
> As I remember it this wasn't possible in oAW Xtext, but I think this
> should be possible in TMF Xtext.
>
> Regards,
>
> --knut
>
Previous Topic:[AText] a question releated to removing left recursion.
Next Topic:[xtext] conflicting meta models in xtend
Goto Forum:
  


Current Time: Thu May 08 01:31:08 EDT 2025

Powered by FUDForum. Page generated in 0.04904 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top