implement compiling principles with java, do some experiments here.