Moved the scanner into the parser file and added unclosed literal errors tests