Referencing classes from different ecore using qualified names in my DSL [message #1740098] |
Tue, 09 August 2016 04:08  |
Eclipse User |
|
|
|
Hi
I'm trying to build a dsl with follwing syntax to reference by qualified names EClasses from an ecore defined in seperate file. I',m aiming for the following syntax:
select Epacket1.Epacket2.MyEClass
grammar org.xtext.example.mydsl.MyDsl with org.eclipse.xtext.common.Terminals
import "http://www.eclipse.org/emf/2002/Ecore" as ecore
generate mydsl "mydsl"
Model:
"select" type=[ecore::EClass]
;
Currently I'm confused how should I aproach this. I would by glad for any pointers what should I implement, how should i change my syntax to achieve this.
Regards
Michal
[Updated on: Wed, 22 February 2017 04:51] by Moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04688 seconds