AST for other languages [message #250439] |
Thu, 03 January 2008 22:37 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03386 seconds