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.<div><br></div><div><br></div>
<div>Raphaël</div><div><br><br><div class="gmail_quote">2011/10/14 Tom Limoncelli <span dir="ltr"><<a href="mailto:tal@whatexit.org">tal@whatexit.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Thanks for the feedback.  I'm attaching the file and the test.  It's<br>
changed a little since the error I showed before.  now it is:<br>
<div class="im"><br>
<br>
$ augparse -I. tests/test_xendconfsxp.aug<br>
Syntax error in lens definition<br>
</div>./xendconfsxp.aug:16.0-.88:Failed to compile simple_list<br>
./xendconfsxp.aug:16.20-.75:exception: ambiguous concatenation<br>
      First regexp: /\\([0-9A-Za-z]+[\t\n ]+/<br>
      Second regexp: /[^0-9A-Za-z]+/<br>
      '(A\n\n ' can be split into<br>
      '(A\n|=|\n '<br>
<br>
     and<br>
      '(A\n\n|=| '<br>
<br>
    First lens: ./xendconfsxp.aug:16.20-.60:<br>
    Second lens: ./xendconfsxp.aug:15.19-.40:<br>
<br>
tests/test_xendconfsxp.aug:6.6-.21:Could not load module Xendconfsxp<br>
for Xendconfsxp.lns<br>
...<br>
<br>
Thanks!<br>
<font color="#888888">Tom<br>
</font></blockquote></div><br></div>