Xtext eclipse introduction 2013

View previous topic View next topic Go down

Xtext eclipse introduction 2013

Post by Admin on Sun Sep 15, 2013 4:04 am

2013 2013 2013 <div dir="ltr" style="text-align: left;" trbidi="on"><u><b>What is Xtext?</b></u><br /><br />Xtext is a open source framework for development of programming languages and domain specific languages.<br /><br />It covers all aspects of a complete language infrastructure, from parsers, over linker, compiler or interpreter to fully-blown top-notch Eclipse IDE integration. It comes with good defaults for all these aspects and at the same time every single aspect can be tailored to your needs.<br /><br />It provides you an infrastructure to develop a parser that will support some domain specific language and allows to create a generator to transform that language into any language of your type.<br /><br />The most common example is to convert any language into java objects.<br /><br />Consider a scenario, where a designer wants to design a Java POJO, but do not have a Java language understanding to how to create a java pojo/classes. Now in order to learn java, the designer may require lots of learning and it will cost duration.<br /><br />Xtext comes into picture here. Xtext allows you to define a parser that will be provided to the designer and he/she will create a pojo in a parser language as shown below:<br /><br />Class Pojo {<br />&nbsp;&nbsp;&nbsp; <i>firstName : Characters<br />&nbsp;&nbsp;&nbsp; lastName : Characters<br />&nbsp;&nbsp;&nbsp; age : Digits<br />&nbsp;&nbsp;&nbsp; salary : Digits</i><br />}<br /><br />Xtext will allow to create the parser to define classes in above format. Plus, the generator implementation that takes this file as input and the output of the generator will be the Java Pojo class.<br /><br />As shown above, Xtext allows you to create the domain specific language that can be understood by layman, not nexessarily a technical resource is needed to understand the infrastructure.<br /><br /><u><b>Where it can be used?</b></u><br /><br />The most easy implementation would be creating of IDE's like Eclipse, NetBeans, etc. What we do we create classes and we simply use CTRL + SPACE to retrieve the fields/methods of that class.</div><br> 2013 2013 2013 <br><div dir="ltr" style="text-align: left;" trbidi="on"><u><b>What is Xtext?</b></u><br /><br />Xtext is a open source framework for development of programming languages and domain specific languages.<br /><br />It covers all aspects of a complete language infrastructure, from parsers, over linker, compiler or interpreter to fully-blown top-notch Eclipse IDE integration. It comes with good defaults for all these aspects and at the same time every single aspect can be tailored to your needs.<br /><br />It provides you an infrastructure to develop a parser that will support some domain specific language and allows to create a generator to transform that language into any language of your type.<br /><br />The most common example is to convert any language into java objects.<br /><br />Consider a scenario, where a designer wants to design a Java POJO, but do not have a Java language understanding to how to create a java pojo/classes. Now in order to learn java, the designer may require lots of learning and it will cost duration.<br /><br />Xtext comes into picture here. Xtext allows you to define a parser that will be provided to the designer and he/she will create a pojo in a parser language as shown below:<br /><br />Class Pojo {<br />&nbsp;&nbsp;&nbsp; <i>firstName : Characters<br />&nbsp;&nbsp;&nbsp; lastName : Characters<br />&nbsp;&nbsp;&nbsp; age : Digits<br />&nbsp;&nbsp;&nbsp; salary : Digits</i><br />}<br /><br />Xtext will allow to create the parser to define classes in above format. Plus, the generator implementation that takes this file as input and the output of the generator will be the Java Pojo class.<br /><br />As shown above, Xtext allows you to create the domain specific language that can be understood by layman, not nexessarily a technical resource is needed to understand the infrastructure.<br /><br /><u><b>Where it can be used?</b></u><br /><br />The most easy implementation would be creating of IDE's like Eclipse, NetBeans, etc. What we do we create classes and we simply use CTRL + SPACE to retrieve the fields/methods of that class.</div><br>2013 2013 2013 <br> <a href="http://www.matrixar.com/" title="Matrix ">المصفوفة : أجمل الخلفيات والصور</a>

Admin
Admin

Posts : 64122
Join date : 2013-02-22

View user profile http://prowebsites1.forumaroc.net

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum