Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/atticus64/lisp-inrs
Interpreter of Lisp in Rust
https://github.com/atticus64/lisp-inrs
compilers interpreter lisp rust
Last synced: 3 months ago
JSON representation
Interpreter of Lisp in Rust
- Host: GitHub
- URL: https://github.com/atticus64/lisp-inrs
- Owner: Atticus64
- Created: 2023-08-28T07:02:35.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-20T19:48:49.000Z (about 1 year ago)
- Last Synced: 2023-12-20T20:58:49.300Z (about 1 year ago)
- Topics: compilers, interpreter, lisp, rust
- Language: Rust
- Homepage: https://vishpat.github.io/lisp-rs/
- Size: 76.2 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Interpreter of Lisp language
> For learning purposes
## Features ☕
* Various Data Types
* [X] String `"Jona"`
* [X] Integer `10`
* [X] Float `3.1416`
* [X] Lambda `(lambda (x) (+ x 1))`
* [X] Boolean `true`* Built-in Functions
* [X] `+` Add
* [X] `-` Subtract
* [X] `*` Multiply
* [X] `/` Divide
* [X] `^` Pow
* [X] `define` For define variables and functions
* [X] `load` For loading files
* [X] `print` For Debugging## Examples
* Add two numbers
```lisp
(define add (lambda (x y) (+ x y)))
(add 5)
```* Circle area
```lisp
(define pi 3.1416)
(define circle-area (lambda (r) (* pi (* r r))))
(circle-area 5)
```* Print Hello World
```lisp
(print "Hello World")
```