Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 674 Bytes

File metadata and controls

27 lines (20 loc) · 674 Bytes

cube

esoteric programming language made to learn how to build a compiler

syntax

keywords

create      - creates a new cube
face        - sets the current face
write       - writes a number to the cube
add         - adds a number to the cube
sub         - subtracts a number from the cube
copy        - copies a face to the current face
if          - if the current face is equal to a number, executes the next block
end         - ends the current block
loop        - starts a loop
print       - prints the current face 
print_cube  - prints all faces

.{number}   - write ascii characters

example

here is the hello world example