At 09:38 PM 8/4/00 +0200, Jean-Louis Leroy wrote:
>Dan Sugalski <[EMAIL PROTECTED]> writes:
>
> > This does complicate the job of the parser/lexer rather
> > considerably.
>
>Why? Isn't it 'just' a matter or making the lexer read from a
>hot-redirectable input stream?

If it is, then it's not that big a deal, nor would it be all that useful. 
Wiht substitutions it's more than that, and if we're going to do this, we 
ought *not* essentially duplicate C's #define stuff. Macros mean the parser 
needs to keep source around, possibly snapshot its current state and then 
do an on-the-fly rework of the input buffers. (Maybe. Depends on what this 
does)

The cleverer the preprocessor, the more work the lexer/parser needs to do. 
Which is dandy but, as I said, if you're going to do it, do it once and do 
it with some force.

                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to