Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Using imports in import statements
Using imports in import statements [message #651187] Fri, 28 January 2011 09:51 Go to next message
Mark Christiaens is currently offline Mark ChristiaensFriend
Messages: 63
Registered: October 2010
Member
In the VHDL language you are allowed the following construct (it has a different syntax than shown but that's not important):
import a.b.*;
import b.c.d;

So, one import can depend on another. After this, you can write d as a shorthand for a.b.c.d. As I understand it, that's not how Xtext's importer functionality works. Is there a way to get this behavior?

---
Mark Christiaens
Discover the Future of VHDL Design
Go to www.sigasi.com

[Updated on: Fri, 28 January 2011 10:08]

Report message to a moderator

Re: Using imports in import statements [message #651203 is a reply to message #651187] Fri, 28 January 2011 10:52 Go to previous message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Mark,

you could try to override
#ImportedNamespaceAwareLocalScopeProvider.internalGetImporte dNamespaceResolvers(EObject,
boolean) and return resolvers for the permutations that are valid in VHDL.

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 28.01.11 10:51, schrieb Mark Christiaens:
> In the VHDL language you are allowed the following construct (it has a
> different syntax than shown but that's not important):
>
> import a.b.*;
> import b.c.d;
>
> So, one import can depend on another. After this, you can write d as a
> shorthand for a.b.c.d. As I understand it, that's not how Xtext's
> importer functionality works. Is there a way to get this behavior?
Previous Topic:issues when importing grammar
Next Topic:Importing namespaces with syntax different from the default
Goto Forum:
  


Current Time: Fri Apr 19 16:50:22 GMT 2024

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

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

Back to the top