I am going to create graphics interface to intermediate code generated by the gcc. so the output from gcc is like
;; Function main (main, funcdef_no=1, decl_uid=2162, cgraph_uid=1)
main ()
{
int i;
int c[10];
int b;
int a;
int D.2177;
<bb 2>:
a = 1;
b = 20;
if (a < b)
goto <bb 3>;
else
goto <bb 7>;
<bb 3>:
i = 0;
goto <bb 5>;
<bb 4>:
c[i] = 1;
i = i + 1;
...
<L9>:
return D.2177;
}
and i want to parse it using python and to have graphical interface as graphviz's .dot language
so i want write a parser which coverts above code to .dot language of graphviz.
please guide me...