3 ms·
> [...] A good programmer builds a working vocabulary. A good programmer does language design, [...] You see this more and more in "test languages" like cucumb
by sharpercoder 8y ago
> [...] A good programmer builds a working vocabulary. A good programmer does language design, [...]
You see this more and more in "test languages" like cucumber. These languages more explicitly allow programmers to specify domain items and behavior, much more so then general programming languages like Jav, C#, js, etc. I'm currently experimenting with a piece of software that actually does have a specific domain language defined using ANTLR. I'm totally unsure of this will make any sense, but at least it is fun to do. One benefit I can see already is that I now have fully typed & typechecked logging :). Another aspect I'm experimenting with is using it as a replacement for sais "test languages".
You can find my grammar here: https://github.com/generateui/jsettlers-web/blob/master/jsettlers.g4 https://github.com/generateui/jsettlers-web/blob/master/jset...