瀏覽代碼

fix the "seq expr" print placeholder

john melesky 8 年之前
父節點
當前提交
cb8e00f310
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      chapter1/chapter1.sml

+ 1 - 1
chapter1/chapter1.sml

@@ -86,7 +86,7 @@ and expAsStr t (NumExp x)      = Int.toString x
     in
         Int.toString v1
     end
-  | expAsStr t (EseqExp (s,e)) = "seq expr"
+  | expAsStr t (EseqExp (s,e)) = expAsStr (interpStm t s) e
 
 
 fun interp s = interpStm [] s