Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » AST for other languages
AST for other languages [message #250439] Thu, 03 January 2008 22:37 Go to next message
Eclipse UserFriend
Originally posted by: tcelvis.gmail.com

Hi,

I need to create an Eclipse plug-in which will eventually become
a development tool for a programming language (VDM).

I can see that Eclipse has native support for parsing Java and traversing a
Java AST. Is there a more generic API for supporting other programming
languages ?

I have a functioning parser already and an AST structure, I just(!) need to
integrate it with Eclipse somehow.

Does anyone have any suggestions as to how I can go about this task
Re: AST for other languages [message #250443 is a reply to message #250439] Thu, 03 January 2008 23:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Thomas,

It sounds like you'd be interested in IMP:
http://www.eclipse.org/proposals/imp/


Thomas Christensen wrote:
> Hi,
>
> I need to create an Eclipse plug-in which will eventually become
> a development tool for a programming language (VDM).
>
> I can see that Eclipse has native support for parsing Java and traversing a
> Java AST. Is there a more generic API for supporting other programming
> languages ?
>
> I have a functioning parser already and an AST structure, I just(!) need to
> integrate it with Eclipse somehow.
>
> Does anyone have any suggestions as to how I can go about this task ín
> the best possible way ?
>
> Regards
> Thomas Christensen
>
>
>
Re: AST for other languages [message #250446 is a reply to message #250443] Fri, 04 January 2008 01:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tcelvis.gmail.com

Hi Ed,

Thanks for the pointer.

IMP looks very interesting indeed.

I hope the schedule for the first release in March 2008 still holds.

Regards

Thomas Christensen





"Ed Merks" <merks@ca.ibm.com> wrote in message
news:fljpqb$r8o$1@build.eclipse.org...
> Thomas,
>
> It sounds like you'd be interested in IMP:
> http://www.eclipse.org/proposals/imp/
>
>
> Thomas Christensen wrote:
>> Hi,
>>
>> I need to create an Eclipse plug-in which will eventually become
>> a development tool for a programming language (VDM).
>>
>> I can see that Eclipse has native support for parsing Java and traversing
>> a
>> Java AST. Is there a more generic API for supporting other programming
>> languages ?
>>
>> I have a functioning parser already and an AST structure, I just(!) need
>> to integrate it with Eclipse somehow.
>>
>> Does anyone have any suggestions as to how I can go about this task
Re: AST for other languages [message #250450 is a reply to message #250446] Fri, 04 January 2008 11:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

This is a multi-part message in MIME format.
--------------090209050205040804030606
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Thomas,

I hope so as well. The modeling project is quite interested in this
type of technology as it relates directly to designing and supporting
human readable notations for domain specific languages. I can also
imagine that an EMF model would make an ideal AST since it already
directly supports concepts of resources, object containment hierarchies,
cross document references, and a wealth of generic utilities that would
be directly applicable...


Thomas Christensen wrote:
> Hi Ed,
>
> Thanks for the pointer.
>
> IMP looks very interesting indeed.
>
> I hope the schedule for the first release in March 2008 still holds.
>
> Regards
>
> Thomas Christensen
>
>
>
>
>
> "Ed Merks" <merks@ca.ibm.com> wrote in message
> news:fljpqb$r8o$1@build.eclipse.org...
>
>> Thomas,
>>
>> It sounds like you'd be interested in IMP:
>> http://www.eclipse.org/proposals/imp/
>>
>>
>> Thomas Christensen wrote:
>>
>>> Hi,
>>>
>>> I need to create an Eclipse plug-in which will eventually become
>>> a development tool for a programming language (VDM).
>>>
>>> I can see that Eclipse has native support for parsing Java and traversing
>>> a
>>> Java AST. Is there a more generic API for supporting other programming
>>> languages ?
>>>
>>> I have a functioning parser already and an AST structure, I just(!) need
>>> to integrate it with Eclipse somehow.
>>>
>>> Does anyone have any suggestions as to how I can go about this task
Re: AST for other languages [message #250498 is a reply to message #250450] Tue, 08 January 2008 01:12 Go to previous message
Eclipse UserFriend
Originally posted by: tcelvis.gmail.com

Ed,

Actually, since VDM is a formal specification language
(http://en.wikipedia.org/wiki/VDM_specification_language), the language tool
front-end (parser, AST and type-checker) have been specified in VDM itself
and can easily be generated to Java classes.

IMP looks interesting in that it promises to support existing compiler
front-ends. I'm hoping I can re-use the existing parser and AST or at least
map it easily to the IMP AST. Currently we have a command-line parser
written in Java and an AST implemented as a number of Java classes (1 class
pr. language construct). The challenge will be to see how this fits into the
IMP framework.

I will read up on EMF, thanks for the pointer.

Regards
Thomas Christensen


"Ed Merks" <merks@ca.ibm.com> wrote in message
news:fll4u1$naj$1@build.eclipse.org...
Thomas,

I hope so as well. The modeling project is quite interested in this type of
technology as it relates directly to designing and supporting human readable
notations for domain specific languages. I can also imagine that an EMF
model would make an ideal AST since it already directly supports concepts of
resources, object containment hierarchies, cross document references, and a
wealth of generic utilities that would be directly applicable...


Thomas Christensen wrote:
Hi Ed,

Thanks for the pointer.

IMP looks very interesting indeed.

I hope the schedule for the first release in March 2008 still holds.

Regards

Thomas Christensen





"Ed Merks" <merks@ca.ibm.com> wrote in message
news:fljpqb$r8o$1@build.eclipse.org...

Thomas,

It sounds like you'd be interested in IMP:
http://www.eclipse.org/proposals/imp/


Thomas Christensen wrote:

Hi,

I need to create an Eclipse plug-in which will eventually become
a development tool for a programming language (VDM).

I can see that Eclipse has native support for parsing Java and traversing
a
Java AST. Is there a more generic API for supporting other programming
languages ?

I have a functioning parser already and an AST structure, I just(!) need
to integrate it with Eclipse somehow.

Does anyone have any suggestions as to how I can go about this task
Previous Topic:"implements/overrides" annotation line number
Next Topic:JDT AST question: why does EnumConstantDeclaration uses an anonymous class?
Goto Forum:
  


Current Time: Wed Sep 18 16:52:43 GMT 2024

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

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

Back to the top