Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Case-insensitive check for unique names(Checks for unique identifiers within a case-insensitive language do not work)
Case-insensitive check for unique names [message #1123282] Wed, 02 October 2013 11:54 Go to next message
Wolfgang Zeller is currently offline Wolfgang ZellerFriend
Messages: 6
Registered: September 2013
Junior Member
We are currently implementing a case-insensitive language where the following code should lead to an error:

function f
  var
    A : bool;
    a : bool;
  end_var
end_function


Is there a (simple) way to implement such a check with builtin XText functionality?
Re: Case-insensitive check for unique names [message #1123304 is a reply to message #1123282] Wed, 02 October 2013 12:23 Go to previous message
Wolfgang Zeller is currently offline Wolfgang ZellerFriend
Messages: 6
Registered: September 2013
Junior Member
We are already using a validator which wraps org.eclipse.xtext.validation.NamesAreUniqueValidationHelper. The problem is, that the NamesAreUniqueValidationHelper cannot be configured (or at least we have found no way) to be case-insensitive.
Previous Topic:Problem with the generation of the artifact
Next Topic:Code Generator in java
Goto Forum:
  


Current Time: Sat Dec 20 03:58:41 GMT 2014

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

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