"Austin Hastings" <[EMAIL PROTECTED]> > > I.e. is it just an input stream filter? > Doubtful. > > Do you want to do this at the grammar level, or the file level? > > If you want it at the file level, you C<tie> a translator (ooh! my > first p6 idiom!) to the file handle. > > If you want it at the grammar level (i.e., regardless of source, > preprocess it for me) you want to have a composition mechanism.
I could play with semantics, and suggest that the regex engine always matches a "stream" of characters. But I won't :-). Instead, lets try the A6 pipeline syntax inside an assertion: $fh =~ / < <Grammar.Lang.C.Preprocessor> ==> <Grammar.Lang.C> > /; This might provide a starting point the defining the associated L0 structure. And I can think of some intersting generalizations for the LHS. Dave.