by oneoff14326 · 5y ago · 0 comments
I mean the lex/yacc syntax has to reflect the nestability of the while/switch [1], ditto if you do recursive descent, so how is it possible this even parses?
[1] original and weirder version here https://en.wikipedia.org/wiki/Duff%27s_device#Original_versi...
switch (x) default: {
if (y) case 1: case 2: return;
/* more stuff with more labels */
}