StatementGrabber looks through an input stream for
the next JSQL statement. A statement is considered to
be any tokens up to the next semicolon or EOF.
Semicolons inside comments, strings, and delimited identifiers
are not considered to be statement terminators but to be
part of those tokens.
The only comment form currently recognized is the SQL comment,
which begins with "--" and ends at the next EOL.
Strings and delimited identifiers are permitted to contain
newlines; the actual IJ or JSQL parsers will report errors when
those cases occur.
There are no escaped characters, i.e. "\n" is considered to
be two characters, '\' and 'n'.
author: ames |