Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Integrate existed interpreter with Xtext
Integrate existed interpreter with Xtext [message #895837] Mon, 16 July 2012 09:12 Go to next message
Ken Wen is currently offline Ken WenFriend
Messages: 2
Registered: July 2012
Junior Member
Hi,

I already have a interpreter which is written in C++.

But what I want is syntax-highlighting, code-completion and running info from interpreter.

Is possibile to integrate already existed interpreter with Xtext.

I have also done the grammar part with Xtext, but which is only for syntax-highlighting

Thanks
Re: Integrate existed interpreter with Xtext [message #895863 is a reply to message #895837] Mon, 16 July 2012 11:23 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
Xtext does not generate an interpreter, so you are free to do what you
want to evaluate/run something written in your language.

Regards
- henrik

On 2012-16-07 11:12, Ken Wen wrote:
> Hi,
>
> I already have a interpreter which is written in C++.
>
> But what I want is syntax-highlighting, code-completion and running info
> from interpreter.
>
> Is possibile to integrate already existed interpreter with Xtext.
>
> I have also done the grammar part with Xtext, but which is only for
> syntax-highlighting
> Thanks
Re: Integrate existed interpreter with Xtext [message #895933 is a reply to message #895863] Mon, 16 July 2012 14:34 Go to previous messageGo to next message
Ken Wen is currently offline Ken WenFriend
Messages: 2
Registered: July 2012
Junior Member
Thanks for your reply, Henrik.

But what I want is call the interpreter to execute input text from generated editor.

Until now I only can realize this function by using "external Tools".

Regards
- Ken
Re: Integrate existed interpreter with Xtext [message #896009 is a reply to message #895933] Mon, 16 July 2012 21:00 Go to previous message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
On 2012-16-07 16:34, Ken Wen wrote:
> Thanks for your reply, Henrik.
>
> But what I want is call the interpreter to execute input text from
> generated editor.
>
That has nothing to do with Xtext per-se.

I implemented this for Eclipse B3 language where I added "run file" by
simply adding an action to the editors context menu (and to to a
resource of "mydsl" type).

- henrik
Previous Topic:Problem with the language name
Next Topic:Access root instance of grammar of all resource files in the workspace
Goto Forum:
  


Current Time: Sat Apr 04 08:05:09 GMT 2020

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

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

Back to the top