At 12:44 PM 11/21/00 +0000, Simon Cozens wrote:
>On Tue, Nov 21, 2000 at 07:36:11AM -0500, David Grove wrote:
> > > * The parser needs to be reentrant
> > No clue what this means. I need this defined in context.
>
>While parsing text, you should be able to dive into a separate bit of text,
>parse that, ("re-enter" the parser's routines) come out and carry on
>*exactly* where you left off, without your state being lost.
And, even more so with perl, you may call out of the parser into a bit that
then calls right back into it. For example:
BEGIN {
eval "\$foo = 12;";
}
the parser finishes with the parsing of the BEGIN block and, before
continuing (and thus we haven't exited the parser) calls into the
compilation/exection modules, which then get the eval and call right back
into the parser. (Which then calls the compilation/execution bits, which
could potentially call into the parser again...)
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk