[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [imp-dev] IMP documentation
|
Hi,
I don't know about any other than the old ASF+SDF Meta-Environment.
It uses a socket to communicate with an external parser which produces an AST in prefix syntax. The AST gets sucked in an an AST object is build.
This code is not in use anymore BTW.
Cheers,
Jurgen
On Tue, Oct 23, 2012 at 1:39 PM, E. Ghasabani
<ghasabani@xxxxxxxxxxx> wrote:
Thanks a lot.
Sorry, I'm new to Eclipse PDE and IMP. I have try to find some IMP-based IDEs, but didn't succeed (even for X10 IDE).
Could you give me any link for an IMP-based IDE that have used integration mechanism (if there exist)?
Sincerely yours
Hi,
The integration goes via extension points, which are documented in the IMP User's Guide. A simple way is to use the extension point mechanism of Eclipse to:
* Add "languageDescription" extension, to name the language and the file extension.
* Add a "parser" extension, to point to an implementation of IParseController.
When you have added these extensions, now you have to implement your class that implements IParseController such that it calls your C++ code and returns your AST representation. IMP does not assume anything about your ASTs since it uses the Object class to refer to ASTs.
This gives you basic IDE support for your language. For syntax highlighting you will have to add more extension points and implement some more interfaces.
Cheers,
Jurgen
On Tue, Oct 23, 2012 at 11:17 AM, E. Ghasabani
<ghasabani@xxxxxxxxxxx> wrote:
Hi,I am going to use IMP to create my own IDE for a new programming language. I want to use my existing AST representation and parser written in C++, but I don't know how to integrate them with the IMP. I have searched for a complete user guide or documentation a lot, but, unfortunately, nothing has been found. The IMP User's Guide does not elaborate how to integrate an existing parser with the IMP either. would you please help me in this regard?
Best Regards
_______________________________________________
imp-dev mailing list
imp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/imp-dev
--
Jurgen Vinju
- Centrum Wiskunde & Informatica - SEN1
- INRIA Lille - ATEAMS
- Universiteit van Amsterdam
www:
http://jurgen.vinju.org,
http://www.rascal-mpl.org,
http://twitter.com/jurgenvinju
skype: jurgen.vinju
_______________________________________________
imp-dev mailing list
imp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/imp-dev
_______________________________________________
imp-dev mailing list
imp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/imp-dev
--
Jurgen Vinju
- Centrum Wiskunde & Informatica - SEN1
- INRIA Lille - ATEAMS
- Universiteit van Amsterdam
www:
http://jurgen.vinju.org,
http://www.rascal-mpl.org,
http://twitter.com/jurgenvinju
skype: jurgen.vinju