Skip to main content

statements

Function statements 

Source
pub fn statements(text: &str, first_line: usize) -> Statements
Expand description

Split text into statements. first_line is the file line of the start of text, used in error messages.

An unclosed bracket is reported as unclosed `[` opened at line N; its statement is cut at the end of the bracket’s line and marked unbalanced, and splitting resumes on the next line, so the rest of the block is unaffected. A closing bracket that matches no open bracket is left to the statement’s parser.