The best you can come up with is how tangled the code in a hand-written lexer looks? I may have skimmed a bit towards the end, but, did you actually find a bug?
if ( .. )
{
for ( .. )
{
label:
...
}
}
else
{
if ( .. )
{
..
}
else
goto label;
..
}
The actual code is even worse than this as there's a second goto that jumps from the top for into one of else blocks at the bottom from where the control can go back to for via another goto ... I sort of can see how this code came about, but there is absolutely no excuse for checking in something this f*cked up.If they wanted to show off, they should've just used the coroutines :-)
As to the presence of a bug, impossible to tell. Which is the point.