Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Generator does not use the order of the (Use the order of the DSL )
Generator does not use the order of the [message #1796929] Mon, 22 October 2018 10:03 Go to next message
Eclipse UserFriend
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!
Re: Generator does not use the order of the [message #1797275 is a reply to message #1796929] Mon, 29 October 2018 09:18 Go to previous message
Eclipse UserFriend
hi,

can you please provide a reproducible example?
usually the order is conserved
Previous Topic:Generated Gradle fails
Next Topic:Code generator conditional behaviour
Goto Forum:
  


Current Time: Wed Jun 18 02:31:12 EDT 2025

Powered by FUDForum. Page generated in 0.03560 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top