官术网_书友最值得收藏!

Chapter 4. Validation

In this chapter we will introduce the concept of validation, and in particular, the Xtext mechanism to implement validation: the validator. With validation you can implement additional constraint checks of a DSL which cannot be done at parsing time. Xtext allows you to implement such constraint checks in an easy and declarative way; furthermore, you only need to communicate to Xtext the possible errors or warnings and it will take care of generating the error markers accordingly in the IDE. The validation will take place in the background while the user of the DSL is typing in the editor, so that an immediate feedback is provided. We will also show how to implement quickfixes corresponding to the errors and warnings generated during validation, so that we can help the user to solve problems due to validation errors.

主站蜘蛛池模板: 克什克腾旗| 晋州市| 金门县| 柳河县| 汉川市| 鄂尔多斯市| 任丘市| 右玉县| 临高县| 龙海市| 读书| 东至县| 栖霞市| 金塔县| 松滋市| 蓬溪县| 宁陕县| 长沙市| 福州市| 马鞍山市| 罗田县| 武强县| 克拉玛依市| 平塘县| 抚州市| 凤凰县| 蛟河市| 仪陇县| 温宿县| 门头沟区| 方城县| 蛟河市| 乌兰察布市| 青岛市| 林州市| 崇州市| 育儿| 库车县| 民乐县| 胶州市| 陵川县|