From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christian Johansson Newsgroups: gmane.emacs.devel Subject: New package emacs-parser-generator Date: Sat, 27 Nov 2021 22:40:45 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13963"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.2.1 To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 27 22:42:09 2021 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 1mr5SS-0003QK-KW for ged-emacs-devel@m.gmane-mx.org; Sat, 27 Nov 2021 22:42:08 +0100 Original-Received: from localhost ([::1]:36592 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mr5SR-0004ea-Bd for ged-emacs-devel@m.gmane-mx.org; Sat, 27 Nov 2021 16:42:07 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41532) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mr5RE-0003sX-Jm for emacs-devel@gnu.org; Sat, 27 Nov 2021 16:40:52 -0500 Original-Received: from mailrelay2-3.pub.mailoutpod1-cph3.one.com ([46.30.212.11]:35996) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mr5RB-00069d-NA for emacs-devel@gnu.org; Sat, 27 Nov 2021 16:40:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cvj.se; s=20191106; h=content-transfer-encoding:content-type:subject:from:to:mime-version:date: message-id:from; bh=cYxLDM32jXHvzmwpsDXMKcmgWyFLvjBq1p8N5L0sYSE=; b=bgekE4LynsqL4AdHosu5G1eOlHjg0jc+QF+zc73MrdVf85+sDxH0LU0wGi+d0CIDLn/5o/hFxlQTk uLIRmu2WEN4SWnRsp9tu2dZz8IQpp6Clb+DBB8TKjXhkMvrf3kdz7OVVvCjCjxjRysZfXJP22FTk3x gLdoO3MJuSBvIAV9vVLFaLXV6IsCKtu9GkxMaOm2+reXjRCZ0QiwIkRx9T69q0Zzo9dB+uL0bBpFop dyaSDrcay/eXhzgRyO+q74DAhs6EjwwCo5CzOUbxrhHRN53OHnhSXzAl69p30lu+XTLLvHVGUbjSMP CjCdTJhEekxBW4M7Vu2YyEDi9sJCnRQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cvj.se; s=rsa1; h=content-transfer-encoding:content-type:subject:from:to:mime-version:date: message-id:from; bh=cYxLDM32jXHvzmwpsDXMKcmgWyFLvjBq1p8N5L0sYSE=; b=PcL312yoxXdjMKA7OR9OP2uf0iHG5ctKdqH7GN8ooo0ZVRAkGC57E4oPntSS+6nj0K7Y0nJF1cCUB tA1vLaACil8YBBjOGCG1zeMw9AJC42qYVRi58+aATVxqPUszOuzLo/Arof/sjSgyEAT3nrrPGFTyAh fDni5r9GKAynAPnaCU/ZsVeM/tOX/EwG6+aq2E2SNqkCGbzU6/N2LGmTN5N0Gfo5iR8ooXl6co5RRk BYSxnGafcG1Rj3fTMG83q7cjoFipwVf6EWyas1PT7oYCdkfq/F817Jqw12LWf21GcctxrFGfSv4g7W ePa2H1iOQ/RC4+lAd8OdrqmSKtliimA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=cvj.se; s=ed1; h=content-transfer-encoding:content-type:subject:from:to:mime-version:date: message-id:from; bh=cYxLDM32jXHvzmwpsDXMKcmgWyFLvjBq1p8N5L0sYSE=; b=IBS8muBI2yNfmwMd6CUsX6VyWn1qStdI7Ds/7groTgN8jYWWjmurpr3zciTmm+/09GFNrMfFGPzTQ WAMfCvrDA== X-HalOne-Cookie: 543c0efa4da9ce8ca9b76c970b7f72e1da540803 X-HalOne-ID: ac183ff6-4fca-11ec-bd61-d0431ea8a290 Original-Received: from [192.168.50.160] (c188-150-212-230.bredband.tele2.se [188.150.212.230]) by mailrelay2.pub.mailoutpod1-cph3.one.com (Halon) with ESMTPSA id ac183ff6-4fca-11ec-bd61-d0431ea8a290; Sat, 27 Nov 2021 21:40:44 +0000 (UTC) Content-Language: en-US Received-SPF: none client-ip=46.30.212.11; envelope-from=christian@cvj.se; helo=mailrelay2-3.pub.mailoutpod1-cph3.one.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:280355 Archived-At: Hi! I have started on a parser generator library for Emacs that currently can generate canonical LR(k) parsers as stand-alone elisp files. I'm using it for the automatically generated PHP 8.0 parser in phps-mode. A difference between my library and the built-in Wisent parser generator is that it can handle e-identifiers (like %empty), context sensitive precedence (like %prec) and global precedence rules (not sure if Wisent does support that) In the future I have planned on implementing more parsing algorithms in this library like LL(k) and LALR(k) It is located at https://github.com/cjohansson/emacs-parser-generator  (GitHub is currently down it seems but when it gets up again it should be at that location) -- Hälsningar / Best Regards Christian