fixed parser to work for empty source files