V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
DiamondYuan
V2EX  ›  程序员

在 Mac 上搭建 SICP 学习环境

  •  
  •   DiamondYuan · 2019-10-28 22:57:51 +08:00 · 2346 次点击
    这是一个创建于 1649 天前的主题,其中的信息可能已经有所发展或是发生改变。

    1.安装 Chez Scheme

    下载地址 https://cisco.github.io/ChezScheme/ 推荐用 homebrew 安装

    brew install chezscheme
    

    2.安装 Code Runner

    image.png

    打开 vscode 中配置,设置用 chez 执行 scheme。

    {
     "code-runner.executorMap": {
        "scheme": "chez"
      }
    }
    

    3.安装语言高亮插件 vscode-chez

    image.png

    4. HelloWorld

    1. 新建 hello.ss
    ; Hello World
    (display "Hello World")
    (exit)
    
    1. 点击右上角按钮运行程序

    image.png

    [Running] chez "hello.ss"
    Chez Scheme Version 9.5.2
    Copyright 1984-2019 Cisco Systems, Inc.
    
    Hello World
    [Done] exited with code=0 in 0.115 seconds
    

    原文

    https://www.yuque.com/yuanfandi/blog/learn_sicp_on_mac

    1 条回复    2019-10-28 23:00:41 +08:00
    ech0x
        1
    ech0x  
       2019-10-28 23:00:41 +08:00 via iPhone
    用 Racket 不就完了……
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   812 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 19:52 · PVG 03:52 · LAX 12:52 · JFK 15:52
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.