An open API service indexing awesome lists of open source software.

https://github.com/grigorii-horos/picolang

Minimal interpreter of functional language, writen in JavaScript
https://github.com/grigorii-horos/picolang

functional functional-languages functional-programming interpreter javascript language lisp-dialect lisp-interpreter

Last synced: 7 months ago
JSON representation

Minimal interpreter of functional language, writen in JavaScript

Awesome Lists containing this project

README

          

## Minimal interpreter of functional language, writen in JavaScript

Write your program in file `program.pls` and execute `node index.js`.

##### Supports variable declaration

```lisp
(foo = true)
(bar = foo)
```

Your program need to be writen in functional style. Example:

```lisp
(a = 1000)

(b = (if true
(a true)
(a false)
))

(c => (if true
(a true)
(a false)
))

(a = false)

(log (b c))
```

#### Operators are now made:

* if

#### Functions are now made:

* `plus`
* `minus`
* `multiplication`
* `division`
* `sqrt`
* `pow`
* `not`
* `and`
* `or`
* `xor`
* `log`