On Wednesday, 30.09.2015 at 09:49, Antti Kantee wrote: > On 30/09/15 08:15, Martin Lucina wrote: > >Have you considered simplifying the syntax even more? If we remove > >everything that's redundant your example from above becomes: > > > >=== snip === > >version 20150928 > > > >create hw_coolbeans "Insert coolbeans descr here" > > assimilate hw_virtio > > remove -lrumpkern_sysproxy > > add /home/pooka/startmsg.o > >=== snip === > > Good idea. > > >For prior art in this space, take a look at FireHOL, a firewall generator > >using a shell-based DSL for configuration: http://firehol.org/#firehol > > I feel like I typed "look rock" in an old Sierra game.
:-) > What, specifically, should I be looking at? It looks like a config file > format, not particularly unlike the other 5000 I've encountered. Nothing specific. I just wanted to provide an example of a declarative config file format which I personally use and find easy to understand without having to read too much documentation. Also, the generator itself is implemented entirely in shell, so it's a nice example of how you can build elegant DSLs in shell.
