Idorobots / spartan

A small Lisp dialect that serves me as a test bed for programming language features.
MIT License
13 stars 3 forks source link

JS compilation target. #176

Open Idorobots opened 7 months ago

Idorobots commented 7 months ago

In addition to the current Scheme implementation, a JS runtime and code generation would be pretty useful.

TODO:

Idorobots commented 7 months ago

Could use https://www.npmjs.com/package/bignumber.js/v/9.0.1 or https://github.com/brownplt/pyret-lang/blob/master/src/js/base/js-numbers.js for the JS implementation of the numeric tower.

Idorobots commented 7 months ago

Some examples on getting a better JS interop: https://github.com/Idorobots/spartan/tree/js-interop