From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: Using incremental parsing in Emacs (via: emacs rendering comparisson between emacs23 and emacs26.3) Date: Tue, 31 Mar 2020 16:39:18 -0800 Message-ID: <86tv24hweh.fsf@stephe-leake.org> References: <83o8sf3r7i.fsf@gnu.org> <364B2177-3E83-4230-A019-0BBD0F1151FB@gnu.org> <83369q3ped.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="24391"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (windows-nt) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Apr 01 02:40:18 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 1jJRQX-0006HL-Uw for ged-emacs-devel@m.gmane-mx.org; Wed, 01 Apr 2020 02:40:17 +0200 Original-Received: from localhost ([::1]:45518 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJRQX-00045w-0w for ged-emacs-devel@m.gmane-mx.org; Tue, 31 Mar 2020 20:40:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58459) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJRPi-0003St-4u for emacs-devel@gnu.org; Tue, 31 Mar 2020 20:39:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jJRPg-0004Fe-1i for emacs-devel@gnu.org; Tue, 31 Mar 2020 20:39:25 -0400 Original-Received: from gateway31.websitewelcome.com ([192.185.143.47]:43724) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jJRPf-0004Ca-La for emacs-devel@gnu.org; Tue, 31 Mar 2020 20:39:23 -0400 Original-Received: from cm12.websitewelcome.com (cm12.websitewelcome.com [100.42.49.8]) by gateway31.websitewelcome.com (Postfix) with ESMTP id DF6841E177C for ; Tue, 31 Mar 2020 19:39:21 -0500 (CDT) Original-Received: from host2007.hostmonster.com ([67.20.76.71]) by cmsmtp with SMTP id JRPdjLod31s2xJRPdj24IU; Tue, 31 Mar 2020 19:39:21 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=stephe-leake.org; s=default; h=Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:To:From:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=/t1g8Oq8JsIxYHgaVEr3+HWNbsOxpjP7rmoPuSgm40c=; b=Ib2XohOyxXfawnE3aJt3iPBnV m/yn9KpnXSRJf8WQLSyblrg4KneCTRqsKR1KgiF1tg/YNhx0sU0QhqDEtZzEVHCz7PSza15MhxHIp 3vgHziDBV4BNxgwlcXiuDabBfq0uCFLwb/ZGTajuIS0cn0bizOCWBZ+rwgJR3dmKsoJR/GUKBRWrD 6PeU4t5GxdFe+HyxBNA74urEVroAniHM4rTfgzzu8ZUVdu9wFJSE9miwPQng5NTUlIG3I6sV2mELe 5nMmqFaEvnZxNuGQisoThG/7Pntw2YfMSNXCcBRSTR66IMd+Fn7E1fpLYR/Y/h0+WmvdtmxeYcSnp Rm3pcMNhQ==; Original-Received: from [76.77.182.20] (port=61866 helo=Takver4) by host2007.hostmonster.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1jJRPd-003A2o-9N for emacs-devel@gnu.org; Tue, 31 Mar 2020 18:39:21 -0600 In-Reply-To: (Stefan Monnier's message of "Mon, 30 Mar 2020 11:03:46 -0400") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host2007.hostmonster.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stephe-leake.org X-BWhitelist: no X-Source-IP: 76.77.182.20 X-Source-L: No X-Exim-ID: 1jJRPd-003A2o-9N X-Source-Sender: (Takver4) [76.77.182.20]:61866 X-Source-Auth: stephen_leake@stephe-leake.org X-Email-Count: 7 X-Source-Cap: c3RlcGhlbGU7c3RlcGhlbGU7aG9zdDIwMDcuaG9zdG1vbnN0ZXIuY29t X-Local-Domain: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 192.185.143.47 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:246168 Archived-At: Stefan Monnier writes: >>> > What is "OS-and-architecture-neutral representation of the grammar" and how >>> > it is different from what tree-sitter uses now? >>> >>> I don't know, that's part of the question (well, I know what I mean by >>> an "OS-and-architecture-neutral representation", of course, >>> but I believe you also understand this concept). >> >> Actually, no, I don't. It was a serious question, I didn't understand >> what grammar representation you had in mind. > > I don't have any in mind. It just needs to be > OS-and-architecture-neutral (otherwise it requires either distribution > of pre-compiled versions (with the logistical problem of covering all > possible OSes and architectures), or it requires a compiler on the > end-user machine). At one extreme, the source code for the grammar is OS-and-architecture-neutral. Tree-sitter compiles the source code to binary (presumably in a linkable library). There may be some intermediate representation of the grammar that would be useful in some way, but I don't see how. Normally, wisi compiles the grammar source to Ada code, then compiles that to an executable, wisi also provides a "text_rep" representation of the LR parse table (almost-readable ASCII text), but that's an implementation detail; the Ada compiler can't handle very large tables when represented as compilable Ada source. semantic compiles a grammar to elisp source, then byte-compiles that. -- -- Stephe