how to write a ''multiple characters' macro character' ?



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

.



Relevant Pages

  • Re: Problem with PRINT REPORT TO PDF
    ... perfect by the time it gets to the CONVERTtoPDF function call. ... The colon -- character colon ':' -- is not legal to be used in a file name. ... You'll find that Windows won't let you create a file with that character in its name, nor rename a file so that its name contains that character. ...
    (microsoft.public.access.modulesdaovba)
  • RE: tab align with a colon?
    ... table, do not insert a tab character to indent the text, only add the decimal ... you use this type of tab stop, you must align the numbers around a decimal ... Please don't tell me to use a point instead of a colon because ...
    (microsoft.public.word.tables)
  • Re: JSP substring and trim dont work properly
    ... If you were using Soren's code then your "space" character is not an ASCII space but a single character that looks like the two character sequence ": " (colon, ... As I said, I think it's best to cut and paste code into news group postings, not re-type them. ... public class NonAscii { ...
    (comp.lang.java.programmer)
  • Re: [xnews] set score and move message
    ... sensitive when you use the colon after "Subject". ... sensitivity, remove the colon. ... % Kills any subject header without one lowercase ... % character. ...
    (news.software.readers)
  • Re: Rotating text
    ... "Bill Smith" wrote in message ... > colon followed by first names. ... > around the colon' to print William George Smith. ... > return a string character by character until a specified ...
    (microsoft.public.access.reports)