From: Christian Johansson <christian@cvj.se>
To: Emacs developers <emacs-devel@gnu.org>
Subject: New package emacs-parser-generator
Date: Sat, 27 Nov 2021 22:40:45 +0100 [thread overview]
Message-ID: <c65948a4-235e-ba0a-de20-270133495f8a@cvj.se> (raw)
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
next reply other threads:[~2021-11-27 21:40 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-27 21:40 Christian Johansson [this message]
2021-11-28 7:01 ` New package emacs-parser-generator Eli Zaretskii
2021-11-28 7:22 ` Christian Johansson
2021-11-28 13:24 ` Stefan Monnier
2021-11-28 13:45 ` Christian Johansson
2021-11-28 23:46 ` Daniel Martín
2021-11-29 12:30 ` Eli Zaretskii
2021-11-29 13:09 ` Christian Johansson
2021-11-29 19:22 ` Yuan Fu
2021-12-01 7:52 ` Christian Johansson
2021-12-01 8:39 ` Yuan Fu
2021-12-01 8:51 ` Christian Johansson
2021-12-01 13:45 ` Stefan Monnier
2021-12-01 14:10 ` Christian Johansson
2021-12-01 19:25 ` Yuan Fu
2021-12-01 19:44 ` Christian Johansson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c65948a4-235e-ba0a-de20-270133495f8a@cvj.se \
--to=christian@cvj.se \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).