Give a partial parser implementation so that we can detect some malformed programs.