sweet-js / sweet-core

Sweeten your JavaScript.
https://www.sweetjs.org
BSD 2-Clause "Simplified" License
4.58k stars 208 forks source link

Literal syntax #712

Open roman01la opened 7 years ago

roman01la commented 7 years ago

The last time I was using sweet.js (couple of years ago), it was possible to implement custom literal syntax for data structures:

#{ x: 1, y: 2 }

Couldn't figure out how to do it now. Can someone help please? Thanks!

gabejohnson commented 7 years ago

Sorry @roman01la, I thought I had responded to you. It would require extending the default readtable. Please see #687.