Correspondence rhoScript Example Using Bracketup (browserified)

Author: Philip Dorrell

Correspondence is a framework for interactively visualizing correspondences between items in related structures.

Bracketup is a generic structured textual markup language (one that I have just invented).

This particular page shows the same translation visualisation as http://thinkinghard.com/correspondence/rhoscript/index.html.

But there is one important difference. Whereas that page was generated off-line using the Ruby application correspondence-markup, from source code (a copy of which is included in the HTML page source as a comment), this page is generated in the browser, by Javascript code, from Bracketup source code included in a <script> element in the page source.

(The bracketup source code is similar to, but not quite the same as, the original correspondence-markup source code.)

rhoScript example: Eight Queens Puzzle

Mouse over the translations to see the relationships between them.

Alternative "Un-Browserified" Version of this Page

This page uses browserify to compile Javascript modules using CommonJS require and exports into a single file.

For development, it is preferable to run source code directly, without a separate compilation step.

For example, as I have done here, using module-simulator.js, which implements the functionality of require and exports directly in the browser.

Last updated: 10 October 2013