|Re: Making validator work [message #1058532 is a reply to message #1058483]
||Tue, 14 May 2013 12:13
| Ian McDevitt
Registered: December 2012
Firstly your "whole grammar" has syntax errors so maybe you're not supplying exactly what you have?|
this isn't actually a rule. It should be something like
Model: tasks += Task_grammar*
Also your names can't currently be filenames like explorer.exe
ID will not allow a dot in the name so I assume you're actually using a rule like taskname=TASKNAME and
After that you may be able to solve your original problem with the builtin uniqueness validation for 'names' by uncommenting it in your workflow file (.mwe2).
composedCheck = "org.eclipse.xtext.validation.NamesAreUniqueValidator"
This checks references called 'name' so you just need to use name=TASKNAME instead of taskname=TASKNAME
Don't forget to regenerate the language after such changes.
[Updated on: Tue, 14 May 2013 12:37]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.03010 seconds