I need to programmatically turn a text conform to an XText grammar into an AST conform to an Ecore meta-model generated by XText from the same grammar.
I know XText also generate the Java classes implementing such parser but I don’t know either where they are and how to use it.
A complete answer to this question can be found on the Xtext page of the Eclipse wiki.
Change the file extension (
mydsl) to your own language extension.