I have been able to figure out a solution using a stack to this problem. I push onto the stack whenever "instance(" and pop from it whenever ")". This way I can keep a tab on level of instance name in an array based on push operations.
thanks offering to help.
in reply to Re: saif format parsing
in thread saif format parsing