[cfe-dev] -emit-html example

Argiris Kirtzidis akyrtzi at gmail.com
Fri May 9 16:49:06 PDT 2008


Hi Ted,

Ted Kremenek wrote:
>
> On May 1, 2008, at 2:10 PM, Argiris Kirtzidis wrote:
>
>> My motivation to propose the Annotator lib wasn't specifically to 
>> apply it for HTMLPrinter, that was more like an example.
>> The Annotator's purpose would be to verify clang's suitability for an 
>> IDE, at least from the aspect of syntax/semantic colorizing. For 
>> example it would answer questions like:
>> -Can I colorize all variable names ? (with exclusive color)
>> -Can I colorize all type names ?
>> -Can I associate opening/closing braces for all kinds of blocks 
>> (namespaces, functions etc.) ?
>> -Does the AST carry enough information for doing [insert task] ?
>>
>> Now, assuming that you have a working Annotator lib, the best way to 
>> put it to use (without messing with some IDE) would be to make a 
>> HTMLAnnotator.
>> HTMLAnnotator would be a client of Annotator and HTML Rewrite API.
>
> I think have a playground for such things is useful, but I know if we 
> need a separate library at this point.  Probably just adding the 
> Annotator class to the Driver would be sufficient for now.  We can 
> then easily move it out.  I also don't know if the extra layer of 
> indirection is needed until we have another Annotator in mind besides 
> HTMLAnnotator (i.e., can we just use the HTMLPrinter directly to 
> explore your above questions?).  I'm not strongly objecting against 
> adding Annotator; it's just not clear to me that there are other 
> clients that would use it.

Yes, I see your point, not much of need for a separate library at the 
moment.


-Argiris



More information about the cfe-dev mailing list