static L> pwt_fromTokenization(LS tok) { int iChar = 0; new L> out; for i over tok: { S t = tok.get(i); int iNext = iChar+l(t); out.add(ParsedWithTokens(t, iChar, iNext)); iChar = iNext; } ret out; }