30 lines
556 B
Markdown
30 lines
556 B
Markdown
# Holy Lisp
|
|
|
|
<img src="./assets/holy_lisp.svg" alt="Holy Lisp Logo" width="100">
|
|
|
|
An opinionated lisp implementation developed in the most intuitive way I could come up with.
|
|
|
|
## Features
|
|
|
|
### Lists with a function as the **first element** are evaluated when needed
|
|
|
|
```lisp
|
|
(print (add 1 2)) ; => 3
|
|
(print (1 2 3)) ; => (1 2 3)
|
|
```
|
|
|
|
### Quoted lists are **not evaluated**
|
|
|
|
```lisp
|
|
(print '(add 1 2)) ; => '(<function add> 1 2)
|
|
```
|
|
|
|
### Elements within quoted lists can be unquoted
|
|
|
|
```lisp
|
|
(print
|
|
'(add
|
|
1 ,(sub 3 1)
|
|
)
|
|
) ; => '(<function add> 1 2)
|
|
``` |