static int countPrecedingTokens(ListAndIndex l) { ret l == null ? 0 : l.idx/2; }