Kilat

A small language for engineering calculations. Units and types are checked before the program runs.

Ctrl+Enter runs

Program

Tab indents. Press Esc and then Tab to leave the editor.

Result


        
      

Loading the interpreter.

Things to try

  1. Choose A unit mistake, caught and press Run. The program is rejected before its first line runs.
  2. In Hello, units, change 58 mm^2 to 58 mm. The result is no longer a pressure, and Kilat says so.
  3. Replace the program with while true { } and press Run. It is stopped at its limit and the page stays usable.
  4. Press Check to look for mistakes without running anything.