That's what the Xtext official website says.
"Building your own domain-specific languages have never been so easy. Just put your grammar in place and don't only get the working parser and linker but also first class Eclipse support. "
It is never so simple to create your own DSL. You just have to write your grammar, and then leave the rest to Xtext to do it (including parser. Linker and seamless support in eclipse).
To learn xtext, you need to know at least the following techniques:
- Principles of grammar (parser (left associativity, precedence, etc) and lexer), EBNF--Write Xtext
- ANTLR--Generate parser
- Mwe2
- EMF and Ecore-in memory expression of model
- Dependency injection and Google guice.--> put it in together
- Developing using Eclipse-to-IDE support
- Java language, libraries and JVM
- Xtend-one DSL for made Java developer + Easy
- Xbase-and make-write Xtext more easy
Before you go any further, explain what a DSL is and translate it into a specific area of language. DSL developers can give a particular field or industry. Develop an expert in this field or industry
Dialect that can be understood. They are not aware of the detailed realization of the layer, so as to focus on their own job. Improve efficiency, segregation of responsibilities, etc.
Xtext is a free open source project to implement DSL.
With Xtext you only need to write xtext files. is the syntax of your DSL. and extension Xtext provides you with a way to implement an eclipse-supported development environment that uses the DSL language.
This environment can provide syntax highlighting, like JDT or PDT. Self-active incomplete, code assistance, syntax error checking and change method suggestions and other functions.
Xtext Workflow:
- Writing Xtext files
- Build the basic framework of all the code you need by Mwe2. This framework can be implemented.
This includes the Ecore and corresponding objects, corresponding editors, UT tests, etc. that are required for EMF.
- In the course of execution, it is connected by Guice.
When there is time, I will connect the various parts to say.
Http://www.euclideanspace.com/software/development/eclipse/xtext/index.htm
Copyright notice: This article blog original article. Blogs, without consent, may not be reproduced.
Xtext what?