add readme note about lisp similarities

This commit is contained in:
Daniella / Tove 2022-03-13 03:31:37 +01:00
parent ee7651319a
commit 837af77dbc

View file

@ -4,3 +4,22 @@ Improved Stack-Based Programming Language
Incomplete, not currently compilable, only interpretable.
Stuff: [TudbuT/isbpl-random-stuff](https://github.com/TudbuT/isbpl-random-stuff)
---
## ISBPL is similar to Lisp:
```lisp
(print (+ 1 (* 1 2)))
```
is the same as
```isbpl
2 1 * 1 + print
```
or
```isbpl
( ( ( 2 1 * ) 1 + ) print )
```
in both languages, this will print 3.
These examples used the print function, which does not exist by default, instead, puts should be used in combination with \_string.