Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Reference between two different grammars
Reference between two different grammars [message #515749] Sat, 20 February 2010 06:33 Go to next message
Eclipse UserFriend
Hi,

I would like to reference objects of a model specified by a different grammar. I mean my model consists of 2 types of files, grammar 1 with extension .dsl1 and grammar 2 with extensions .dsl2. And I need to reference between them.

How can I do this?

br
Marco
Re: Reference between two different grammars [message #515845 is a reply to message #515749] Sun, 21 February 2010 14:15 Go to previous message
Eclipse UserFriend
Marco schrieb:
> I would like to reference objects of a model specified by a different
> grammar. I mean my model consists of 2 types of files, grammar 1 with
> extension .dsl1 and grammar 2 with extensions .dsl2. And I need to
> reference between them.
>
> How can I do this?

You need to import the ecore from the language you want to reference and
use the corresponding type in the crossreferences. I think this is
covered in the documentation.

Sven

--
Need professional support for Xtext and EMF?
Go to: http://xtext.itemis.com
Twitter : @svenefftinge
Blog : blog.efftinge.de
Previous Topic:split the mydsl.ui bundle?
Next Topic:Parallelize build process
Goto Forum:
  


Current Time: Sun Oct 26 15:17:45 EDT 2025

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

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

Back to the top