[PATCH] Support ANSI escape sequences in the Lexer

Richard Smith richard at metafoo.co.uk
Fri May 30 14:32:47 PDT 2014


On Fri, May 30, 2014 at 2:04 PM, Alp Toker <alp at nuanti.com> wrote:

>
> On 30/05/2014 22:56, Richard Smith wrote:
>
>> This needs more thought and I don't have time right now. Maybe in 10
>> months or so...
>>
>> http://reviews.llvm.org/D3257
>>
>> Add support for ANSI escape sequences in the Lexer. In most cases, this
>> merely provides a superior error recovery experience (we diagnose and skip
>> over them, as we do with Unicode whitespace), but for ANSI color codes,
>> normalize them and include them in identifiers
>>
>>
> Presumably you'll rework this to include ANSI bell codes, along with any
> associated changes to emit identifiers that beep during codegen?
>

Yeah. The tricky part will be deferring the beep until the user reads a
diagnostic containing the identifier.


> Alp.
>
>  , as suggested on slides 52 and 53 of this presentation by Bjarne
>> Stroustrup:
>>
>> https://parasol.tamu.edu/people/bs/622-GP/C++11TAMU.pdf
>>
>>
>
> --
> http://www.nuanti.com
> the browser experts
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140530/dba8bab3/attachment.html>


More information about the cfe-commits mailing list