Generator does not use the order of the [message #1796929] |
Mon, 22 October 2018 10:03  |
Eclipse User |
|
|
|
Hi!
I tried to find the answer via Google and the Forum Search but maybe my search is not precise enough.
In my university course I face the task to create a simple HtmlDsl which generates html files.
Nothing special and my Generator does the job quite well except the case that it does not "know" the order of the elements within the DSL.
When I use the EResource.allContents.toIterator or .toList it gives me the entities in alphabetical order. Which is fine, but I have not found the correct way to get the elements as given in the dsl.
(I'll add the grammar file and generator later, when I'm back home).
Is there an easy way to achive this? :)
Thank you very much!
|
|
|
|
Powered by
FUDForum. Page generated in 0.03560 seconds