how to write a ''multiple characters' macro character' ?
- From: noteed@xxxxxxxxx
- Date: 27 Dec 2006 12:39:21 -0800
Hi,
In CLtL, there is an example of how to write the colon (comment)
character macro.
In place of the colon, I'd like to use, say, two dashes, i.e. '--'.
My idea is to use a dispatch macro character on the first dash. If the
following character is also a dash, then it's a comment, else, treat
the whole thing 'normally'.
1/ Is-it the correct way to go ?
2/ What if it was three dashes (and not only two) ? The statement 'the
following' is now 'the following two'...
3/ How to treat the 'whole thing normally' ?
Thanks, and happy new year :)
--thu
.
- Follow-Ups:
- Re: how to write a ''multiple characters' macro character' ?
- From: Pascal Bourguignon
- Re: how to write a ''multiple characters' macro character' ?
- Prev by Date: Re: What about these?
- Next by Date: Re: More questions about exported symbols and general style.
- Previous by thread: More questions about exported symbols and general style.
- Next by thread: Re: how to write a ''multiple characters' macro character' ?
- Index(es):
Relevant Pages
|