Code assistance with GCC

Daniel Jacobowitz dan@codesourcery.com
Wed Apr 21 14:22:00 GMT 2010


On Wed, Apr 21, 2010 at 01:12:37PM +0200, Basile Starynkevitch wrote:
> However, I am not sure to understand why Tomohiro needs to hack the
> GCC parser itself. I was thinking that he might instead write a
> plugin which works at the Generic/TREE (or even perhaps  Gimple)
> level.

That doesn't make sense.  If you're doing code completion, then by
definition, what you have now does not parse.  If it doesn't parse,
you can't build IL from it.  A parser is pretty much all you need for
code completion, not any of the rest of the compiler (e.g. Eclipse has
just a parser and a syntax tree).

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gcc mailing list