Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Xtext Grammar(Automatic Validations)
Xtext Grammar [message #1018076] Wed, 13 March 2013 01:03 Go to next message
Eclipse UserFriend
Hi All,

Suppose we have a simple model as below

Entry:
(element +=Element)+
;

Element:
name=ID address=String age=INT
;

Now is there any method which validates that all the element names are unique?
I know that we can write some validations manually in the validation section, but is there anything else which can automatically uniquify these names?

Thanks,
Rohit
Re: Xtext Grammar [message #1018108 is a reply to message #1018076] Wed, 13 March 2013 03:03 Go to previous message
Eclipse UserFriend
Do you mean globally or locally. If locally enable names are unique
validator in the workflow. If globally you have to care yourself
(there are samples for that in the forum)

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de
Previous Topic:LL(*)-left refactoring and cross-reference
Next Topic:Any way to access the name of a reference in the ScopeProvider?
Goto Forum:
  


Current Time: Sat Jul 05 09:37:22 EDT 2025

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

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

Back to the top