From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Using incremental parsing in Emacs (via: emacs rendering comparisson between emacs23 and emacs26.3) Date: Sun, 29 Mar 2020 23:35:08 -0400 Message-ID: References: <83o8sf3r7i.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="53664"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org, Andrea Corallo To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 30 05:35:51 2020 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 1jIlDL-000DrO-41 for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Mar 2020 05:35:51 +0200 Original-Received: from localhost ([::1]:44254 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIlDK-0007az-6Q for ged-emacs-devel@m.gmane-mx.org; Sun, 29 Mar 2020 23:35:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32974) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIlCk-00070r-Uz for emacs-devel@gnu.org; Sun, 29 Mar 2020 23:35:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jIlCj-0002kF-Et for emacs-devel@gnu.org; Sun, 29 Mar 2020 23:35:14 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:44928) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jIlCh-0002hQ-Sk; Sun, 29 Mar 2020 23:35:12 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 1A85F80A55; Sun, 29 Mar 2020 23:35:11 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 522E280AB3; Sun, 29 Mar 2020 23:35:09 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1585539309; bh=J+YUwGWL5U/pchchNWyor0DtiI96EJv6/eBG8uWZo5Y=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=AKt2FmrcCw++hs5ynKF8x/9FXbFVHWpxV8ik22FQjuuTpqvkyP7Nqjm6WR2Zq/5kZ ni4kbqDEigA9C3cywDZ7YJxbbSKfYs2vyFr6DtFwD63xu/8cmha9tCVqL3nQIzmhqD F5WcTwhfUKDIW2mqf66onvQH4kUSzYaJ7A6ZUqMvwUQ8XANBKZfSeOvYB4/q1FZ/q0 OTTxb88tTuBEex6N+Wkv1dPpmRhXP0HtFJ8Sk4ju5ShbfgrLysMcopnXNLDEbiLB7p HGRp771fuM6VKd0xVRpdUBwtDXJz4J+doyQrYaTmzl6oLnt+EGvuPx8QsVznfa2sAo wq4wKyYjC76hw== Original-Received: from alfajor (unknown [104.247.241.114]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 1A69B1208C0; Sun, 29 Mar 2020 23:35:09 -0400 (EDT) In-Reply-To: <83o8sf3r7i.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 29 Mar 2020 22:18:25 +0300") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 132.204.25.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:245982 Archived-At: >> > Maybe those grammars could be compiled to some other representation (I >> > don't know if it is made mostly of data-tables or actual code or what)? >> IMO ideally should be lisp and we should leverage the native compiler >> for that, but I understand we are not there. > FWIW, it should indeed be possible to develop the grammars in Lisp, > but that is not the first goal in bringing such a package to Emacs. I'm not interested in changing the way grammars are *written*. I'm proposing investigating if the tree-sitter run-time library can be made to read an OS-and-architecture-neutral representation of the grammar. Stefan