From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: HaiJun Zhang Newsgroups: gmane.emacs.devel Subject: RE: Using incremental parsing in Emacs Date: Sat, 4 Jan 2020 11:46:59 +0800 Message-ID: References: <83blrkj1o1.fsf@gnu.org> <86zhf4gwhl.fsf@stephe-leake.org> <83tv5cgvar.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="5e100ab8_1d206b8e_4379" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="98245"; mail-complaints-to="usenet@blaine.gmane.org" Cc: "=?utf-8?Q?emacs-devel=40gnu.org?=" To: Eli Zaretskii , Stephen Leake , arthur miller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 04 04:47:34 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1inaPT-000PLn-Ch for ged-emacs-devel@m.gmane.org; Sat, 04 Jan 2020 04:47:32 +0100 Original-Received: from localhost ([::1]:59162 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1inaPR-00062x-ME for ged-emacs-devel@m.gmane.org; Fri, 03 Jan 2020 22:47:29 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36001) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1inaPJ-00062f-HJ for emacs-devel@gnu.org; Fri, 03 Jan 2020 22:47:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1inaPH-0000XF-WC for emacs-devel@gnu.org; Fri, 03 Jan 2020 22:47:21 -0500 Original-Received: from mail-oln040092253079.outbound.protection.outlook.com ([40.92.253.79]:21088 helo=APC01-SG2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1inaPB-0000EL-AX; Fri, 03 Jan 2020 22:47:15 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fOtMbF9LzGkXvDM4CL6WnpoIGlG+CoTHERPKgk284kb5IgXNFfclk4SUuBEV9WfUApN/1pdyj7LzDCaR15RRVG22ScKAe2BoexfY7kwtpyrAp5eK9xTOxLH+eyZ5zk5tTsWo1xz8jE0zDXFoSL17WbBzX385501Lp3jPIXl+eJWcR3x0gyskP5wzl1N1c1Ye8xrEHmSGY3GNWffnZV76S1TCirMMDI9U3s0GbizB1KY3TAU6p0eOmPE8laOUeCQmaS8QPcbwtStOl6l5f7EbIU9hV1u9cINujUBIvx1ZrvotfyxO/b64/etQafNLjtZI529gyHvAOUZoyZOfbubU4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uykB6l4WP3ZKae/GGNryKwAY/KuPLQp4EbFZ6u+7Szg=; b=kXLsQlbW5R8DbowhQl99QCTRN/YmoZoiqymy39TXZxKkfNZ92yz11SIVfdK0xLbbvT1pF8VosOTkEFfeoXJunlwMQ/2DpM8ctyTboWmxHaxj5JMJvS9clsk3CO/en80JVBH/aD++Kx0BgHcVTleDdvTKI4BtUh1wl0spGvI1wS3LCfkKvJ7PCbrc4wu01EmNYnyY8qR7yK/TZNyS3tubERO/NgXip4igh/a/LTprNxRHvtqnpuLXq9sZnWV1na+jcar+6AMvBBQa9GUq+sTyxTIgbiRVsgiN3jz5sOtZyOw+WvfvR8ys85h2UNcWLuspbOXYBA36ml79bDxDQN8X2Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uykB6l4WP3ZKae/GGNryKwAY/KuPLQp4EbFZ6u+7Szg=; b=qsZ2lorBM1qP75nZM83C2bQ2+zWFdZOzyi7OKH7+6iKpgdPkLnJRULRkg2EMutysSYKOCkQmMThpJwLCf4hjGnE1eLKr3sIhVL1YkA5fRC9RkQneDGc2z2tJCa+bwd/9VIXWmC2pbE16j6dEvTkrBZB7hXQlKrTvoQgoTvSGCOAMe0uQhVN+Ks9ySGesRI53hew5iUeoj1rICxS5v1wzWkw9Ctev1vlFC+CnkbF3LaOi26uc4A8mjJwMKK13BeIq4bWM1RqxlJavzNtQivZjJTRMaaEXFtsBtomW0BopppGA/ZpaBACBl3SiGeqvKbJcffytMm0Qd5FMm5h1syuhbQ== Original-Received: from SG2APC01FT116.eop-APC01.prod.protection.outlook.com (10.152.250.57) by SG2APC01HT139.eop-APC01.prod.protection.outlook.com (10.152.251.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11; Sat, 4 Jan 2020 03:47:08 +0000 Original-Received: from PS1PR03MB3606.apcprd03.prod.outlook.com (10.152.250.55) by SG2APC01FT116.mail.protection.outlook.com (10.152.250.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Sat, 4 Jan 2020 03:47:08 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:E6AFB813EA595C1C92E371EB6554C4773BC90BFC0EC553126CC69C7683C0C24A; UpperCasedChecksum:FACDA609788836D510A2C5AEEA180DDDD9A42B06F71E0AD7750E25653CDEB716; SizeAsReceived:8961; Count:48 Original-Received: from PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117]) by PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117%7]) with mapi id 15.20.2623.002; Sat, 4 Jan 2020 03:47:08 +0000 In-Reply-To: X-Readdle-Message-ID: cb014327-48f3-486e-b928-d23393099d8c@Spark X-ClientProxiedBy: HK2PR0302CA0003.apcprd03.prod.outlook.com (2603:1096:202::13) To PS1PR03MB3606.apcprd03.prod.outlook.com (2603:1096:803:4e::17) X-Microsoft-Original-Message-ID: Original-Received: from [192.168.1.103] (1.199.245.197) by HK2PR0302CA0003.apcprd03.prod.outlook.com (2603:1096:202::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2623.3 via Frontend Transport; Sat, 4 Jan 2020 03:47:07 +0000 X-Readdle-Message-ID: cb014327-48f3-486e-b928-d23393099d8c@Spark X-Microsoft-Original-Message-ID: X-TMN: [6Ze1Wv3Q5KQaz+Sy8nnHgeac9i84b0Hy] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 52a76fd6-5c37-4907-ba0a-08d790c8c5d1 X-MS-Exchange-SLBlob-MailProps: q+fD6XS3/UKz/FNZZPqLptteq8XaJPboN+URyJpTLIosqqyftxTZWgbkUDQnxlgfLnLBrT6ZC7OFh4lhjHwwHbPLcXknShA/J7KtAufN2fHkC/f8IxK2GogcriNbGHc2oNvhZ7SL3IM90v/xau88D5Th9taKqSWmMGuXqVRBZw7xOMoxcALSsZsklB6ztlmLoK9O8WU7/LwtsuLP/V0IJU2PHhbblE6+rPrEoN23l5av94HYWGMFfHFY/w2JD8DV3kBGeWgnU2FQt55GF+2QlBxmYcbKagIPD3Le7P/KvgCebGd0hZR7tS4RrWgejPgK8INV0eSx7SnufbsDxKJQHcp/GTMfYKSaURC1ZPV0HEJPcJwyvhHjIgryJMxjkS9yMLX0/Pv/7yc56yVH9Hu/70fh1/8uHoJpBmQqX00qmW5t28JpPUMcNmicGM1aMSq7UeNmyEwIICzR08r826j2p+58uIeLMY5Wky03dvzKlmXYw5K2HbGw+I1fYcDqKQwhJXLVrOJYnqe6uIZ6hf3Ig+f5n/uMYOfWmYYWN2eN/8LizWPIyRK3ePRIjsfEBn+J/W1xyZjx/NqufvD7ECUl8EwUJmxaHlK3D+E9Ug19NUTyA3oIexvkmC+5moPyQr25sY6QhmLRBL193Ys/ACI9YL3HEVuAznq2zZ2TNz0xITSWlttv45AM6+k4q2mJWohtI16foQv/mQFenskTdS3vmg== X-MS-TrafficTypeDiagnostic: SG2APC01HT139: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1A6kePyOIB1gMA28mj6NGn5Nr1hVzk7jpsMciqgOy/OeOtSHX0DDt01OQ+tEITaz9TgxN7fhyZR3pRsZ7F1gkwM2STdUfzJuTFtqBGjrzVfelyb8OSyarNcWVFoUzRfv54FmYfARG7pMDtclhOC3DXa0OdgpE1s5dh3/lGHuCPqIvaSrn7kBrVKIqZ+phMZF X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 52a76fd6-5c37-4907-ba0a-08d790c8c5d1 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2020 03:47:08.6087 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2APC01HT139 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 40.92.253.79 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:243905 Archived-At: --5e100ab8_1d206b8e_4379 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =E5=9C=A8 2020=E5=B9=B41=E6=9C=884=E6=97=A5 +0800 AM6:30=EF=BC=8Carthur m= iller =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > When it comes to tree-sitter which you linked to, I didn't understand f= rom their website how they deal with compile time dependencies and variou= s configuration options that are usually passed via configure & co. > > Various lsp implementations like ycmd and lsp-mode can use =22compile d= atabase=22 produced by tools like bear, compiledb and similar. As I see o= n teee-sitter they only speak about language grammars. I have though only= read their website tonight after you posted your mail. > Yes, grammars only. It is enough for font-lock, indention and imenu to us= e. And it is much more powerfull than the current=C2=A0regexp- and syntax= -pps-based one. What you ask for needs much more work to implement. And you need to setup= a project before editing a file. --5e100ab8_1d206b8e_4379 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
=E5=9C=A8 2020=E5=B9=B41=E6=9C=884=E6=97= =A5 +0800 AM6:30=EF=BC=8Carthur miller <arthur.miller@live.com>= =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A
When it comes to tree-sitter which you linked to, I didn'= t understand from their website how they deal with compile time dependencie= s and various configuration options that are usually passed via configure &= amp; co.

Various lsp implementations like ycmd and lsp-mode can us= e "compile database" produced by tools like bear, compiledb and s= imilar. As I see on teee-sitter they only speak about language grammars. I = have though only read their website tonight after you posted your mail.
 

Yes, grammars only. It is enough for font-lock, indention and imenu to= use. And it is much more powerfull than the current regexp- a= nd syntax-pps-based one. 
What you ask for needs much more work to implemen= t. And you need to setup a project before editing a file.

--5e100ab8_1d206b8e_4379--