Re: Help needed with nested parsing of file into objects

2012-06-05 Thread richard
On Jun 5, 10:33 pm, Alain Ketterlin wrote: > richard writes: > >> > An instance of TestArray > >> >  a=a > >> >  b=b > >> >  c=c > >> >  List of 2 A elements: > >> >   Instance of A element > >> >    a=1 > >> >    b=2 > >> >    c=3 > >> >   Instance of A element > >> >    d=1 > >> >    e=2 > >> >

Re: Help needed with nested parsing of file into objects

2012-06-05 Thread Alain Ketterlin
richard writes: >> > An instance of TestArray >> >  a=a >> >  b=b >> >  c=c >> >  List of 2 A elements: >> >   Instance of A element >> >    a=1 >> >    b=2 >> >    c=3 >> >   Instance of A element >> >    d=1 >> >    e=2 >> >    f=3 >> >  List of 1 B elements >> >   Instance of B element >> >  

Re: Help needed with nested parsing of file into objects

2012-06-05 Thread richard
On Jun 5, 10:21 pm, richard wrote: > On Jun 5, 9:40 pm, Alain Ketterlin > wrote: > > > > > > > > > > > richard writes: > > > [I'm leaving the data in the message in case anybody has troubles going > > up-thread.] > > > > Hi guys still struggling to get the code that was posted to me on this > >

Re: Help needed with nested parsing of file into objects

2012-06-05 Thread richard
On Jun 5, 9:40 pm, Alain Ketterlin wrote: > richard writes: > > [I'm leaving the data in the message in case anybody has troubles going > up-thread.] > > > > > > > > > > > Hi guys still struggling to get the code that was posted to me on this > > forum to work in my favour and get the output in t

Re: Help needed with nested parsing of file into objects

2012-06-05 Thread richard
On Jun 5, 9:40 pm, Alain Ketterlin wrote: > richard writes: > > [I'm leaving the data in the message in case anybody has troubles going > up-thread.] > > > > > > > > > > > Hi guys still struggling to get the code that was posted to me on this > > forum to work in my favour and get the output in t

Re: Help needed with nested parsing of file into objects

2012-06-05 Thread Alain Ketterlin
richard writes: [I'm leaving the data in the message in case anybody has troubles going up-thread.] > Hi guys still struggling to get the code that was posted to me on this > forum to work in my favour and get the output in the format shown > above. This is what I have so far. Any help will be

Re: Help needed with nested parsing of file into objects

2012-06-05 Thread richard
On Jun 5, 8:50 pm, Eelco wrote: > > thank you both for your replies. Unfortunately it is a pre-existing > > file format imposed by an external system that I can't > > change. Thank you for the code snippet. > > Hi Richard, > > Despite the fact that it is a preexisting format, it is very close > in

Re: Help needed with nested parsing of file into objects

2012-06-05 Thread richard
On Jun 4, 3:20 pm, richard wrote: > On Jun 4, 3:14 pm, Alain Ketterlin > wrote: > > > > > > > > > > > richard writes: > > > Hi guys i am having a bit of dificulty finding the best approach / > > > solution to parsing a file into a list of objects / nested objects any > > > help would be greatly

Re: Help needed with nested parsing of file into objects

2012-06-05 Thread Eelco
> thank you both for your replies. Unfortunately it is a pre-existing > file format imposed by an external system that I can't > change. Thank you for the code snippet. Hi Richard, Despite the fact that it is a preexisting format, it is very close indeed to valid YAML code. Writing your own whit

Re: Help needed with nested parsing of file into objects

2012-06-04 Thread richard
On Jun 4, 3:14 pm, Alain Ketterlin wrote: > richard writes: > > Hi guys i am having a bit of dificulty finding the best approach / > > solution to parsing a file into a list of objects / nested objects any > > help would be greatly appreciated. > > > #file format to parse .txt > > [code] > > An i

Re: Help needed with nested parsing of file into objects

2012-06-04 Thread Alain Ketterlin
richard writes: > Hi guys i am having a bit of dificulty finding the best approach / > solution to parsing a file into a list of objects / nested objects any > help would be greatly appreciated. > > #file format to parse .txt > [code] > An instance of TestArray > a=a > b=b > c=c > List of 2 A

Re: Help needed with nested parsing of file into objects

2012-06-04 Thread Roy Smith
In article <6b296278-fd32-45fb-b5c7-6c0fe5ce4...@q2g2000vbv.googlegroups.com>, richard wrote: > Hi guys i am having a bit of dificulty finding the best approach / > solution to parsing a file into a list of objects / nested objects any > help would be greatly appreciated. The first question is

Help needed with nested parsing of file into objects

2012-06-04 Thread richard
Hi guys i am having a bit of dificulty finding the best approach / solution to parsing a file into a list of objects / nested objects any help would be greatly appreciated. #file format to parse .txt [code] An instance of TestArray a=a b=b c=c List of 2 A elements: Instance of A element a