|
|
|
|
|
|
|
|
|
|
|
|
Re: How to import and parse a file with xtext and generate an EMF model out of it? [message #1030071 is a reply to message #1019392] |
Sat, 30 March 2013 16:37 |
Lefteris Skoutaris Messages: 24 Registered: March 2013 |
Junior Member |
|
|
I have created a grammar and generated the language however i do not know how to use it to create a dynamic instance on .xmi.
I have a .txt file with some realistic data content for which I have build a DSL. Now, the ecore file represents a model of that .txt file but does not contain real values (only classes and attributes names).
I want to generate an .xmi that represents the .txt file. Then I will use this .xmi as input to the henshin editor and define some rules on it.
There must be a way to somehow with eclipse to:
1. parse the .txt file
2. map the .txt contents to the .ecore diagram
3. generate an .xmi dynamic instance that containts the values of the .txt file.
Then somehow import this .xmi to the henshin editor.
[Updated on: Sat, 30 March 2013 16:39] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07309 seconds