3 ms·
Oh, one other interesting thing about hyperscript is that it is a pluggable parser so you can add new language features to it if you want. Kinda neat.
by recursivedoubts 3y ago
Oh, one other interesting thing about hyperscript is that it is a pluggable parser so you can add new language features to it if you want. Kinda neat.
- eyelidlessness 3y agoThat’s definitely a neat idea. Is it modeled after any specific language customization approach? Is it well positioned for, say, macros?
- recursivedoubts 3y agoI know tcl also allows you to extend the language, but i have to admit I've never looked too much into it. Like tcl, hyperscript has strong start tokens for most statement-like things (we call them commands, as does tcl if i understand correctly). I don't think it maps well to macros, it's just an open parser that you can plug new stuff into pretty easily by adding a keyword + some parsing and eval logic to dynamically.