rewrite error reporting routines and ready the lexer for transferring Makefiles