!7 sS snippetID = #1015364; p-experiment { S src = getServerTranspiledWithoutLibs(snippetID); try { javaParseCompilationUnit(src); print(snippetID + " parsed OK"); } catch e { S msg = firstLine(innerMessage(e)); print(msg); int line = parseIntOpt(regexpFirstGroupIC("line (\\d+)", msg)); print(); if (line != 0) { L lines = lines(src); for (int i = max(0, line-5); i <= min(l(lines), line+5); i++) print(" LINE " + i + ": " + lines.get(i-1)); } print(); } }