Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » [xtext] abstract types
[xtext] abstract types [message #46560] Sat, 30 May 2009 07:55 Go to next message
Knut Wannheden is currently offline Knut WannhedenFriend
Messages: 298
Registered: July 2009
Senior Member
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 08:45 Go to previous message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
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 Dec 26 20:12:46 GMT 2024

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

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

Back to the top