Hello all.
How would one get this string literal into javascript from parenscript. I'm having a little trouble dealing with the escapes.
'\b'
I need those 4 characters.
(ps "\a") is giving '\b' .
Is there any way or should I look deeper into the source?
Thanks much, Will
Hi William,
To get JS newline, tab, etc. escape sequences out of Parenscript, just give it those characters in CL:
(princ (ps #\Backspace)) prints '\b';
Vladimir
On Sat, Feb 28, 2009 at 11:27 AM, William Halliburton whalliburton@gmail.com wrote:
Hello all.
How would one get this string literal into javascript from parenscript. I'm having a little trouble dealing with the escapes.
'\b'
I need those 4 characters.
(ps "\a") is giving '\b' .
Is there any way or should I look deeper into the source?
Thanks much, Will
parenscript-devel mailing list parenscript-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
I just got bitten by this problem too. I figured out what to do about it in the past, and forget. Surely there ought to be an easy way?
Daniel
On Sat, Feb 28, 2009 at 10:27 AM, William Halliburton whalliburton@gmail.com wrote:
Hello all.
How would one get this string literal into javascript from parenscript. I'm having a little trouble dealing with the escapes.
'\b'
I need those 4 characters.
(ps "\a") is giving '\b' .
Is there any way or should I look deeper into the source?
Thanks much, Will
parenscript-devel mailing list parenscript-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
The only way I can think of is to have the PS printer special-case the escape sequences in CL strings, but that seems like kind of a hack, plus it would introduce what is ostensibly buggy behavior. Any better ideas?
Vladimir
On Sat, Feb 28, 2009 at 12:51 PM, Daniel Gackle danielgackle@gmail.com wrote:
I just got bitten by this problem too. I figured out what to do about it in the past, and forget. Surely there ought to be an easy way?
Daniel
On Sat, Feb 28, 2009 at 10:27 AM, William Halliburton whalliburton@gmail.com wrote:
Hello all.
How would one get this string literal into javascript from parenscript. I'm having a little trouble dealing with the escapes.
'\b'
I need those 4 characters.
(ps "\a") is giving '\b' .
Is there any way or should I look deeper into the source?
Thanks much, Will
parenscript-devel mailing list parenscript-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
parenscript-devel mailing list parenscript-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
parenscript-devel@common-lisp.net