sclass TokScanner { LS tok; int idx = 1; // always points to code token *() {} *(LS *tok) {} *(LS *tok, int *idx) { idx |= 1; } S get(int ofs default 0) { ret _get(tok, idx+ofs*2); } S consume() { ret atEnd() ? null : tok.get((idx += 2)-2); } void consume(int n) { idx += n*2; } bool atEnd() { ret idx >= l(tok); } }