the language still have a lot of bugs and limited functionalities, so do not expect something incredible.
gcc main.c -o main # compile
./main # executeThere are 8 registers:
- rax, rbx, rcx, rdx, rex, rfx (for storing values)
- rip (instruction pointer : which line is executed)
- rmp (memory pointer : which memory place is pointed)
ALL is dynamicly typed. Available types are:
- integer
- float
- string
Others types (arrays, dictionaries...) can be done using the memory.
set a register to a specific value
init rax 4
show value of a register
print 4
get string from user input and store the value in a register
input rax
basic operations on registers
add rax 4
sub rax 2
mul rax 3
div rax 2
print rax # result : 3
close the program
print 'end'
exit
print "Hello World!" # not printed
oneline comments
# hello
go to a specific line if the value equals, is bigger or less than 0
init rax 3
go?bi rax 4
print "hello" # not executed
print 'end'
converts a register which contains an integer or a float to a string
init rex 3
tos rex # rex now contains a string
converts a register which contains a string or a float to a integer
init rex '3'
toi rex # rex now contains an integer
converts a register which contains an integer or a string to a float
init rex 3
tof rex # rex now contains a float
store a value where rmp is pointing
store 5 # value 5 is stored at case number 0
add rmp 2 # case number 2
init rax rmp
store rax # value 2 is stored
load in a register the value where rmp is pointing
store 3
load rax
print rax # result : 3