From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gnu.wildebeest.org (wildebeest.demon.nl [212.238.236.112]) by sourceware.org (Postfix) with ESMTPS id 16245384841F for ; Thu, 5 Aug 2021 19:37:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 16245384841F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=klomp.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=klomp.org Received: from reform (deer0x02.wildebeest.org [172.31.17.132]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gnu.wildebeest.org (Postfix) with ESMTPSA id 93AE530291A9; Thu, 5 Aug 2021 21:37:20 +0200 (CEST) Received: by reform (Postfix, from userid 1000) id 902FE2E8070E; Thu, 5 Aug 2021 21:37:20 +0200 (CEST) Date: Thu, 5 Aug 2021 21:37:20 +0200 From: Mark Wielaard To: Thomas Schwinge Cc: gcc-rust@gcc.gnu.org Subject: Re: [PATCH] Pass pratt parsed token to expr parser functions to fix expr locus Message-ID: References: <20210728221342.77649-1-mark@klomp.org> <01C0429E-15F9-45A7-B800-400EEBDF13CD@gmail.com> <9c9db19145176d664a6e944c1ff7108ce61215ae.camel@klomp.org> <87r1fh9mhx.fsf@euler.schwinge.homeip.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-rust@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: gcc-rust mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Aug 2021 19:37:25 -0000 Hi, On Fri, Jul 30, 2021 at 03:03:13AM +0200, Mark Wielaard wrote: > That variant is attached and can also be found here: > https://code.wildebeest.org/git/user/mjw/gccrs/commit/?h=pass-pratt-parse-loc > The original is also here: > https://code.wildebeest.org/git/user/mjw/gccrs/commit/?h=pass-pratt-parse-token > > Hopefully one of the two is acceptable. If not please let me know how > to rewrite it in a cheaper more idiomatic way. Any feedback on these patches? I really like to get the locations correct for these pratt parsed expressions. If both variants are problematic please let me know what I can do to improve them. Thanks, Mark