Various small parser cleanups.
Reset the lexer when resetting the parser.

Also removed the unused @lines instance variable.