parse all expressions in a multi-line input. fixes #2060