"Austin Hastings" <[EMAIL PROTECTED]> wrote: > What you really want is to be able to "chain" grammars: > > > my $fh = open "<hello.c"; > > $fh =~ /<Grammars::Languages::C>/; > > grammar Grammars::Languages::C { > method init { > SUPER::init; > > $.source = (new Grammars::Language::C::Preprocessor).open($source); > } > ... > }
I find myself wondering if this is covered by the P6 equiv of TieHandle. I.e. is it just an input stream filter? Dave.