On Tue, Sep 12, 2000 at 04:55:02PM -0400, Dan Sugalski wrote:
> > Are there any better reasons than "It would be nice?"
> It'd make things easier? (I'd rather write a parser in perl than C...)

You're going to have to do it some time, for bootstrapping. And now you need
an interpreter on hand at the compiling stage. Ugh. But, yes, it would make
things a lot easier to write. Whether or not that's the Right Thing is, of
course, a completely separate issue.

> I think wedges into the parser/lexer (heck, all of the perl interpreter's
> pieces) are in order, though we might not want to write the lower-level
> bits in perl.

Yes, yes, and yes. This is an extension of what we have with %^H, only on a
much, much grander scale. You still need an interpreter on hand when you're
compiling, but more introspection is always a good idea. 

Ooh, um, what happens when someone reaches in and modifies the parser and
so that it can't parse itself any more? Aargh.

-- 
King's Law of Clues :  Common sense is inversely proportional to the
academic intelligence of the person concerned.

Reply via email to