Pass parse and lex errors up correctly,
Make main clearer