Transpiling Racket to Javascript with Urlang

Basic Examples

Posted by Promesante on September 18, 2016 · 1 min read

Basic Examples

As a first step to learn Urlang, I’ve coded my own basic examples, based on the most basic one supplied with Urlang’s distribution: factorial:

Generated Javascript code can be run the following ways:

  • in browser, by means of the index.html page (check log in browser dev tool console)
  • from the command line interface, by means of driver.js script

In the latter case, you can run the script by means of the Node.js, as shown below:

> node driver.js

My next step here will be similar, but based on another, slightly more sophisticated example, among the supplied with Urlang; most likely, the one interoperating with Ractive.

Till then !