add readme note about lisp similarities
This commit is contained in:
parent
ee7651319a
commit
837af77dbc
1 changed files with 19 additions and 0 deletions
19
README.md
19
README.md
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue