about summary refs log tree commit diff stats
path: root/eval.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-01-26 10:13:34 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-01-26 10:13:34 -0800
commita9ae22a68b8e2791a30b7a11d55e90c20f26f5cf (patch)
treef6389c4802a842c26654abddea0f0c94b67af51e /eval.mu
parentb3bcdf5eb25486a6c642dc2c69fc9b98ef9ca926 (diff)
downloadmu-a9ae22a68b8e2791a30b7a11d55e90c20f26f5cf.tar.gz
631 - temporary: hook into underlying arc 'eval'
Diffstat (limited to 'eval.mu')
-rw-r--r--eval.mu9
1 files changed, 9 insertions, 0 deletions
diff --git a/eval.mu b/eval.mu
new file mode 100644
index 00000000..66107fc4
--- /dev/null
+++ b/eval.mu
@@ -0,0 +1,9 @@
+; example of calling to underlying arc eval
+
+(function main [
+  (default-space:space-address <- new space:literal 30:literal)
+  (s:string-address <- new "(+ 1 1)")
+  (t:string-address <- $eval s:string-address)
+  (print-primitive-to-host t:string-address)
+  ; then you'll have to read off the characters starting at string-address 't'
+])