3 ms·
But powerful languages of today let you build DSLs within them, so there is hardly a need to write a lexer/parser/semantics for a whole new language.
by p0nce 8y ago
But powerful languages of today let you build DSLs within them, so there is hardly a need to write a lexer/parser/semantics for a whole new language.
- loup-vaillant 8y agoThat would certainly be a good way to do it (though I reckon the limit between a mere library and an internal DSL is a bit fuzzy). Do you however have any widespread powerful language in mind? I don't know of any. Even all of them combined probably still doesn't count as "widespread". Also, once you understand the problem space well enough, a custom syntax can be a nice bonus.
- grumdan 8y agoI would say that Scala can be called widespread and allows for such embedded DSLs.