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 <[email protected]> > 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 >
_______________________________________________ augeas-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/augeas-devel
