This is a p-language homework of course Compiler 2014 Spring, Prof. ypyou, NCTU (language: lex, yacc, C)