Re: nested Paren's

2003-12-11 Thread drieux
On Dec 11, 2003, at 12:16 PM, Eric Walker wrote: Ok,, back to some laymen terms hehe... not sure I can do that, but hey, I'll try anything once... it seems that the two issues are a. Parser Mechanics b. File Format. The file is read by an application and what I am doing is this.

Re: nested Paren's

2003-12-11 Thread Eric Walker
Ok,, back to some laymen terms hehe... The file is read by an application and what I am doing is this. The application use to read this file that was created by hand to set some internal settings. I a wrote a program to pull the same info from a database. The auto generated file will ultimately b

Re: nested Paren's

2003-12-11 Thread drieux
On Dec 11, 2003, at 10:52 AM, Eric Walker wrote: Well, the problem is that this is just one section of a file the other sections actualy have different format. [..] every know and then you get something like list( "one" "two"). [..] The data i am making up as I didn't think it was important. I fi

Re: nested Paren's

2003-12-11 Thread Eric Walker
Well, the problem is that this is just one section of a file the other sections actualy have different format. When I get to this section I key on the section name to know how to process it and will need to key on the last paren know that this section is done and to try and key on what the next sec

Re: nested Paren's

2003-12-11 Thread drieux
On Dec 11, 2003, at 9:30 AM, Eric Walker wrote: [..] yes( "hello" "goodbye" ( (one 2) (two 3) (three 4) ) (( mon 1) (tues 2) (wed 3) ) ((jan 1) (feb 2) (march 3) ) ) [..] The question of course is whether that 'ordering' is important, or can you just use a hash? IF yo

Re: nested Paren's

2003-12-11 Thread david
Eric Walker wrote: > Hey all, > I have a file with some data that has like nested parens.. example > > yes( "hello" "goodbye" > > ( (one 2) (two 3) (three 4) > ) > (( mon 1) (tues 2) (wed 3) > ) > ((jan 1) (feb 2) (march 3) > ) > ) > > I need help in trying to bre

nested Paren's

2003-12-11 Thread Eric Walker
Hey all, I have a file with some data that has like nested parens.. example yes( "hello" "goodbye" ( (one 2) (two 3) (three 4) ) (( mon 1) (tues 2) (wed 3) ) ((jan 1) (feb 2) (march 3) ) ) I need help in trying to break this up and make key value pairs out of the d