From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4361 invoked by alias); 21 Apr 2010 12:32:18 -0000 Received: (qmail 4346 invoked by uid 22791); 21 Apr 2010 12:32:16 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00,SPF_FAIL X-Spam-Check-By: sourceware.org Received: from mx20.gnu.org (HELO mx20.gnu.org) (199.232.41.8) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 21 Apr 2010 12:32:11 +0000 Received: from mail.codesourcery.com ([38.113.113.100]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1O4Z69-0003uq-CB for gcc@gcc.gnu.org; Wed, 21 Apr 2010 08:32:09 -0400 Received: (qmail 1648 invoked from network); 21 Apr 2010 12:32:05 -0000 Received: from unknown (HELO caradoc.them.org) (dan@127.0.0.2) by mail.codesourcery.com with ESMTPA; 21 Apr 2010 12:32:05 -0000 Date: Wed, 21 Apr 2010 14:22:00 -0000 From: Daniel Jacobowitz To: Basile Starynkevitch Cc: Tomohiro Matsuyama , gcc@gcc.gnu.org Subject: Re: Code assistance with GCC Message-ID: <20100421123158.GA15473@caradoc.them.org> Mail-Followup-To: Basile Starynkevitch , Tomohiro Matsuyama , gcc@gcc.gnu.org References: <4BCED45A.6040609@cx4a.org> <4BCEDDA5.508@starynkevitch.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4BCEDDA5.508@starynkevitch.net> User-Agent: Mutt/1.5.20 (2009-06-14) X-detected-operating-system: by mx20.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2010-04/txt/msg00438.txt.bz2 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