- 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.
- OpenCV 4計算機視覺項目實戰(原書第2版)
- Hands-On Nuxt.js Web Development
- 實戰Java高并發程序設計(第2版)
- Qlik Sense? Cookbook
- Visual Basic程序設計全程指南
- Three.js權威指南:在網頁上創建3D圖形和動畫的方法與實踐(原書第4版)
- Java高手是怎樣煉成的:原理、方法與實踐
- Get Your Hands Dirty on Clean Architecture
- Java設計模式深入研究
- jMonkeyEngine 3.0 Beginner’s Guide
- Access 2016數據庫應用與開發:實戰從入門到精通(視頻教學版)
- 深入理解Zabbix監控系統
- Internet of Things with Arduino Cookbook
- 深度學習:基于Python語言和TensorFlow平臺(視頻講解版)
- Real-time Analytics with Storm and Cassandra