N
nedelm
My problem's with parsing. I have this (arbitrary, from a file)
string, lets
say:
"Directory: /file{File:/filename(/size) }"
I would like it to behave similar to LaTeX. I parse it, and then I
write it
out for diferent variables, like:
"Directory: File:.(0) File:..(0) File:a.out(12) File:foo(1) "
But I keep getting into a mess of complication. I'm using C (of
course.) How
do I parse it? strpbrk(,"/{}") (what then?) How can I get the string
to a
data-structure that I could write out? Algorithms?
-Neil
string, lets
say:
"Directory: /file{File:/filename(/size) }"
I would like it to behave similar to LaTeX. I parse it, and then I
write it
out for diferent variables, like:
"Directory: File:.(0) File:..(0) File:a.out(12) File:foo(1) "
But I keep getting into a mess of complication. I'm using C (of
course.) How
do I parse it? strpbrk(,"/{}") (what then?) How can I get the string
to a
data-structure that I could write out? Algorithms?
-Neil