evanrmurphy / SweetScript

A lispy language that compiles into JavaScript, strongly influenced by Arc.
https://github.com/evanrmurphy/SweetScript
14 stars 4 forks source link

SweetScript

SweetScript has died and been reborn as LavaScript. Seek your lispy-javascript goodness there!

A lispy language that compiles into JavaScript, strongly influenced by Arc.

Install and Run

SweetScript runs on a modified version of arc3.1. After installing racket (previously called mzscheme):

git clone git@github.com:evanrmurphy/SweetScript.git
cd SweetScript/arc3.1
racket -f as.scm

You should find yourself at the arc> prompt. Enter (sweet) to use SweetScript:

arc> (sweet)
Welcome to SweetScript! Type (sour) to leave.
sweet> (def hello ()
         (alert "hello world!"))
hello=(function(){return alert('hello world!');});
sweet> (sour)
Bye!
nil
arc>