From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Where to get language definition for bash tree-sitter? Date: Wed, 28 Dec 2022 19:11:00 +0200 Message-ID: <83wn6b8ndn.fsf@gnu.org> References: <83sfh110fq.fsf@gnu.org> <83ilhx0w9i.fsf@gnu.org> <831qok1zvg.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12334"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 28 18:11:27 2022 Return-path: Envelope-to: geh-help-gnu-emacs@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 1pAZxd-00031q-WA for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 28 Dec 2022 18:11:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pAZx5-0007sJ-Vk; Wed, 28 Dec 2022 12:10:52 -0500 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 1pAZx4-0007sA-Ma for help-gnu-emacs@gnu.org; Wed, 28 Dec 2022 12:10:50 -0500 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 1pAZx4-0002at-Ef for help-gnu-emacs@gnu.org; Wed, 28 Dec 2022 12:10:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=fuo478dvRh4XW0mYl9e9IygX5NZtm/AU35vDvz/S8NA=; b=DggqC98rbD2P tdc3/Mnp83+KGv8I7a/+DuMjrv9dEIZ0FiG7kytL/g34h+N4MVQhdO6IdJzdY4P8N0xS5y/8BVJN7 HajdH5I0NQ6IpUJo8zv5ZMhdZqsbUY2pwYI7tl8yNgc20Z9UvkbGcPuxA5ujoeZ/INNIMmY1Ux+49 STV/uisBNCx9m6Col/+Q61xbP4wR62wwWDrCWxT0AQ8KurwlrGdt94YxRXlckbr1MGACLxutQZqrS sq29W2+75aIwfxsdzDaP03mCP4OJ7o/uenfKvio3LzCR/pJ/iMeTIHJuKWd55D5gO0MN5+vi1V1hx YB+PeAUpavOELQehO8nrHw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pAZx3-000615-VX for help-gnu-emacs@gnu.org; Wed, 28 Dec 2022 12:10:50 -0500 In-Reply-To: (message from Jean Louis on Wed, 28 Dec 2022 12:05:11 +0300) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:141996 Archived-At: > Date: Wed, 28 Dec 2022 12:05:11 +0300 > From: Jean Louis > Cc: help-gnu-emacs@gnu.org > > I got these after compiling: > > -rw-r--r-- 1 476K Dec 28 11:32 parser.o > -rw-r--r-- 1 6.7K Dec 28 11:32 scanner.o > > How do I link them? > > gcc -shared maybe, but I know gcc just like you know Org. I don't know exactly how to do that on your system, and don't want to get you in trouble with stuff you aren't familiar with. Sorry. Perhaps someone else will be able to help. (In general, if you don't know how to build a shared library on your system, my recommendation would be to wait for your distro to offer these grammar libraries ready to install. No disaster will happen if you delay experiencing tree-sitter and the features it supports until your distro provides that.)