emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to implement a new WebAssembly major-mode


From: Stefan Monnier
Subject: Re: How to implement a new WebAssembly major-mode
Date: Thu, 11 Jan 2018 09:04:19 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]