}
return stmt;
}
public OracleBlockStatement parseBlock() {
OracleBlockStatement block = new OracleBlockStatement();
if (lexer.token() == Token.DECLARE) {
lexer.nextToken();
parserParameters(block.getParameters());
for (OracleParameter param : block.getParameters()) {
param.setParent(block);
}
}
accept(Token.BEGIN);
parseStatementList(block.getStatementList());
accept(Token.END);
return block;
}