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>) - > > (<Perl.term>) > > { use grammar Perl::AbstractSyntax; > > $0 := (expr (invoke 'new (class 'Date) $1 $2 $3))) } > > > > This idea of just switching language syntax in a context-sensitive way is > trying to make my head explode. [Two programmers walk around the corner in an office, heads down in hardcopy, and run right into each other, papers flying everywhere.]
FIRST PROGRAMMER: "Hey! You got your LISP in my Perl!" SECOND PROGRAMMER: "Hey! You wrapped your Perl around my LISP!" [Both do a take] BOTH PROGRAMMERS: "That's pretty cool!" [Cue music: o/~ N great tastes that taste great together . . . Larry's Pick-Your-Syntax Code! o/~ ] Sorry, couldn't resist. Well, okay, I didn't try that hard. -- Mark REED | CNN Internet Technology 1 CNN Center Rm SW0831G | [EMAIL PROTECTED] Atlanta, GA 30348 USA | +1 404 827 4754 -- "Surely you can't be serious." "I am serious. And stop calling me Shirley." -- "Airplane"