Re: RFC for recursive regexps

2000-08-03 Thread Larry Wall
[EMAIL PROTECTED] writes: :> In perl5, :> :> /(??{ $FOO })/ :> :> delays the interpolation of $FOO, so as to be able to have :> recursively defined regexps. : : Of course, that example might in itself be sufficient reason : to completely redesign the regex syntax! On

Redesigning regex syntax (Was: Re: RFC for recursive regexps)

2000-08-03 Thread Johan Vromans
Damian Conway <[EMAIL PROTECTED]> writes: > Of course, that example might in itself be sufficient reason > to completely redesign the regex syntax! Perl uses the term "pattern matching" since day one. This opens the possibility of extending pattern matching with other, not neccessarily regex bas

Re: RFC for recursive regexps

2000-08-02 Thread Damian Conway
> In perl5, > > /(??{ $FOO })/ > > delays the interpolation of $FOO, so as to be able to have > recursively defined regexps. Of course, that example might in itself be sufficient reason to completely redesign the regex syntax! Damian PS: I'll probably have a RFC on that i

Re: RFC for recursive regexps

2000-08-02 Thread Nathan Torkington
In perl5, /(??{ $FOO })/ delays the interpolation of $FOO, so as to be able to have recursively defined regexps. Nat

RFC for recursive regexps

2000-08-02 Thread Andrew Greene
=head1 Title Recursion in regular expressions =head1 Abstract It would be useful to have part or all of a regular expression be recursive, for example when trying to match a string with properly-nested parentheses. =head1 Discussion Regexps long since gave up the pretense of being "regular".