G
glenlow
Apologies in advance if this is too newbie-ish. Couldn't find the
answer via googling or looking at various FAQ's.
Given a C function call in a string, how do I parse out the individual
arguments?
E.g.
"... func ((a+b)/c,d,e,f+(g+(h,i))) ..."
I need to get an array that is
("(a+b)/c","d","e","f+(g+(h,i))")
I know I can use extract_bracketed to get the outermost set of braces,
but how to I split out the arguments therein? (Note I can't just use
split on the comma since one of the comma's is embedded in a bracket
expression.
Cheers,
Glen Low, Pixelglow Software
www.pixelglow.com
answer via googling or looking at various FAQ's.
Given a C function call in a string, how do I parse out the individual
arguments?
E.g.
"... func ((a+b)/c,d,e,f+(g+(h,i))) ..."
I need to get an array that is
("(a+b)/c","d","e","f+(g+(h,i))")
I know I can use extract_bracketed to get the outermost set of braces,
but how to I split out the arguments therein? (Note I can't just use
split on the comma since one of the comma's is embedded in a bracket
expression.
Cheers,
Glen Low, Pixelglow Software
www.pixelglow.com