refactor parser source a bit
test import / export of macros
fix lexer tests as newlines are now not consumed in skip_to_eol