JackMc/BasicLisp

语言: C

git: https://github.com/JackMc/BasicLisp

C中的基本(基本)Lisp解释器!
A basic (basic) Lisp interpreter in C!
README.md (中文)

BasicLisp

这是我在2014年夏天作为学习练习写的Lisp口译员 了解有关解析和解释器的更多信息。请注意,它非常不稳定 并且无法可靠地读取文件,但REPL工作得很好。构建和运行:

mkdir build
cmake ../ && make
./basic_lisp

这个解释器支持函数,基本算术,条件语句, 循环和内置函数。查看以builtins开头的文件 这些的实现。

ALL

  • 测试并修复文件加载中的错误
  • 更好的错误消息,用于意外的文件结束

本文使用googletrans自动翻译,仅供参考, 原文来自github.com

en_README.md

BasicLisp

This is a Lisp interpreter I wrote as a learning exercise in the summer of 2014
to learn more about parsing and interpreters. Note that it is pretty unstable
and can't read files reliably, but the REPL works pretty well. To build and run:

mkdir build
cmake ../ && make
./basic_lisp

This interpreter supports functions, basic arithmetic, conditional statements,
loops, and builtin functions. See files beginning with builtins_ for
implementations of these.

TODO

  • Test and fix bugs in file loading
  • Better error messages for unexpected end of file