splitLines

fun splitLines(lexemes: List<Lexeme>): List<List<Lexeme>>

Splits a flat list of lexemes into logical lines. Each line is a list of lexemes up to (and including) a Lexeme.Newline. The last line may not end with a newline.