}
private AstLexer getLexer(Reader reader) throws Exception {
AstLexer result = null;
if (PHPVersion.PHP5.equals(phpVersion)) {
result = new CompilerAstLexer(reader);
((CompilerAstLexer) result).setAST(new AST(reader, PHPVersion.PHP5,
false, useShortTags));
stInScriptin = CompilerAstLexer.ST_IN_SCRIPTING; // save the initial
// state for reset
// operation