pub fn split_statements(input: &str) -> Vec<&str>Expand description
Split a PowQL source string into individual statements on top-level ;,
mirroring the lexer’s string- and comment-scanning rules so a ; inside a
"..." literal or a # comment is never a boundary. Segments are trimmed
and empty ones dropped, so leading/trailing/doubled ; and blank lines are
harmless.
Infallible by design: an unterminated string leaves its remainder as the
final segment, so the “unterminated string” error surfaces once, at
execution time, from lex — this function never reports it.