glguida / lac

a LISP interpreter

Home Page:http://invlpg.tlbflush.org/lac/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LAC is a laconic lisp interpreter.

Lexically scoped, single-namespace, extensible.

This is mostly a free time hack to learn lisp internals.

---
Extensibility: How to add new types

1. Create a C file containing:

- Three type specific functions
  - 'eq
  - 'print
  - 'eval

- an INIT function that register the ext_type to the system (will be
  automatically executed at runtime, no need to change the main file)

2. Add lexer rules to scan and allocate the new type in 'atoms.l

3. Debug

About

a LISP interpreter

http://invlpg.tlbflush.org/lac/

License:GNU General Public License v2.0


Languages

Language:C 74.1%Language:Common Lisp 10.3%Language:Yacc 6.1%Language:Lex 5.6%Language:CMake 3.9%