fabriquer / fabrique

A build description language
Other
3 stars 1 forks source link

function binding #26

Open trombonehero opened 9 years ago

trombonehero commented 9 years ago

Given a callable like:

generic = action('${tblgen} ${flags} -o ${output} ${source}'
                 <- source:file[in], output:file[out], flags:list[string],
                    tblgen:file[in]);

I want to create wrapper functions through binding:

clang = bind(generic, _, _, _, which.executable('clang-tblgen'));
llvm = bind(generic, _, _, _, which.executable('llvm-tblgen'));