Re: refactoring using parser

Peng Yu <[email protected]>
Newsgroups gmane.comp.programming.refactoring
Message-ID <[email protected]>
On Fri, Nov 20, 2009 at 1:33 AM, Mirko Stocker <[email protected]> wrote:
>
>
>
> On Thursday 19 November 2009 00:06:38 Peng Yu wrote:
> > But the problem is that it is not easy to write a parse for any
> > full-blown languages (e.g. C++). It is also might take a lot of effort
> > to understand existing compiler to add refactoring functionality.
> >
> > I'm wondering what is the current trend in solving the
> > problem that I mentioned above.
>
> You're right, it's definitely not an easy task. I don't know if there's a
> trend, but with the rate of new languages popping up, tool developers are
> challenged to keep up, especially with dynamic languages that are even harder
> to analyze statically.
>
> You mentioned C++.. our institute is working on the refactoring tools for CDT
> [1] (the Eclipse C++ IDE) and I'm working on refactoring tools for Scala.
>
> Regards
>
> Mirko
>
> [1] http://ifs.hsr.ch/Projects/Projects/C_Refactoring (the page is slightly
> outdated I guess)

I mention C++ just as an example. Right now, I'm working with a few
different languages, C++, python, R. There might be other languages
that I will work with in the future.

Using existing refactoring tools might be a solution. But, I'm using
vim. A number of existing refactoring tools are integrated in Eclipse.
I heard a story that a group of programmers that worked closely
initially used different IDEs but eventually all converged to
vim/emacs and shell script, because these tools allows more
flexibility. Would you recommend me to learn to use Eclipse, if I want
to do refactoring for a number of languages?

Also, ctags can parse quite a number of languages, maybe it can be
used to help refactoring for various language.

Regards,
Peng


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/refactoring/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/refactoring/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.