handle (some) multi-line expressions both interactively and in scripts (while still parsing line-by-line)