Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » [xbase] mimic purexbase with interpreter (instead of compiler).
[xbase] mimic purexbase with interpreter (instead of compiler). [message #667366] Thu, 28 April 2011 11:12 Go to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
Hi,

I have tried to create a DSL, which would extend xbase and from this
elaborate with xbase as a starting point. I was somehow naive thinking
that the xbase syntax would show up in codeassist for my new editor, but
unfortunately that didn't happen.

A 2nd attempt, was simply to build on top of purexbase which actually
does exactly what I wanted to do in the first attempt, and then use the
XBase interpreter instead of the compiler. So this works, looking at the
purexbase code, I am not sure how this is really different from attempt 1.

Could someone please hint, what purexbase does as to leverage the xbase
in code assist, and also what would be a starting point on replacing
code generation, by the XBaseInterpreter?

thanks Christophe
Re: [xbase] mimic purexbase with interpreter (instead of compiler). [message #667373 is a reply to message #667366] Thu, 28 April 2011 11:58 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Christophe,

it's hard to tell what you did in the first place. If you used the
XbaseGeneratorFragment, things should work as expected.

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 28.04.11 13:12, schrieb Christophe Bouhier:
> Hi,
>
> I have tried to create a DSL, which would extend xbase and from this
> elaborate with xbase as a starting point. I was somehow naive thinking
> that the xbase syntax would show up in codeassist for my new editor, but
> unfortunately that didn't happen.
>
> A 2nd attempt, was simply to build on top of purexbase which actually
> does exactly what I wanted to do in the first attempt, and then use the
> XBase interpreter instead of the compiler. So this works, looking at the
> purexbase code, I am not sure how this is really different from attempt 1.
>
> Could someone please hint, what purexbase does as to leverage the xbase
> in code assist, and also what would be a starting point on replacing
> code generation, by the XBaseInterpreter?
>
> thanks Christophe
Re: [xbase] mimic purexbase with interpreter (instead of compiler). [message #667374 is a reply to message #667373] Thu, 28 April 2011 12:15 Go to previous message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
Hi Sebastian,

The steps I am taking are really mininal:

1) I use the project wizard: "Xtext Project"
and changing the grammar extension to this

grammar com.netxforge.Netxscript with org.eclipse.xtext.xbase.Xbase

2) I add a dependency to the org.eclipse.xtext.xbase plugin.

That's it.

The XbaseGeneratorFragment is on by default, next I generate.
It's good to know, it should work just like that, so perhaps my setup is
somehow skewed.

rgds Christophe



On 28-04-11 13:58, Sebastian Zarnekow wrote:
> Hi Christophe,
>
> it's hard to tell what you did in the first place. If you used the
> XbaseGeneratorFragment, things should work as expected.
>
> Regards,
> Sebastian
Previous Topic:Getting a handle to the IFormatter
Next Topic:OutOfMemoryError: Java heap space
Goto Forum:
  


Current Time: Wed Apr 24 20:18:55 GMT 2024

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

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

Back to the top