Caoyuan | 1 Feb 2008 04:46
Picon
Gravatar

Re: Re: Netbeans plugin

On Feb 1, 2008 1:51 AM, Saem <saemghani@...> wrote:
>
> Michael Campbell <michael.campbell <at> ...> writes:
>
> >
> > http://blogtrader.net/page/dcaoyuan/entry/scala_for_netbeans_screenshot_7
> >
> > Looks like Caoyuan's making big strides.  Will the (ever delayed) eclipse
> > plugin have all this sort of functionality?
> >
> > Is he able to do all this w/o getting into the compiler source?  If so, how,
> > and why can't the eclipse version do the same?
> >
> >
>
> I've been following the plugin, Caoyuan is leveraging a new tidbit in Netbeans
> 6, it's an abstraction for implementing language support in NB6. Not to mention,
> Caoyuan also wrote the Erlang Netbeans plugin, so he's also quite well versed in
> the implementing contextual support in NB.
>
> Perhaps Eclipse doesn't make it as easy?
>

There are big different between implementation of Scala for NetBeans
and Scala for Eclipse. My approach is writing another LL(k) Scala
grammar definition, and the Generic Language Framework in NetBeans
will parse the source files and return an AST tree, then I apply
semantic analyze on AST tree by myself. Most code are written in Java.
For Eclipse, I think most code are in Scala itself, since Scala has
had a very good compiler.
(Continue reading)


Gmane