From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Received: (qmail 14878 invoked from network); 10 Apr 2004 22:12:18 -0000 Received: from unknown (HELO nile.gnat.com) (205.232.38.5) by sources.redhat.com with SMTP; 10 Apr 2004 22:12:18 -0000 Received: from localhost (localhost [127.0.0.1]) by nile.gnat.com (Postfix) with ESMTP id 8F093F2D46; Sat, 10 Apr 2004 18:12:17 -0400 (EDT) Received: from nile.gnat.com ([127.0.0.1]) by localhost (nile.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18252-01-2; Sat, 10 Apr 2004 18:12:17 -0400 (EDT) Received: by nile.gnat.com (Postfix, from userid 1345) id 02A52F2CE7; Sat, 10 Apr 2004 18:12:16 -0400 (EDT) From: Paul Hilfinger To: drow@false.org Cc: gdb-patches@sources.redhat.com In-reply-to: <20040409214221.GA851@nevyn.them.org> (message from Daniel Jacobowitz on Fri, 9 Apr 2004 17:42:22 -0400) Subject: Re: [RFA] Add language-dependent post-parser References: <20040304113345.5DADDF2EDC@nile.gnat.com> <20040402163309.GA12915@nevyn.them.org> <20040407093235.B3165F2D8C@nile.gnat.com> <20040409214221.GA851@nevyn.them.org> Message-Id: <20040410221216.02A52F2CE7@nile.gnat.com> Date: Sat, 10 Apr 2004 22:12:00 -0000 X-Virus-Scanned: by amavisd-new at nile.gnat.com X-SW-Source: 2004-04/txt/msg00246.txt.bz2 > Thanks; this is OK. Thanks! This is now committed (tested on Linux with no regressions). P. Hilfinger > 2004-03-04 Paul N. Hilfinger > > * language.h (language_defn): Add new la_post_parser field. > * parser-defs.h (null_post_parser): New declaration (default for > la_post_parser). > > * parse.c (parse_exp_1): Move code to parse_exp_in_context and > insert call to that function. > (parse_exp_in_context): New function, including code formerly in > parse_exp_1. Calls language-dependent post-parser after > prefixification. > (parse_expression_in_context): New exported function. > (null_post_parser): New definition. > * expression.h (parse_expression_in_context): Add declaration. > > * p-lang.c (pascal_language_defn): Add trivial post-parser. > * c-lang.c (c_language_defn): Ditto. > (cplus_language_defn): Ditto. > (asm_language_defn): Ditto. > (minimal_language_defn): Ditto. > * f-lang.c (f_language_defn): Ditto. > * jv-lang.c (java_language_defn): Ditto. > * language.c (unknown_language_defn): Ditto. > (auto_language_defn): Ditto. > (local_language_defn): Ditto. > * m2-lang.c (m2_language_defn): Ditto. > * scm-lang.c (scm_language_defn): Ditto. > * obj-lang.c (objc_language_defn): Ditto.