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

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.

主站蜘蛛池模板: 平和县| 长岭县| 磐石市| 如东县| 申扎县| 通州区| 霸州市| 阳东县| 蓬莱市| 化德县| 靖州| 卢龙县| 平阳县| 高唐县| 资溪县| 延安市| 遂平县| 巴林左旗| 贺州市| 南溪县| 阳曲县| 宁波市| 武陟县| 定襄县| 鄱阳县| 常宁市| 团风县| 三门峡市| 九江县| 赣榆县| 铅山县| 新绛县| 阜康市| 城固县| 鄂州市| 江川县| 常熟市| 平江县| 顺平县| 商河县| 延长县|