https://github.com/stefanwille/scheme-interpreter
Scheme interpreter in ReasonML, based on SICP chapter 4
https://github.com/stefanwille/scheme-interpreter
reason scheme sicp-book
Last synced: 3 months ago
JSON representation
Scheme interpreter in ReasonML, based on SICP chapter 4
- Host: GitHub
- URL: https://github.com/stefanwille/scheme-interpreter
- Owner: stefanwille
- Created: 2020-06-19T14:49:51.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T09:21:30.000Z (over 2 years ago)
- Last Synced: 2025-02-05T21:35:46.113Z (5 months ago)
- Topics: reason, scheme, sicp-book
- Language: Reason
- Homepage:
- Size: 1.14 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Scheme Interpreter in ReasonML
This is an interpreter for the Lisp like programming language Scheme, written in ReasonML. The code follows closely chapter 4 of the book "Structure and Interpretation of Computer Programs" by Abelson/Sussman.
I wrote this code as an exercise to learn ReasonML.
## Build
```bash
yarn build
```## Build + Watch
```bash
yarn start```
## Test
```bash
yarn test```
## API
```reason
let interpreter = SchemeInterpreter.newInterpreter();
let result: string =
SchemeInterpreter.run(interpreter, "(begin (set! n 10) (+ n 2))");
Js.log(result);
# => 12
```