From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Subject: Re: How to implement a new WebAssembly major-mode
Date: Thu, 11 Jan 2018 09:04:19 -0500 [thread overview]
Message-ID: <jwvinc87b48.fsf-monnier+gmane.emacs.devel@gnu.org> (raw)
In-Reply-To: 878td5odnr.fsf@x230.lts
> I now come to the project proposal. I think it would be beneficial to
> add WebAssembly support in Emacs.
I'd welcome a webassembly package into GNU ELPA, indeed.
> I started making a `major-mode` prototype, but I don’t see anywhere I
> could start given its S-exp syntax, but no Lisp support.
Not sure exactly what you mean here. What have you tried that didn't work?
> I also noticed there are many ways to make the parser (I can count
> 5 at least) and I’m not sure what would be the best choice for
> maintainability. I.E. I can make my own parsing functions, use
> Bison/Wisent, or use Semantic, etc. Not to even count the
> syntax-table.
For the parsing needed for indentation and such, I think syntax-tables
should work just fine (with maybe a bit of syntax-propertize for (;...;)
comments).
As for real parsing for subsequent processing such as interpretation,
I'd try to just use `read` with some pre/post processing to handle the
few incompatibilities.
Stefan
prev parent reply other threads:[~2018-01-11 14:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-10 16:56 How to implement a new WebAssembly major-mode Etienne Prud’homme
2018-01-11 14:04 ` Stefan Monnier [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvinc87b48.fsf-monnier+gmane.emacs.devel@gnu.org \
--to=monnier@iro.umontreal.ca \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.