文法分析与解释器模式(三)
摘要:这里把上两次内容作一个连接。生成名为Parsing的类,它拥有一个名为Calculate()的方法,传入表达式字符串,返回double结果。 public class Parsing { private Context ctx; public Dictionary _src; public Parsing(Dictionary so...
阅读全文
posted @ 2007-04-22 19:45
posted @ 2007-04-22 19:45
posted @ 2007-04-22 17:13
posted @ 2007-03-27 01:01