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

Re: A proposal for more powerful text processing to be built in to Perl: Flex and Pushdown Expressions.

Thread Previous | Thread Next
From:
Michael G Schwern
Date:
May 11, 2001 07:45
Subject:
Re: A proposal for more powerful text processing to be built in to Perl: Flex and Pushdown Expressions.
Message ID:
20010511154532.C640@blackrider.blackstar.co.uk
On Thu, May 10, 2001 at 04:26:56PM -0700, Daniel S. Wilkerson wrote:
> Flex - Put all of flex right into Perl.

Having a lexer in Perl is useful, but does it have to be built into
the core?  There already are several lexer modules for Perl 5
(Parse::Lex, Lex, Parse::RecDescent...) and while they may be
benefited by certain small, sharp additions to Perl, they do rather
well outside the core (and it means the Perl 6 developers don't have
to add Yet More to their plate).


> Pushdown expressions - Slightly more powerful "regular" expressions.
> 
> This modifier would require that all parentheses-like literals: () []
> {} pair-up in order for the trailing one to match.

That might be handy, its been getting easier to do this sort of thing
in a regex but its still a bit less-than-obvious.  Non-obvious enough
to require its own module: Text::Balanced.

Can't comment on the particular syntax you've chosen, but the idea
sounds useful.


-- 

Michael G. Schwern   <schwern@pobox.com>    http://www.pobox.com/~schwern/
Perl6 Quality Assurance     <perl-qa@perl.org>	     Kwalitee Is Job One
<GuRuThuG> make a channel called #Perl, and infest it with joking and 
	   fun.... it doesnt make alot of sense.

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