Source filters, look at the _entire_ input stream. So unless the input
stream implements a perl parser, it is limited to a simple textual
replacement system.

A macro system, is _handed_ a portion of text, (and possibly the input
stream) and asked to return a blob of text to be further parsed.

<chaim>

>>>>> "JSD" == Jonathan Scott Duff <[EMAIL PROTECTED]> writes:

JSD> On Fri, Aug 04, 2000 at 10:52:24PM -0400, Ken Fox wrote:
>> Why would we ever use source filters when we're going to have a
>> beautiful extend-syntax macro system.

JSD> Because source filters *are* that macro system.  Why would we invent
JSD> yet another language within a language when we can use a language we
JSD> already know--Perl.  We just need to make source filters part of the
JSD> language rather than a module (Perl 5 is already almost there).


-- 
Chaim Frenkel                                        Nonlinear Knowledge, Inc.
[EMAIL PROTECTED]                                               +1-718-236-0183

Reply via email to