[cfe-dev] Upstream StringLiteralParser?

Sean Silva chisophugis at gmail.com
Thu Jun 4 14:07:52 PDT 2015

On Thu, Jun 4, 2015 at 11:52 AM, Josh Klontz <josh.klontz at gmail.com> wrote:

> This is a humble request to consider upstreaming StringLiteralParser into
> core LLVM. To my knowledge, many languages seem to follow (at least a
> subset of) C/C++ string escaping conventions, and this file would be useful
> for those language designers (myself included) who might otherwise roll
> their own implementation.

There are actually a large variety of subtle differences. Most languages
are neither a subset nor a superset of C/C++ string escaping conventions.
Writing a string literal parser is easy anyway (just a loop with a switch).

-- Sean Silva

> v/r,
> Josh
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150604/7e6eff56/attachment.html>

More information about the cfe-dev mailing list