1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-20 10:07:45 +03:00

guide: add host-language and REPL header to stepA

This commit is contained in:
Joel Martin 2016-03-02 10:33:41 -06:00
parent cd79945188
commit 33e37b68a7

View File

@ -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:
```