tré compiles a cross-compatible dialect of Lisp to JavaScript, PHP 7+ and Common Lisp.
- Contributors
- Build and install
- FAQ – Frequently Asked Questions
- Introduction to Lisp
- Starting a Project
- Syntax
- Class
- Porting from PHP
- Compiler
- Compiler source docs
- Environment
- Modules
- Stuff using tré
- Wishlist
tré requires SBCL and Git. You require basic knowledge of Common LISP, PHP and JavaScript.
To install the required packages on Ubuntu or derivates run:
sudo apt install sbcl git -y
Shell script "make.sh" is the makefile for tre with several actions you can list by specifying target "help".
./make.sh help
To build and install just do:
./make.sh boot
./make.sh install
This will build and install executable "tre" to /usr/local/bin/ and all other files to /usr/local/. TODO: environment var "PREFIX" to change the destination directory. It takes an optional pathname of a source file to compile and execute. If no file was specified, it'll prompt you for expressions to execute.
While booting the environment tré generates a syntax file for VIM named 'tre.vim' which you can copy to ~/.vim/after/syntax/. It extends the already existing syntax highlighting rules for Lisp code.