Re: pyparsing problem

2008-07-01 Thread Paul McGuire
On Jul 1, 8:02 am, name <[EMAIL PROTECTED]> wrote: > Hi, > > I try to parse a file with pyparsing and get this output: > >     ['generic', 'host-01', 'host alias xyz', '10.0.0.1'] >     - alias: host alias xyz >     - host_name: ['host-01'] >     - ip_address: ['10.0.0.1'] >     - use: ['generic']

Re: pyparsing problem

2008-07-01 Thread name
Paul McGuire <[EMAIL PROTECTED]> wrote in news:be7af822-70d7-44fb-96fa- [EMAIL PROTECTED]: > > Looks like this is a bug in asXML(). Note that if I reverse the use > and host_name strings in the input and in your grammar, I get this XML > output: > > > host-01 > generic > host alias xyz >

Re: pyparsing problem

2008-07-01 Thread Paul McGuire
On Jul 1, 8:02 am, name <[EMAIL PROTECTED]> wrote: > Hi, > > I try to parse a file with pyparsing and get this output: > >     ['generic', 'host-01', 'host alias xyz', '10.0.0.1'] >     - alias: host alias xyz >     - host_name: ['host-01'] >     - ip_address: ['10.0.0.1'] >     - use: ['generic']

pyparsing problem

2008-07-01 Thread name
Hi, I try to parse a file with pyparsing and get this output: ['generic', 'host-01', 'host alias xyz', '10.0.0.1'] - alias: host alias xyz - host_name: ['host-01'] - ip_address: ['10.0.0.1'] - use: ['generic'] generic host-01 host alias xyz