LISP to C++ template transpiler
Run make
To compile a lisp program to a standalone source file, run
headache -s -i <lisp file> -o <output file>
Compile that using
g++ -o<executable> -std=c++17 -Iinclude/ <output file>.cpp
Currently built-in functions are
- Operators +, -, *, /
- define (both functions and variables)
- car
- cdr
- cons
- if
- eq
- lambda