Skip to content

rushint/biwascheme

 
 

Repository files navigation

BiwaScheme

BiwaScheme is a Scheme interpreter written in JavaScript.

Works with web browsers and Node.js.

Demos

see http://www.biwascheme.org/

Download

How to use

Just load biwascheme.js and write Scheme code.

<!DOCTYPE html>
<html>
<body>

<div id="bs-console"></div>

<script src="biwascheme.js">
(display "hello, world!")
</script>

</body>
</html>

How to use with node.js to run a biwa script

  1. $ npm install optparse

  2. create a file a.scm:

    (display "Hello, world!") (newline)

  3. $ node bin/biwas a.scm

How to use from inside node.js as a module

  1. $ npm install biwascheme

  2. create a file a.scm:

    (display "Hello, world!") (newline)

  3. create a file server.js:

    var BiwaScheme = require("biwascheme").BiwaScheme; BiwaScheme.run("a.scm");

  4. $ node server.js

Files

  • lib/biwascheme.js : The latest release version
  • demo/
    • Demos
  • src/
    • system/
      • Source code of the interpreter
    • library/
      • Built-in library functions
  • test/
    • Unit tests
  • tuplespace/
    • (experimental) TupleSpace implemented in Scheme
  • website/

Building biwascheme.js

Make compiles src/*.js into lib/biwascheme.js.

$ make

Prerequisites:

  • make
  • sed
  • Java (to run YUI Compressor)

License

MIT-LICENSE

Acknowledgements

Contact

https://github.com/yhara/biwascheme

About

A practical Scheme interpreter writtern in JavaScript

Resources

License

Stars

Watchers

Forks

Packages

No packages published