Common Lisp Koans 项目教程

Common Lisp Koans 项目教程

lisp-koansCommon Lisp Koans is a language learning exercise in the same vein as the ruby koans, python koans and others. It is a port of the prior koans with some modifications to highlight lisp-specific features. Structured as ordered groups of broken unit tests, the project guides the learner progressively through many Common Lisp language features. 项目地址:https://gitcode.com/gh_mirrors/li/lisp-koans

1. 项目的目录结构及介绍

Common Lisp Koans 项目的目录结构如下:

lisp-koans/
├── koans/
│   ├── asserts.lisp
│   ├── collections.lisp
│   ├── control_flow.lisp
│   ├── functions.lisp
│   ├── higher_order_functions.lisp
│   ├── lists.lisp
│   ├── macros.lisp
│   ├── numbers.lisp
│   ├── objects.lisp
│   ├── sequences.lisp
│   ├── strings.lisp
│   ├── symbols.lisp
│   ├── threads.lisp
│   └── variables.lisp
├── meditate-linux.sh
├── meditate-macos.sh
├── contemplate.lisp
├── LICENSE
└── README.md

目录介绍

  • koans/:包含了一系列的 Lisp 文件,每个文件对应一个学习模块,如 asserts.lispcollections.lisp 等。
  • meditate-linux.shmeditate-macos.sh:分别是 Linux 和 MacOS 系统下的启动脚本。
  • contemplate.lisp:项目的启动文件。
  • LICENSE:项目的许可证文件。
  • README.md:项目的说明文档。

2. 项目的启动文件介绍

项目的启动文件是 contemplate.lisp。该文件负责加载和运行 koans/ 目录下的 Lisp 文件,引导学习者逐步完成每个 Koan。

启动文件的使用方法

在终端中进入项目目录,然后运行以下命令:

$ cd lisp-koans
$ sh meditate-linux.sh  # 在 Linux 系统下
$ sh meditate-macos.sh  # 在 MacOS 系统下

3. 项目的配置文件介绍

Common Lisp Koans 项目没有显式的配置文件。项目的配置主要依赖于 koans/ 目录下的 Lisp 文件和启动脚本 meditate-linux.shmeditate-macos.sh

配置要点

  • Quicklisp:如果需要使用 threads.lisp 模块,需要安装并加载 Quicklisp。具体安装方法请参考 Quicklisp 官方网站
  • 启动脚本:根据操作系统的不同,选择相应的启动脚本 meditate-linux.shmeditate-macos.sh

以上是 Common Lisp Koans 项目的教程,涵盖了项目的目录结构、启动文件和配置要点。希望对您有所帮助!

lisp-koansCommon Lisp Koans is a language learning exercise in the same vein as the ruby koans, python koans and others. It is a port of the prior koans with some modifications to highlight lisp-specific features. Structured as ordered groups of broken unit tests, the project guides the learner progressively through many Common Lisp language features. 项目地址:https://gitcode.com/gh_mirrors/li/lisp-koans

  • 12
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

樊麒朋

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值