From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.devel Subject: Re: MPS codegen Date: Thu, 13 Jun 2024 19:09:12 -0400 Message-ID: References: <87le3b43qi.fsf@gmail.com> <86r0d21tqj.fsf@gnu.org> <877cetgqiz.fsf_-_@gmail.com> <87wmmsg2e4.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3057"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Helmut Eller , Eli Zaretskii , emacs-devel@gnu.org To: Gerd =?utf-8?Q?M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 14 01:09:56 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sHtZq-0000Xe-T7 for ged-emacs-devel@m.gmane-mx.org; Fri, 14 Jun 2024 01:09:55 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sHtZG-0001qX-Uh; Thu, 13 Jun 2024 19:09:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sHtZC-0001qA-52 for emacs-devel@gnu.org; Thu, 13 Jun 2024 19:09:14 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sHtZB-00063c-S8; Thu, 13 Jun 2024 19:09:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=Ds9Z7rwzzVEvaty6ab/tXSC9AzBy4mFdpSR1CfE8+Sw=; b=X4lGoAbox4LrUjjieMKa MNXkpLTijzASFHRDnyr0JvBetWl6eBr5I7g7f9qpm5MX2pniVZgsJYRnq6DpI8EtjVVij+w67OV0/ lz0D4pRWldqAbt6auB36JjTygdB6Shy4qVHJkSds9O8fhcy0r+054mz7AiU/JiXe4SlwDM+aD1h4L QfhvdrxI+Vb+W6NDB2qfQdbeDAs4LDpDbjqvAVB8xH8amjzQMVfg76xsdRxL4TjjpdXfM5A9Ahld0 Zf1pyJLepawp/pRjiqMYWVAJKGo0Jb/7Gz4VHY9cPH6vyIMrE8J0I2wtbjhl7G/r/GzwR7iy7SD/b MCOye2rhTEiOgw==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1sHtZB-0006gD-BU; Thu, 13 Jun 2024 19:09:13 -0400 In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Thu, 13 Jun 2024 20:24:55 +0200") X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:320044 Archived-At: Gerd M=C3=B6llmann writes: > Helmut Eller writes: > >>> I think the thing I don't like is that I believe there should be only >>> one description of an object's layout. Be it C (struct), or be it >>> somethings else, from which C is generated. >> >> Sure, but that's easier said than done. > > Yeah :-). Too bad that GCC doesn't have something like Clang's Python > API. Somehow I don't really believe in tree-sitter for this specific > purpose. But what do I know... It has (I think). I posted the link already somewhere in one of the MPS related threads: At the time I tried to hack something to generate the code you wanted (well my interpretation as I never got the minimal example I asked for) but when Eli suggested treesitter I gave-up as I thought was a good (and better) suggestion. Why do you think treesitter is not up to the task? Andrea