added eof case to scanner class to return eof token instead of creating
it in the parser class.