From: Michael D. Lowis Date: Mon, 13 Jul 2020 20:56:21 +0000 (-0400) Subject: cleaned up debug printing code X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=431bf2d0155de4c05f4162ee451290b4b7cdd8ff;p=proto%2Fsclpl-rb.git cleaned up debug printing code --- diff --git a/lib/dyn.rb b/lib/dyn.rb index d86cf19..f82d06d 100755 --- a/lib/dyn.rb +++ b/lib/dyn.rb @@ -79,7 +79,6 @@ class SymTable < Hash end def free?(key) - puts "#{key}: local? #{local? key} global? #{global? key}" (not local?(key)) && (not global?(key)) end @@ -571,7 +570,6 @@ module TypeChecker error(expr.loc, "object being applied is not a function (has type: #{type.to_s})") if not type.is_a? Array error(expr.loc, "wrong number of arguments to function call") if (type.length - 1) != expr.args.length type[0..-2].each_with_index do |t,i| - pp expr check(env, expr.args[i], t) end expr.type = type.last