Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Can I create GPL + DSL by XTEXT
Can I create GPL + DSL by XTEXT [message #54092] Tue, 30 June 2009 04:58 Go to next message
Jitendra  is currently offline Jitendra Friend
Messages: 7
Registered: July 2009
Junior Member
Hi,

I am new to the Xtext technology, so any help would be appriciated
regarding my query.

My project have DSL which is simillar to C language with some additional
keywords.

My question is can I use xtext framework to add grammar for these
additional keywords with already provided CDT framework?
And also please tell me the way to achieve this.

So finally my DSL should have file extension like *.xyz which undestand
all C keywords + some additional keywords.

Thanks in advance.

Regards,
Jitendra
Re: Can I create GPL + DSL by XTEXT [message #54119 is a reply to message #54092] Tue, 30 June 2009 06:28 Go to previous message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Jitendra,

compared to the CDT Xtext uses a completely different technology stack.
That's why it is not possible to enhance the CDT editor and tooling with
Xtext.

You may try to implement the complete grammar of your C-like language
with Xtext but this would be a challenging task if you want to reflect C
with all of it's complexity. It is definitely easier to implement only a
subset of C including your own keywords. If that is sufficient Xtext
will be a very good choice to get a nice editor and tooling. The
framework greatly simplifies common tasks in language development.

Please feel free to ask any further questions,
Sebastian

Am 30.06.2009 6:58 Uhr, schrieb Jitendra:
> Hi,
>
> I am new to the Xtext technology, so any help would be appriciated
> regarding my query.
>
> My project have DSL which is simillar to C language with some additional
> keywords.
>
> My question is can I use xtext framework to add grammar for these
> additional keywords with already provided CDT framework? And also please
> tell me the way to achieve this.
>
> So finally my DSL should have file extension like *.xyz which undestand
> all C keywords + some additional keywords.
>
> Thanks in advance.
>
> Regards,
> Jitendra
>
Previous Topic:Example Outline View Filter Question
Next Topic:Workflow for GMF editor model
Goto Forum:
  


Current Time: Mon Jul 22 05:37:26 GMT 2024

Powered by FUDForum. Page generated in 0.03124 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top