Split lines before processing compiler source.

Otherwise we are not processing line by line and all the regular
expressions expect a single line.

Closes #284.