Disabling macro characters in certain macros/reader macros
Posted: Thu Oct 30, 2008 8:42 pm
I have been wanting to do this for a long time, but i didn't believe it was possible. So here it goes!
I want to make a reader macro in which the entries are separated by commas. I don't want to separate by spaces
because the entries should allow spaces. While i could use another separation character, commas are the standard
and I would prefer to use them.
I want it to look like this:
{3,4,5,3,2}
I know that you can disable reader macro characters for a whole package, but what about for a specific reader macro? Notice, though, that i would also like other reader macros to be recognized inside of the curly braces, just not the comma.
Is this possible with a reader macro? What about for a regular macro, like which follows?
(deflet (int i=0,int d = 1, int dd = 2) ;;body here)
Thxs!
I want to make a reader macro in which the entries are separated by commas. I don't want to separate by spaces
because the entries should allow spaces. While i could use another separation character, commas are the standard
and I would prefer to use them.
I want it to look like this:
{3,4,5,3,2}
I know that you can disable reader macro characters for a whole package, but what about for a specific reader macro? Notice, though, that i would also like other reader macros to be recognized inside of the curly braces, just not the comma.
Is this possible with a reader macro? What about for a regular macro, like which follows?
(deflet (int i=0,int d = 1, int dd = 2) ;;body here)
Thxs!