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

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

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
```