Hi, thank you for your response!!!
I used the generated xtext code to implement a new project, and it works just fine.
I entend to generate ecore models from an existing script according to my grammar. I surveyed some tutorials which refer to the manipulation of the file Mydslgenerator.xtend in the package *.generator. Unfortunately, this package isn't generated after running the workflow. Do I miss something in the running process.
Best wishes