[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 ;-).
- Re: Raw string literals in Emacs lisp., Alan Mackenzie, 2014/08/02
- Re: Raw string literals in Emacs lisp., David Kastrup, 2014/08/02
- Re: Raw string literals in Emacs lisp., Alan Mackenzie, 2014/08/02
- Re: Raw string literals in Emacs lisp.,
Stephen J. Turnbull <=
- Re: Raw string literals in Emacs lisp., David Kastrup, 2014/08/03
- Re: Raw string literals in Emacs lisp., Stephen J. Turnbull, 2014/08/03
- Re: Raw string literals in Emacs lisp., David Kastrup, 2014/08/03
- Re: Raw string literals in Emacs lisp., Stephen J. Turnbull, 2014/08/03
- Re: Raw string literals in Emacs lisp., Richard Stallman, 2014/08/03
- Re: Raw string literals in Emacs lisp., David Kastrup, 2014/08/04
- Re: Raw string literals in Emacs lisp., Richard Stallman, 2014/08/04
- Re: Raw string literals in Emacs lisp., David Kastrup, 2014/08/05
- Re: Raw string literals in Emacs lisp., David Kastrup, 2014/08/03
- Re: Raw string literals in Emacs lisp., Stephen J. Turnbull, 2014/08/03