Compilation principle experiment (input and output of grammar)