aboutsummaryrefslogtreecommitdiff
path: root/perl/printer.pm
diff options
context:
space:
mode:
authorJoel Martin <github@martintribe.org>2014-04-20 21:50:52 -0500
committerJoel Martin <github@martintribe.org>2014-04-20 21:50:52 -0500
commita3b0621dbfbb7afd2bff5a08a727660142240150 (patch)
treefff280338345ca909166df2f586a637f5d846ce5 /perl/printer.pm
parent9af8aee63aad6031c12f2b04ba87c16cc3273077 (diff)
downloadmal-a3b0621dbfbb7afd2bff5a08a727660142240150.tar.gz
mal-a3b0621dbfbb7afd2bff5a08a727660142240150.zip
Perl: add step2_eval.
Diffstat (limited to 'perl/printer.pm')
-rw-r--r--perl/printer.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl/printer.pm b/perl/printer.pm
index 9741eda..94219d4 100644
--- a/perl/printer.pm
+++ b/perl/printer.pm
@@ -26,6 +26,7 @@ sub _pr_str {
return '{' . join(' ', @elems) . '}';
}
when(/^String/) { return '"' . $$obj . '"'; }
+ when(/^CODE/) { return '<builtin_fn* ' . $obj . '>'; }
default { return $$obj; }
}
}