formula builder

Hi, Can anyone help me out in developing a formula builder in C/SIDE? (something like what we already have in account schedules) Thanks in advance. best regards, Sharan.