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

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.

主站蜘蛛池模板: 新昌县| 东兴市| 治多县| 拜泉县| 两当县| 海伦市| 神农架林区| 长兴县| 宜川县| 克什克腾旗| 延川县| 顺平县| 丹东市| 徐汇区| 鹤峰县| 宜川县| 克拉玛依市| 济南市| 古丈县| 中江县| 盐津县| 板桥市| 正宁县| 阆中市| 周口市| 瑞丽市| 忻城县| 老河口市| 田阳县| 如皋市| 锡林浩特市| 任丘市| 三原县| 扶沟县| 罗山县| 岚皋县| 镇平县| 孝义市| 四川省| 漠河县| 镇江市|