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 07:54 Go to next message
Wolfgang Zeller is currently offline Wolfgang Zeller
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 08:23 Go to previous message
Wolfgang Zeller is currently offline Wolfgang Zeller
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: Wed Aug 27 07:21:47 EDT 2014

Powered by FUDForum. Page generated in 0.10786 seconds