- Implementing Domain:Specific Languages with Xtext and Xtend
- Lorenzo Bettini
- 142字
- 2021-08-13 16:26:19
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.
- INSTANT Mock Testing with PowerMock
- 基于粒計算模型的圖像處理
- 案例式C語言程序設(shè)計
- Visual C++串口通信開發(fā)入門與編程實踐
- JavaScript語言精髓與編程實踐(第3版)
- FFmpeg入門詳解:音視頻原理及應(yīng)用
- R大數(shù)據(jù)分析實用指南
- Node.js Design Patterns
- Django 3.0應(yīng)用開發(fā)詳解
- 零基礎(chǔ)學(xué)HTML+CSS
- Java Web開發(fā)實例大全(基礎(chǔ)卷) (軟件工程師開發(fā)大系)
- Visual Basic程序設(shè)計實驗指導(dǎo)及考試指南
- Docker:容器與容器云(第2版)
- Python深度學(xué)習(xí)與項目實戰(zhàn)
- IBM DB2 9.7 Advanced Application Developer Cookbook