updated gram.y, encode.c, encode.h