Update newline parsing

Adding a newline token and parsing line-by-line.