What is Xtext, Xtext

Source: Internet
Author: User

What is Xtext, Xtext

This is what Xtext says on its official website.

"Building your own domain-specific languages has never been so easy. Just put your grammar in place and you not only get the working parser and linker but also first class Eclipse support ."

Creating your own DSL is never that easy. You only need to write your syntax, and then hand the rest to Xtext (including parser, linker and seamless support in Eclipse ).


To learn Xtext, you must at least understand the following technologies:

Before proceeding, let's first explain what DSL is. Translation is a language in a specific field. DSL developers can develop experts in a certain field or industry.

Dialects That can be understood, they do not realize the specific implementation of the underlying layer, so as to focus on their own work, improve efficiency, and isolate responsibility.


Xtext is a free and open-source project to implement DSL.

To use Xtext, you only need to compile the Xtext file, that is, your DSL syntax, and some methods provided to you by extending Xtext, you can implement a development environment that is supported by Eclipse using the DSL language,

This environment can provide syntax highlighting, auto-incomplete, code assistance, syntax error checking, modification method recommendations, and other functions like JDT or PDT.


Xtext workflow:

  • Compile an Xtext File
  • Use mwe2 to generate all the basic frameworks of the code you need. This framework can be run. This includes the Ecore required by EMF, corresponding objects, corresponding editors, and UT tests.
  • In the running process, it is connected through Guice.

If you have time in the future, I will connect each part and talk about it.

Http://www.euclideanspace.com/software/development/eclipse/xtext/index.htm


How can I enter Chinese Characters in CMD?

Ah ~~ Why don't I turn around? Open notepad and enter the words you want to copy in it! Go to CAD and paste the call. Remember to press the multi-line text button on CAD. I just changed the input text in CAD to paste it. No, your vista is first connected to the text. I can't even type it, right? Haha Joke ~ Is my vista system great ?? Create multi-line text

Click "text" "multi-line text" from the "Drawing" menu ".
Specifies the diagonal corner of the border to define the width of the Text object of multiple lines.
The multi-line text editor is displayed.

To indent the first line of each section, drag the first line indent slider on the ruler. To indent other lines of each section, drag the section slider.
To set a tab, click the ruler to set a tab.
To use a text style instead of a default value, click the arrow next to the "text style" control on the toolbar and select a style.
Enter text in the multi-line text editor.
To replace the current text style, select text as follows:
To select one or more letters, click on the character and drag the specified device.
To select a word, double-click the word.
To select a paragraph, click it.
On the toolbar, change the format as follows:
To change the font of the selected text, select a font from the list.
To change the height of the selected text, enter a new value in the height field.
To use bold or italic to set the format of TrueType text, or create any underline text in any font, click the corresponding button on the toolbar. The SHX font cannot be bold or italic.
To apply a color to the selected text, select a color from the color list. Click "other" to display the "select color" dialog box.
To save the changes and exit the multi-line text editor, use one of the following methods:
Click OK on the toolbar ".
Click the image outside the editor.
Press CTRL + ENTER.
"Drawing" Toolbar

Command Line MTEXT

What is the "Division 0" prompt in vb?

The N you passed,
Fact = 1/Tan (I)
I = 0
Tan (I) = 0
O division is not allowed.

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.