随笔分类 -  编译原理

虎书每章后的程序。。。 等待完成中。。。
摘要:options { JAVA_UNICODE_ESCAPE = true;}PARSER_BEGIN(MiniJavaParser) public class MiniJavaParser {}PARSER_END(MiniJavaParser)// Insert a specification o... 阅读全文
posted @ 2009-03-15 01:13 罗刹剑客 阅读(629) 评论(0) 推荐(0)
摘要:Count.javapublic class Count{int resolveStm(Stm stm){int temp1=0,temp2=0;if(stm.kind==1){temp1=resolveStm(((CompoundStm)stm).stm1);temp2=resolveStm(((... 阅读全文
posted @ 2009-03-08 23:34 罗刹剑客 阅读(589) 评论(0) 推荐(0)