atoun / biwascheme

yhara's private clone of BiwaScheme. The official one is:

Home Page:https://github.com/biwascheme/biwascheme

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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, uncompressed
  • lib/biwascheme-min.js : The latest release version, compressed
  • 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)

Development

Repository: https://github.com/yhara/biwascheme

How to release

  1. Edit History.txt
  2. Edit VERSION
  3. $ make -B
  4. Commit generated files
  5. $ git tag x.y.z
  6. Push changes to github (with --tags)
  7. Update website ($ git pull)

License

MIT-LICENSE

Acknowledgements

Contact

https://github.com/yhara/biwascheme

Yutaka HARA (yhara) yutaka.hara.gmail.com

About

yhara's private clone of BiwaScheme. The official one is:

https://github.com/biwascheme/biwascheme

License:MIT License