4 package robots.missions.validation
6 //import org.eclipse.xtext.validation.Check
9 * This class contains custom validation rules.
11 * See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#validation
13 class TaskDSLValidator extends AbstractTaskDSLValidator {
15 // public static val INVALID_NAME = 'invalidName'
18 // def checkGreetingStartsWithCapital(Greeting greeting) {
19 // if (!Character.isUpperCase(greeting.name.charAt(0))) {
20 // warning('Name should start with a capital',
21 // MyDslPackage.Literals.GREETING__NAME,