From 33e37b68a77baf60f226c19dcf3ac39863bf58fa Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Wed, 2 Mar 2016 10:33:41 -0600 Subject: [PATCH] guide: add host-language and REPL header to stepA --- process/guide.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/process/guide.md b/process/guide.md index 17b2046f..44ab12a6 100644 --- a/process/guide.md +++ b/process/guide.md @@ -1461,6 +1461,15 @@ diff -urp ../process/step9_try.txt ../process/stepA_mal.txt * Add meta-data support to mal functions. TODO. Should be separate from the function macro flag. +* Add a new "\*host-language\*" (symbol) entry to your REPL + environment. The value of this entry should be a mal string + containing thename of the current implementation. + +* When the REPL starts up (as opposed to when it is called with + a script and/or arguments), call the `rep` function with this string + to print a startup header: + "(println (str \"Mal [\" *host-language* \"]\"))". + Now go to the top level, run the step A tests: ```