Hi, sorry i don't get quite what you're going to do. Do you want to jump to different places, depending on some state? I think what will work is somthing like:
Code:
int i=0;
label:
++i
if (i<3) goto label;
I you do want to write a parser / interpreter for some kind of programming language you may have look at the yacc / bison tools.