|Reference Ecore model in Xtext grammar [message #1848014]
||Wed, 17 November 2021 12:53
| Jan Crkvic
Registered: November 2021
Hello, I am trying to import the Ecore meta model in the xtext grammar so that I can use EPackage. |
This is a simple grammar:
grammar org.xtext.Mapping with org.eclipse.xtext.common.Terminals
import "h.ttp://www.eclipse.org/emf/2002/Ecore" as ecore
generate mapping "h.ttp://www.xtext.org/Mapping"
type = EPackage
However on the second line I get this warning:
The imported package is not on the classpath of this project
which may lead to follow-up errors.
And on the second to last line I get this error:
EPackage cannot be resolved to a rule.
Help on being able to reference an EPackage, would be appreciated.
Powered by FUDForum
. Page generated in 0.02190 seconds