SimpleTalk Demo

You can enter and run your own script, or click some buttons to run sample scripts.

In Brief

This page runs scripts in SimpleTalk, a language inspired by HyperTalk. The compiler and interpreter are implemented in JavaScript, and run in the browser.

Some of the math examples measure their own performance. My modest laptop reaches 10 megaflops. (Restart your browser to get full performance: JavaScript interpreters slow down as they “age”.) Mobile devices are slower of course. The code has also been ported to Dart, with about a 2x speed improvement running in Chromium.

In addition, SimpleTalk has some primitive syntax for manipulating the Web page directly. (The buttons.)



Try It Yourself

To run or evaluate a single line of SimpleTalk, type it in the  Interactive  field and hit return.
Or...


run script props tokens tree
Run Script Properties Tokens Tree

  1. To  run  a script, click a button below.
  2. To edit a button’s script, click the  Script edit  icon above, then click the button.
  3. To edit a button’s properties, click the  Properties props  icon above, then click the button.
  1. These features are mostly for internal debugging, but may be of interest.
  2. To see a script’s tokens, click the  Tokens tree  icon above, then click the button.
  3. To see a script’s syntax tree, click the  Tree tree  icon above, then click the button.
  1. To create a new button, click here.


Interactive (REPL)


Message Log



Remarks

Future features


See Also

Some other Web pages demonstrating the capabilities of HTML 5, JavaScript and Dart.