in reply to Re: Re: Re: Using Perl6 patterns/grammar definition for <I>output</I>?
in thread Using Perl6 patterns/grammar definition for 'output'?
I think the way you write it should certainly be possible, meaning that the grammar object should be traversible enough to allow format.output to be written in Perl.
I like that how the return value is the text to output, but I don't see how $date, $currency, etc. would become implicit like they are in the grammar. If the populated $0 becomes the current topic when a call is made, that would be easy enough: $.currency, right?
—John
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Using Perl6 patterns/grammar definition for <I>output</I>?
by dpuu (Chaplain) on Sep 05, 2002 at 21:28 UTC | |
by John M. Dlugosz (Monsignor) on Sep 06, 2002 at 15:49 UTC |