develooper Front page | perl.perl6.language | Postings from April 2001

Re: Larry's Apocalypse 1 \}

Thread Previous | Thread Next
From:
David L. Nicol
Date:
April 24, 2001 16:33
Subject:
Re: Larry's Apocalypse 1 \}
Message ID:
3AE60CBD.FA11ABD2@kasey.umkc.edu
Dan Sugalski wrote:

> Most of the parser switching is going to be of the nesting variety. Every
> time the parser processes a double-quoted string constant or a regular
> expression you're going to be jumping parsers. That's all temporary, and we
> really do want them to nest. (You really don't want the perl parser to lose
> all its state every time you start a string...)

No, of course not.  I'm asking for separation of "parsing" and "state"
so that multiple parsers can cooperatively contribute to the developing
state.  That is what would be required for python mode to be able to
close blocks opened in perl mode, or v/v.

Just like SH doesn't throw out all environment variables between
instructions. 

SH is very much like this: you can have multiple parsers acting on
multiple HERE documents, one after the other, in case anyone wasn't
aware of that already, which I doubt.


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About