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>)
>>                    { use grammar Perl::AbstractSyntax;
>>                      $0 := (expr (invoke 'new (class 'Date) $1 $2 $3))) }
>
> I'm confused. Why has that last line got a lisp expression for the spliced
> in code?

'cos S expressions are a relatively simple way of writing a syntax tree?

-- 
Piers

   "It is a truth universally acknowledged that a language in
    possession of a rich syntax must be in need of a rewrite."
         -- Jane Austen?

Reply via email to