Skip to content

t-mw/throne-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

throne-playground

A web-based editor for the Throne programming language, hosted at https://t-mw.github.io/throne-playground/.

Usage

  1. Press the play button in the bottom right of the page to begin executing a script.
  2. Hover over any button to view a tooltip describing what the button does.
  3. To learn how to read and write the language, read the Throne documentation and view the examples below.

Examples

Debugging

Although script errors are marked in the editor when they occur, the context for your script can also be inspected in more detail through window.playground.context. For example, to print a log of the current state and compiled rules execute playground.context.print() in the browser console.

Building

  1. Clone Throne to a directory.
  2. Follow the steps to build Throne for WebAssembly.
  3. Clone this repository (throne-playground) to the same directory as throne.
  4. Run npm install && npm run build in the throne-playground directory.
    • Alternatively run npm install && npm run start to launch a local web server for testing.
  5. The build output will appear in throne-playground/dist.