Re: Grammars that generate stuff

2009-03-28 Thread Matthew Wilson
On Sat, Mar 28, 2009 at 1:48 AM, Timothy S. Nelson wrote: >Perl 6 has a general language (grammars) for taking some input and a > grammar, and separating the data from the formatting, as it were. > >Ideally, it'd be possible to specify one grammar that would act both > for parsing

Grammars that generate stuff

2009-03-27 Thread Timothy S. Nelson
Hi all. I've been thinking about stringification, forms, and things like that. As exegesis 7 points out, sprintf, pack, and the forms language all essentially take data and specifies how to turn it into a "string" (I'm using "string" loosely here). Likewise with .perl -- it takes some data