~~~
'user defined func by nOOb
type interp_variable
string vname
int vartype ' 0 is a number and 1 is a string
string vscope ' this is a string that will identify where the variable can be accessed
' if type is number then we will use n_value
' if type is a string then we will use s_value
string s_value
float n_value
end type
interp_variable user_variables[99] ' all the variables in the program
int user_variables_count = 0... [read more](/p/micro-a-interpreter/blog/2023/08/user-functions/)
here is a simple test with arrays in microA
'test array calc
var a,arr[100]
arr[1] = 7
arr[2] = 3
a = arr[1] + arr[2]
print 10,10,a
swap
Hi.
I just tested GDI graphic in micro(A) and so far seems that work well .
here is a screenshot:
Hello
To not keep this board empty ..I will add news with latest changes or bug fixing on this board.
Currently there is no big changes in tokenizer and some small fixes in WHILE loop which finally work
properly with logical operators AND --> & is used ,and OR ---> | is used in micro(A).
Same thing i must add to IF statemetnt and in TODO list i must add string type comparison.
Aurel