[augeas-devel] Matching key/value statement

David Lutterkort lutter at watzmann.net
Wed Nov 25 02:01:56 UTC 2015


On Thu, Oct 29, 2015 at 6:18 PM, Yclept Nemo <orbisvicis at gmail.com> wrote:

> How to unambiguously match:
>
>     # spaces? key spaces? = spaces? value? spaces? comment?
>
> where "key" is the node key, "value" the node value, and "comment" and
> child node?
>
>
> These are all accurate but create ambiguities in the put direction:
>
>     = (spaces | ((spaces? . value)? . (spaces? . comment)?))
>
>     = spaces? . (value | comment | (value . spaces? . comment?))?
>
>     = (spaces? | (spaces? . value) | (spaces? . comment) | (spaces? .
> value . spaces? . comment))
>
> ... whether or not the union branches occur on the lens or node level.
>

Can you provide us with the file for which you are trying to write a lens
and/or what you have so far ? That might make it easier to help
troubleshoot the issues you are running into.

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20151124/0e8a6205/attachment.htm>


More information about the augeas-devel mailing list