- Implementing Domain:Specific Languages with Xtext and Xtend
- Lorenzo Bettini
- 153字
- 2021-08-13 16:26:18
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.
- Python測試開發(fā)入門與實(shí)踐
- INSTANT Sencha Touch
- JavaScript動(dòng)態(tài)網(wǎng)頁開發(fā)詳解
- Mastering Apache Spark 2.x(Second Edition)
- ASP.NET Core 2 Fundamentals
- Keras深度學(xué)習(xí)實(shí)戰(zhàn)
- NoSQL數(shù)據(jù)庫原理
- Learning Nessus for Penetration Testing
- SSH框架企業(yè)級(jí)應(yīng)用實(shí)戰(zhàn)
- Microsoft HoloLens By Example
- Neo4j 3.x入門經(jīng)典
- 例說FPGA:可直接用于工程項(xiàng)目的第一手經(jīng)驗(yàn)
- 零基礎(chǔ)PHP從入門到精通
- JavaScript設(shè)計(jì)模式與開發(fā)實(shí)踐
- Java語言程序設(shè)計(jì)與實(shí)現(xiàn)(微課版)