/scheme-ts

TypeScript implementation of a variant of the Scheme programming language

Primary LanguageTypeScriptApache License 2.0Apache-2.0

scheme-ts

Implementation of the programming language Scheme largely based on the Revised5 Report on the Algorithmic Language Scheme (R5RS).

Try out Scheme in the browser (in a modified Source Academy frontend)

Documentation

User documentation and specifications: Documentation.pdf

Developer documentation: DEVELOPER.md

Usage

To build, run

yarn
yarn build

To try out Scheme in a REPL, run

node dist/repl/repl.js '(+ 1 2)'

Hint: In bash you can take the PROGRAM_STRING out of a file as follows:

node dist/repl/repl.js "$(< my_scheme_program.scm)"

Testing

scheme-ts comes with an extensive test suite. To run the tests after you made your modifications, run

yarn test

Credits

This repository was bootstrapped with the project template provided in CS4215 Programming Language Implementation at National University of Singapore. The template was in turn a stripped-down version of the Source Academy's js-slang.