Implementing parser in Happy