Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Mixin grammar generates dependency to non-existing class
Mixin grammar generates dependency to non-existing class [message #827678] Fri, 23 March 2012 16:47 Go to next message
Tobias Böhm is currently offline Tobias BöhmFriend
Messages: 21
Registered: January 2012
Junior Member
Hello,

say I have two grammars, DSL1 and DSL2. DSL2 would like to reuse rules and EMF-Types from DSL1. What I have done inside DSL2.xtext before the generate statement is

import "http: // www.eclipselabs.org/<path>/DSL1" as DSL1


In my GenerateDSL2.mwe2 file I added

registerGenModelFile = "platform:/resource/<DSL1-Package>/src-gen/path/to/DSL1.genmodel"


to the bean=StandaloneSetup statement. It generates all right but the generated

<DSL2-Package>.serializer.AbstractDSL2SemanticSequencer


type now references a type

<DSL1-Package>.serializer.DSL1SemanticSequencer


which does not exist. All I've found is an abstract type

<DSL1-Package>.serializer.AbstractDSL1SemanticSequencer
.

Do I have to extend it manually or did I do something wrong?

Thanks.
Re: Mixin grammar generates dependency to non-existing class [message #827689 is a reply to message #827678] Fri, 23 March 2012 17:06 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13469
Registered: July 2009
Senior Member
Hi,

this was asked several times before

 // Serializer 2.0
 fragment = serializer.SerializerFragment {
     generateStub = true
 }


~Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Editor and Console
Next Topic:grammar with imported model
Goto Forum:
  


Current Time: Fri Jun 05 20:37:02 GMT 2020

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

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

Back to the top