From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18274 invoked by alias); 4 Mar 2004 22:29:44 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 18261 invoked from network); 4 Mar 2004 22:29:43 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 4 Mar 2004 22:29:43 -0000 Received: from drow by nevyn.them.org with local (Exim 4.30 #1 (Debian)) id 1Az1La-0008LN-MC; Thu, 04 Mar 2004 17:29:42 -0500 Date: Thu, 04 Mar 2004 22:29:00 -0000 From: Daniel Jacobowitz To: Paul Hilfinger Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA] Add language-dependent post-parser Message-ID: <20040304222942.GB29911@nevyn.them.org> Mail-Followup-To: Paul Hilfinger , gdb-patches@sources.redhat.com References: <20040304113345.5DADDF2EDC@nile.gnat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040304113345.5DADDF2EDC@nile.gnat.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2004-03.o/txt/msg00077.txt Message-ID: <20040304222900.LQLeSirkFvhGuQSHAtphd6x8d08B-678udvEGPKOqfA@z> On Thu, Mar 04, 2004 at 06:33:45AM -0500, Paul Hilfinger wrote: > > For Ada, we found it convenient to do a name-resolution pass after parsing and > before evaluation of expressions. The most convenient form on which to > perform this resolution is the prefix form (that way, we can use the usual > type-computing machinery already included in expression evaluation). > Unfortunately, prefixification occurs after and separate from parsing. > The obvious thing to do was to add a function to the language vector for > post-parsing. For most languages, it does nothing. The patch below > does most of the work in inserting this hook, including the introduction > of a parse-in-type-context function that provides a type context for > the post-parser. In its current form, this patch is a NOP that merely > provides the hooks. Could you explain more about why you found this necessary? It's hard to evaluate the patch without that. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer