Added parser file

parser.y file added. This is basically what I got from
http://bofh.srv.ualberta.ca/beck/c415/pal_parser.txt on the course
website.