Going in a completely different direction, Haskell could make a nice, powerful configuration language.
If it compiles, it’s almost certainly correct.