Home

Awesome

whitespace-language-converter

Provide a converter from our language to whitespace

Installation and Usage

Put to_ws.py to any location and type the following command

python to_ws.py readable.hws -o beautiful.ws

QuickStart

Put one command per line as follows:

push 5
push -2
add
printi
end

You can use labels if you want:

push 0
push 10
loop:
  dup
  push 0
  swap
  store
  swap
  push 0
  retrieve
  add
  swap
  push 1
  sub
  dup
  jz end
  jmp loop
end:
swap
printi
end

The above code calculates 10 + 9 + ... + 1 and output it.

Our Language