diff options
| author | Joel Martin <github@martintribe.org> | 2014-10-06 22:27:28 -0500 |
|---|---|---|
| committer | Joel Martin <github@martintribe.org> | 2014-10-06 22:27:28 -0500 |
| commit | ad95503cea8ca85e9188effa87681275283157bf (patch) | |
| tree | f4e5919aeb2351f2ceb60fee4ab988324bfb5dd1 /go/src/step5_tco | |
| parent | 17e1c5f9f4006399398e8bb7e219a79962ebf3f0 (diff) | |
| download | mal-ad95503cea8ca85e9188effa87681275283157bf.tar.gz mal-ad95503cea8ca85e9188effa87681275283157bf.zip | |
go: add step6_file
Diffstat (limited to 'go/src/step5_tco')
| -rw-r--r-- | go/src/step5_tco/step5_tco.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/go/src/step5_tco/step5_tco.go b/go/src/step5_tco/step5_tco.go index e426f16..0c07316 100644 --- a/go/src/step5_tco/step5_tco.go +++ b/go/src/step5_tco/step5_tco.go @@ -164,9 +164,12 @@ func rep(str string) (MalType, error) { } func main() { + // core.go: defined using go for k, v := range core.NS { repl_env.Set(k, v) } + + // core.mal: defined using the language itself rep("(def! not (fn* (a) (if a false true)))") rdr := bufio.NewReader(os.Stdin); |
