[augeas-devel] Fixing ambiguous iteration errors

Raphaël Pinson raphink at gmail.com
Fri Oct 14 18:19:34 UTC 2011


Just a note. If the file is really like lisp and can take any depth of
recursion, then you need a recursive lens, probably very close to json.aug,
so you might want to study how json.aug works.


Raphaël


2011/10/14 Tom Limoncelli <tal at whatexit.org>

> Thanks for the feedback.  I'm attaching the file and the test.  It's
> changed a little since the error I showed before.  now it is:
>
>
> $ augparse -I. tests/test_xendconfsxp.aug
> Syntax error in lens definition
> ./xendconfsxp.aug:16.0-.88:Failed to compile simple_list
> ./xendconfsxp.aug:16.20-.75:exception: ambiguous concatenation
>      First regexp: /\\([0-9A-Za-z]+[\t\n ]+/
>      Second regexp: /[^0-9A-Za-z]+/
>      '(A\n\n ' can be split into
>      '(A\n|=|\n '
>
>     and
>      '(A\n\n|=| '
>
>    First lens: ./xendconfsxp.aug:16.20-.60:
>    Second lens: ./xendconfsxp.aug:15.19-.40:
>
> tests/test_xendconfsxp.aug:6.6-.21:Could not load module Xendconfsxp
> for Xendconfsxp.lns
> ...
>
> Thanks!
> Tom
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20111014/837e1311/attachment.htm>


More information about the augeas-devel mailing list