Xtext what?

Source: Internet
Author: User

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:

    1. Principles of grammar (parser (left associativity, precedence, etc) and lexer), EBNF--Write Xtext
    2. ANTLR--Generate parser
    3. Mwe2
    4. EMF and Ecore-in memory expression of model
    5. Dependency injection and Google guice.--> put it in together
    6. Developing using Eclipse-to-IDE support
    7. Java language, libraries and JVM
    8. Xtend-one DSL for made Java developer + Easy
    9. 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?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.