- 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.
- 前端跨界開發指南:JavaScript工具庫原理解析與實戰
- 基于Java技術的Web應用開發
- JavaScript+jQuery開發實戰
- 碼上行動:零基礎學會Python編程(ChatGPT版)
- Linux網絡程序設計:基于龍芯平臺
- Web全棧工程師的自我修養
- Instant RubyMotion App Development
- Visual FoxPro程序設計
- 程序設計基礎教程:C語言
- Essential C++(中文版)
- 數據分析與挖掘算法:Python實戰
- Android Studio開發實戰:從零基礎到App上線 (移動開發叢書)
- Building a Media Center with Raspberry Pi
- 從零開始學算法:基于Python
- Java Web入門很輕松(微課超值版)