From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.8 required=3.0 tests=BAYES_50,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a05:620a:135c:: with SMTP id c28mr21092866qkl.18.1630315308380; Mon, 30 Aug 2021 02:21:48 -0700 (PDT) X-Received: by 2002:a25:b18e:: with SMTP id h14mr23157679ybj.165.1630315308021; Mon, 30 Aug 2021 02:21:48 -0700 (PDT) Path: eternal-september.org!reader02.eternal-september.org!feeder1.feed.usenet.farm!feed.usenet.farm!tr3.eu1.usenetexpress.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 30 Aug 2021 02:21:47 -0700 (PDT) Injection-Info: google-groups.googlegroups.com; posting-host=87.88.29.208; posting-account=6yLzewoAAABoisbSsCJH1SPMc9UrfXBH NNTP-Posting-Host: 87.88.29.208 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Emacs mode: using tree-sitter From: Emmanuel Briot Injection-Date: Mon, 30 Aug 2021 09:21:48 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:62583 List-Id: I was looking recently at both Emacs and vim recent updates, and noted that= both those tools now provide interfaces to tree-sitter (https://tree-sitte= r.github.io/tree-sitter/) which is a parser generator and incremental parsi= ng library. It doesn't have an Ada parser yet, though :-( It might be nice, as a community, to work on such a parser though. I did no= t look into what that implies yet, maybe someone else has already started w= ork on that. The advantage might be that the Emacs ada-mode can use that instead of its = home-brewed parser (which although I am sure it was fun to develop still li= kely requires some maintenance by Stephen, and definitely requires manually= compiling some Ada code before we can use the ada-mode). We could also use it to improve the current vim ada-mode, which hasn't been= updated in years and could do with various improvements. Finally, maybe we could talk with the GNAT Studio team. I don't think they = have looked into tree-sitter yet, but it might be useful. I do not know whether tools like Visual Studio Code also interface with tre= e-sitter, but maybe that library will become the equivalent of the Language= Server Protocol, and companies provide one tree-sitter parser + one langua= ge server and the IDE automatically gains support for Ada Emmanuel