js1#: a 1# interpreter for web browsers

  • program editor
  • workshop

Help ?

General

Esc: deselect text area, exit help dialog

Editor e

c: clear program register
r: run program

Workshop w

l: load displayed program into register

1# Syntax Reference

  • 1n#: Add a 1 to Rn
  • 1n##: Add a # to Rn
  • 1n###: Forward n instructions
  • 1n####: Back n instructions
  • 1n#####: Cases on Rn
Additions are made on the right. Control moves forward 1 instruction at the end of an addition.

Cases on Rn destroys the leftmost symbol in Rn and tests it. The result of this test determines the control flow.
  • if empty, forward 1 instruction
  • if 1, forward 2 instructions
  • if #, forward 3 instructions
Whitespace insensitive. The interpreter ignores symbols after a ';' in a line.

Save program

• Overwrite...

• or save as new:
save as new

Open program