in reply to Change the data to have the format which is like a C struct.
... but if this syntax is based on indentation, then you should keep track of the leading whitespace.
Push a closing delimiter like '}' to a @stack for each step forward, and pop it after each step backwards.
BTW: you asked this already didn't you?
Cheers Rolf
( addicted to the Perl Programming Language)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Convert Non-standard C struct data to standard C struct
by dwslovedh (Novice) on Apr 29, 2013 at 01:44 UTC |