changed MAX to BUFSIZ. fixed yacc error (no terminating '}').