Perl's qw as a macro
-
- Posts: 447
- Joined: Sat Jun 28, 2008 7:49 am
- Location: Austin, TX
- Contact:
Re: Perl's qw as a macro
The way to do this would be with a reader macro. As others have pointed out, you need to get access to the raw characters in the input stream before the standard reader fiddles with them. Thus, a standard macro won't be enough since it's always invoked after the reader has done its job. Fortunately, Common Lisp comes to the rescue with the right hooks.
Cheers, Dave
Slowly but surely the world is finding Lisp. http://www.findinglisp.com/blog/
Slowly but surely the world is finding Lisp. http://www.findinglisp.com/blog/