Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Unordered group separator
Unordered group separator [message #1766569] Fri, 23 June 2017 08:07 Go to next message
Wolf Rost is currently offline Wolf RostFriend
Messages: 4
Registered: June 2017
Junior Member
Hello everybody,

as shown in [url=https://eclipse.org/Xtext/documentation/301_grammarlanguage.html#unordered-groups] it is possible to define unordered groups.

Is it also possible to define a separator for an unordered group?
So for instance
public static final
static protected
final private static
public


can become a comma separated list
public, static, final
static, protected
final, private, static
public


Thank you in advance
Re: Unordered group separator [message #1766929 is a reply to message #1766569] Wed, 28 June 2017 19:12 Go to previous messageGo to next message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 563
Registered: July 2009
Location: Dortmund, Germany
Senior Member

I think this is not possible. You may want to simulate the behavior with a combination of content assist and validation, so that existing alternatives are not proposed twice and if entered this would be invalid.
Re: Unordered group separator [message #1773891 is a reply to message #1766929] Fri, 06 October 2017 08:09 Go to previous message
Wolf Rost is currently offline Wolf RostFriend
Messages: 4
Registered: June 2017
Junior Member
We followed your approach and it works well.
Thank you very much.
Previous Topic:Why MyDslParsingTest re-create each time?
Next Topic:Invalid equality test on atomic integer
Goto Forum:
  


Current Time: Sun Jan 21 13:00:13 GMT 2018

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

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