[Click] compound element in separate file?

Eddie Kohler kohler at cs.ucla.edu
Fri Dec 7 17:56:40 EST 2007


Hi Nele,

You can't do this exactly.  However, people have had good success using cpp 
(the C preprocessor) as a front end.  For example:

classes.clickp
================================
elementclass X { ... }

x.clickp
================================
#include "classes.clickp"
X;

================================
Then:

% cpp x.clickp | click

or

% cpp x.clickp | click-install

Eddie



Nele Gheysens wrote:
> Hello,
> 
> we were wondering whether it is possible to define a compound element in 
> a separate file, and 'include' this file in another click script.
> (In this way we can separate the functionality of a specific part of our 
> implementation from a generic click framework that we put around it. So 
> it would be easier to compare 2 different solutions by just changing the 
> name of the compound element and including another click script...)
> 
> Kind regards,
>    Nele & Daan
> 


More information about the click mailing list