On Wed, 2010-04-21 at 11:23 -0700, Patrick wrote: > On Apr 21, 2010, at 8:57 AM, David Lutterkort wrote: > > I was thinking to address the matching tag issue with a specialized > > builtin lens square: regexp -> lens -> lens, with the behavior that > > > > square re l := key re . l . del k k > > > > where 'k' is whatever the key matched. For nested XML tags, that would > > mean we'd do something like (omitting whitespace headaches and > > atributes) > > > > let xml (body:lens) = > > let b = del ">" ">" . body . del "</" "</" in > > del "<" "<" . square /[a-z]+/ b . del ">" ">" > > > > David > > One thing I've always wanted is a way to define arbitrary > non-duplicate tags without using the [ ] syntax. Using brackets is > more powerful, but the syntax is much harder to use and you don't need > it for ini style files like puppet.conf and smb.conf.
The [ ... ] is used to construct tree nodes; what exactly do you mean by 'define arbitrary non-duplicate tags' ? Can you provide some sort of pseudo-code example ? David _______________________________________________ augeas-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/augeas-devel
