add lineno attribute to parser