You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This peggy-tag library plays a similar role to my pegjs-template library for PEG.js. I'd love to contribute the features from that library to this one. In particular, I'd be interested in contributing:
The ability to interpolate in functions and use them as semantic actions. This allows you to get syntax highlighting and type checking for semantic actions, to use TypeScript in them, to capture JavaScript variables, etc etc. This isn't just interpolating the functions' source as a string; that would prevent things like capturing variables. Instead, under the hood, the functions are passed in to the parser via the grammar context.
The ability to define "partial" grammars that you can interpolate into other grammars, allowing you to share common definitions across multiple grammars. I find this pretty useful for lexical stuff in particular. Again, this isn't just interpolating the shared definitions as a string, because we want to take functions along for the ride.
I've found these features quite useful in my own work. What do you think; do these feel like a good fit for peggy-tag?
The text was updated successfully, but these errors were encountered:
Sorry I didn't get back to you in a timely fashion, I've been on the road for several weeks. I'm open to including these features, if you're still willing to contribute. Doing a release of peggy-tag is waiting on the next version of Peggy, so I'll turn my attention there next, hopefully.
I just discovered peggyjs. Really nice work!
This
peggy-tag
library plays a similar role to my pegjs-template library for PEG.js. I'd love to contribute the features from that library to this one. In particular, I'd be interested in contributing:I've found these features quite useful in my own work. What do you think; do these feel like a good fit for
peggy-tag
?The text was updated successfully, but these errors were encountered: