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
- Host: GitHub
- URL: https://github.com/grigorii-horos/picolang
- Owner: grigorii-horos
- License: mit
- Created: 2018-03-21T12:40:15.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-04T10:17:26.000Z (about 6 years ago)
- Last Synced: 2025-02-10T08:26:17.734Z (8 months ago)
- Topics: functional, functional-languages, functional-programming, interpreter, javascript, language, lisp-dialect, lisp-interpreter
- Language: JavaScript
- Size: 19.5 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`