[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Raw string literals in Emacs lisp.

From: Stephen J. Turnbull
Subject: Re: Raw string literals in Emacs lisp.
Date: Sun, 03 Aug 2014 15:50:24 +0900

David Kastrup writes:

 > r#"?\" is a complete string.  How do you parse it backwards?

By catching the parse error when parsing it as a (normal) string, then
reparsing it as a raw string (ie, running backwards over the
characters until you hit the second ?"), and check for a leading #r
(two tokens of lookahead).

Thanks for the example, David, XEmacs is buggy here (or maybe
terminating a rawstring with \ will be declared illegal ;-).

reply via email to

[Prev in Thread] Current Thread [Next in Thread]