static int findBeginningOfBlock(L tok, int i) { while (i < l(tok) && !eq(tok.get(i), "{")) i += 2; ret i >= l(tok) ? -1 : i; }