On Sat, Mar 28, 2009 at 1:48 AM, Timothy S. Nelson <wayl...@wayland.id.au>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 output and formatting input. This may not be possible, but I > like the idea. > Tim, Regarding generative/transforming grammars, you may get some good syntax/architecture ideas from the OMeta language system.... see http://www.tinlizzie.org/ometa-js/#Sample_Project for a selection of browser-based examples... (it's also the subversion repo). Also if you don't mind things Microsoft, there's the (part of Oslo) M language family. -Matthew