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

Summary

In this chapter, you learned how to implement a simple DSL with Xtext and you saw that, starting from a grammar definition, Xtext automatically generates many artifacts for the DSL, including IDE tooling.

You also started to learn the EMF API that allows you to programmatically manipulate a model representing a program AST. Being able to programmatically access models is crucial to perform additional checks on a program that has been parsed and also to perform code generation, as we will see in the rest of the book.

In the next chapter, we will introduce the new programming language, Xtend (which is shipped with Xtext, and is implemented in Xtext itself): a Java-like general purpose programming language tightly integrated with Java that allows you to write much simpler and much cleaner programs. We will use Xtend in the rest of the book to implement all the aspects of languages implemented in Xtext.

主站蜘蛛池模板: 金华市| 嘉鱼县| 铅山县| 西盟| 罗源县| 云梦县| 乐至县| 翁牛特旗| 曲周县| 建昌县| 抚州市| 商南县| 丁青县| 辽中县| 磴口县| 于都县| 嵩明县| 公主岭市| 谷城县| 无锡市| 阿拉善右旗| 平塘县| 商河县| 曲靖市| 浮梁县| 晋中市| 虞城县| 临城县| 齐河县| 临江市| 远安县| 台东县| 手机| 那曲县| 东阳市| 获嘉县| 合阳县| 沽源县| 广东省| 托克托县| 庆云县|