[cfe-dev] RFC: Clang driver redesign (round 2)

Konstantin Tokarev annulen at yandex.ru
Tue Nov 8 04:52:00 PST 2011



08.11.2011, 16:10, "Alek Paunov" <alex at declera.com>:
> On 08.11.2011 13:23, James Molloy wrote:
>
>>  Many people want to have a configuration file that can do almost
>>  everything at invoke-time, but to cover all use cases that would
>>  require turing completeness and a full-on scripting language, which
>>  has been pooh-poohed already (and I don't agree with anyway).
>
> The two can be combined I think - configuration for let say 90% of the
> cases + scripting language loaded as optional plugin for the rest.
>
> Regarding configurations flexibility: Usually there are antagonism
> between the two polar structures of configuration trees: a) Structure
> symmetrical to full internal representations (fast and simple
> validation/loading/storing), z) Short, human-friendly DSL (possibly with
> inheritances, aliases, etc). In many projects the problem is resolved
> using additional tool which translates z) to a) on demand (only on z
> change), using a) templates as base.

There's no need to separate "90%" from "the rest" and design new DSL.
You can just use Lua as configuration file format.

-- 
Regards,
Konstantin



More information about the cfe-dev mailing list