Joe was so kind to answer your question quickly, I have cced him into the response. mike --- Joe Futrelle <[EMAIL PROTECTED]> wrote: > From Joe Futrelle Mon Nov 4 07:05:47 2002 > Date: Mon, 4 Nov 2002 09:05:47 -0600 > To: James Michael DuPont <[EMAIL PROTECTED]> > From: Joe Futrelle <[EMAIL PROTECTED]> > Subject: Re: Fwd: Re: Inline::Spew coming your way > > At 6:40 AM -0800 11/4/2002, James Michael DuPont wrote: > >Hey joe, > >here is a question for you. > >> The problem is that they leave some stuff unspecified. Like when > a > >> rule adds a sub-grammar, how long is the scope? Does it stay in > >> place > > > once triggered, or revert after the rule? > > Good question. The scope of embedded rules in rmutt is dynamic > rather than lexical. In other words, embedded rules remain in effect > > from the moment they are encountered in the expansion process until > either the termination of the program or they are shadowed by another > > embedded rule with the same name. > > For instance: > > foo: baz bar baz quux baz; > baz: "(original)"; > bar: [baz: "(embedded)"]; > quux: [baz: "(shadowed)"]; > > produces > > (original)(embedded)(shadowed) > > enjoy! :)
--- "Randal L. Schwartz" <[EMAIL PROTECTED]> wrote: > >>>>> "James" == James Michael Dupont <[EMAIL PROTECTED]> writes: > > James> Thanks for the interesting article. > James> I like the clean and simple perl implementation. > James> my experiments were with rmutt > James> http://www.schneertz.com/rmutt/ > > Hmm. Wow. Yeah, that grammar is cooler. I've been giving some > small > thoughts to extending my grammar to include that. > > The problem is that they leave some stuff unspecified. Like when a > rule adds a sub-grammar, how long is the scope? Does it stay in > place > once triggered, or revert after the rule? > > -- > Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 > 777 0095 > <[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/> > Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. > See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! ===== James Michael DuPont http://introspector.sourceforge.net/ __________________________________________________ Do you Yahoo!? HotJobs - Search new jobs daily now http://hotjobs.yahoo.com/