By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,763 Members | 1,609 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,763 IT Pros & Developers. It's quick & easy.

Parse custom language

P: 1
Hi!

can anyone help me to parse some string into tree...

I have Q function, this is something like "if else"

for example:

Q<VSecCode=0?B0+B2:B1>

if(VSecCode == 0)
display(B0+B2);
else
display(B1);

and i have V function, it is something like "for"

V(VSecCode,VSecName,VPortfolioCode)[B0 + Q<VSecCode=0?B0+B2:B1>]

for(VSecCode.length)
display(B0 + Q<VSecCode=0?B0+B2:B1>);

My string to parse and show as tree is for example:

Q<VSecCode=0?B9+B11+Q<VSecCode=0?B9+B11:B1>:B1+V(V SecCode,VSecName,VPortfolioCode,VOperBalance,VOrde rBlock,VOtherBlock,VBalance,VValue)[B2]>

I want to show this string as a tree...and I dont know how to parse it when these functions are nested....:(
Dec 27 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.