blob: bbc4cdd066f1241dca4d8bf85f797f6a65aeebbf [file] [log] [blame]
/**
* Parses multi SQL statement followed by the end-of-file symbol.
*/
List<SqlNode> MultiStmtEof() :
{
List<SqlNode> multiStmt = new ArrayList();
SqlNode stmt;
}
{
stmt = SqlStmt() {
multiStmt.add(stmt);
}
(
<SEMICOLON>
[
stmt = SqlStmt() {
multiStmt.add(stmt);
}
]
)*
<EOF>
{
return multiStmt;
}
}