static L tok_roundBracketsToQuoted(S s) { L tok = javaTok(s); while true { int i = tok.lastIndexOf("("); if (i < 0) ret tok; int j = indexOf(tok, ")", i); if (j < 0) ret tok; tok.set(i, quote(join(subList(tok, i+1, j)))); tok.subList(i+1, j+1).clear(); assertTrue(odd(l(tok))); } }