AST for other languages [message #250439] |
Thu, 03 January 2008 17: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 #250498 is a reply to message #250450] |
Mon, 07 January 2008 20: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.02965 seconds