melt-umn / silver

An attribute grammar-based programming language for composable language extensions
http://melt.cs.umn.edu/silver/
GNU Lesser General Public License v3.0
58 stars 7 forks source link

Javascript backend #809

Open krame505 opened 11 months ago

krame505 commented 11 months ago

It would be nice to add a javascript translation at some point, which would let us do nice in-browser demos. This should be fairly straightforward to implement (e.g. decorated nodes as objects with members for each attribute, etc.), aside from parsing. The easiest approach would be to hook up something like treesitter, which isn't 1:1 compatible with Copper, or add a javascript backend to Copper.