final GeneratedJavaRecognizer parser = new GeneratedJavaRecognizer(
lexer);
parser.setFilename(filename);
parser.setASTNodeClass(DetailAST.class.getName());
parser.compilationUnit(); // TokenStreamException if newline missing
result.setFirstChild(parser.getAST());
return result;
} catch (TokenStreamException e) {