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

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.

主站蜘蛛池模板: 乐业县| 武宁县| 眉山市| 淅川县| 牙克石市| 嘉义县| 大连市| 花垣县| 关岭| 保亭| 磐安县| 崇阳县| 保康县| 秭归县| 江山市| 莱阳市| 蕉岭县| 南木林县| 防城港市| 张北县| 安国市| 丁青县| 上虞市| 龙岩市| 韶山市| 墨脱县| 井陉县| 石柱| 阳信县| 黑山县| 江达县| 葫芦岛市| 正镶白旗| 雷波县| 肥城市| 泾阳县| 增城市| 汉中市| 宽城| 闸北区| 竹山县|