Difference between revisions of "Xtext/Documentation"  From
Eclipsepedia  Jump to: navigation, search Line 153: Line 153:
<code lang="text"> <code lang="text">   import
"classpath:/foo/bar/MyEcore.dsl"   import
"classpath:/foo/bar/MyEcore.ecore"  Revision as of 02:08, 26
March 2009   What is Xtext?  The TMF Xtext project provides a
domain-specific language (the grammar language) for description
of textual programming languages and domain-specific languages.
It is tightly integrated with the Eclipse Modeling Framework
(EMF) and leverages the Eclipse Platform in order to provide
language-specific tool support. In contrast to common parser
(syntactic analyzer) generators of the grammar language is much
simpler but is used to derive much more than just a parser and
lexer (lexical analyzer). From a grammar the following is
derived:    • incremental, Antlr3-based parser and lexer   •
Ecore-based meta models (optional)   • a serializer, used to
serialize instances of such meta models back to a parseable
textual repr