diff options
| author | Joel Martin <github@martintribe.org> | 2014-10-06 21:03:03 -0500 |
|---|---|---|
| committer | Joel Martin <github@martintribe.org> | 2014-10-06 21:03:03 -0500 |
| commit | 17e1c5f9f4006399398e8bb7e219a79962ebf3f0 (patch) | |
| tree | cb7de0111d91c56ae61ee500a2798264773cf54b /go/src/printer | |
| parent | af8fdff41e260b1b21be0e127afb536980f43804 (diff) | |
| download | mal-17e1c5f9f4006399398e8bb7e219a79962ebf3f0.tar.gz mal-17e1c5f9f4006399398e8bb7e219a79962ebf3f0.zip | |
go: add step5_tco. Refactor env.
Move EnvType interface definition to types.go. Remove Env pointers.
Diffstat (limited to 'go/src/printer')
| -rw-r--r-- | go/src/printer/printer.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/go/src/printer/printer.go b/go/src/printer/printer.go index 8cb4a40..5050c5a 100644 --- a/go/src/printer/printer.go +++ b/go/src/printer/printer.go @@ -45,6 +45,10 @@ func Pr_str(obj types.MalType, print_readably bool) string { return tobj.Val case nil: return "nil" + case types.MalFunc: + return "(fn* " + + Pr_str(tobj.Params, true) + " " + + Pr_str(tobj.Exp, true) + ")" default: return fmt.Sprintf("%v", obj) } |
