On Wed, Sep 04, 2002 at 10:46:24PM -0400, Ken Fox wrote:
What is really needed is something that converts the date syntax
to normal Perl code:
rule iso_date { (Perl.term) -
(Perl.term) -
(Perl.term)
{ use grammar
Nicholas Clark [EMAIL PROTECTED] writes:
On Wed, Sep 04, 2002 at 10:46:24PM -0400, Ken Fox wrote:
What is really needed is something that converts the date syntax
to normal Perl code:
rule iso_date { (Perl.term) -
(Perl.term) -
(Perl.term)
On Fri, Sep 06, 2002 at 02:20:10PM +0100, Piers Cawley wrote:
Nicholas Clark [EMAIL PROTECTED] writes:
On Wed, Sep 04, 2002 at 10:46:24PM -0400, Ken Fox wrote:
What is really needed is something that converts the date syntax
to normal Perl code:
rule iso_date { (Perl.term) -
Nicholas Clark [EMAIL PROTECTED] writes:
On Fri, Sep 06, 2002 at 02:20:10PM +0100, Piers Cawley wrote:
Nicholas Clark [EMAIL PROTECTED] writes:
On Wed, Sep 04, 2002 at 10:46:24PM -0400, Ken Fox wrote:
What is really needed is something that converts the date syntax
to normal Perl code:
On Fri, Sep 06, 2002 at 02:34:52PM +0100, Nicholas Clark wrote:
On Wed, Sep 04, 2002 at 10:46:24PM -0400, Ken Fox wrote:
What is really needed is something that converts the date syntax
to normal Perl code:
rule iso_date { (Perl.term) -
(Perl.term) -
On Fri, Sep 06, 2002 at 02:49:13PM +0100, Piers Cawley wrote:
Nicholas Clark [EMAIL PROTECTED] writes:
This idea of just switching language syntax in a context-sensitive way is
trying to make my head explode.
But you mean that in a good way right? Anyway, he did introduce the
Yes. Now
On Wed, 2002-09-04 at 22:46, Ken Fox wrote:
rule iso_date { $year:=(\d{4}) -
$month:=(\d{2}) -
$day:=(\d{2}) }
You mean C \d4 , etc. I presume.
David Whipp wrote:
But can I use a non-constant date?
You didn't show us the iso_date rule.
Obviously we could put the onus on the module writer to write super-flexible
rules/grammars. But will there be an easy way to force interpolative context
onto this type of regex-valued subroutine