

| |||||||
|
You are here: Root > Programming Languages > Java
The Linj compiler translates Linj, a Lisp dialect very similar to Common Lisp, programs into human-readable Java programs, serving two different purposes:
(1) it allows a very smooth integration with the Java libraries
(2) it allows the generated code to be read, used and modified by Java programmers.
| Web site | http://www.evaluator.pt/linj.html |
| Mailing list | |
| Version | 1.7 - |
| Maturity | Beta |
| OS compatibility | All |
| ASDF installable | Yes |
| Official Download | http://www.evaluator.pt/linj.html |
| Mirrored Download | |
| Source code repository |
For instance this Linj code snippet:
(defun fact (n/int)
(if (= n 0)
1L
(* n (fact (1- n)))))
Gives this java code:
public static long fact(int n) {
if (n == 0) {
return 1L;
} else {
return n * fact(n - 1);
}
}
More examples in the Linj tutorial here: http://www.evaluator.pt/downloads/tutorial.html
SBCL | CMUCL | Allegro Common Lisp
You must be logged to add a note
You must be logged to add a comment