/biwascheme-repl-demo

A demo of intaractive REPL with biwascheme.

Primary LanguageJavaScriptMIT LicenseMIT

biwascheme-repl-demo

A simple demo that shows intaractive development with biwascheme using REPL.

Quick Start

  1. Clone this repository.
$ git clone https://github.com/ihuku/biwascheme-repl-demo.git
$ cd biwascheme-repl-demo
$ npm install ws express
  1. Start web server.
$ node server.js
  1. Access to http://localhost:8901 in your browser. You can see Hello, World! page, and in the developer console, same messsage is also printed.

  2. Hot reloading feature: Edit src/index.html or app.scm as you like. Web browser detects the changes, then reloads automatically.

  3. REPL feature: Open another terminal and start repl. You can input lisp form that is evaluated in the browser.

$ node repl.js
biwas> (+ 1 2)
// => 3
biwas> (set-content! "p" "Modified Hello, World!!!")
// => web page is changed