It waits for the user input and then continues running along.
I can implement a new command like serialprint to print data to the serial port and another like serialprintln to print to the serial port with a line feed or carriage return.
As for a timer this is an interesting concept.
It will require some thought as to go about it.
I am thinking some thing like
timer milliseconds [branch.label]
the branch label would have to terminate with a wait command and allow the program to continue executing where it was.
Some thing like the following possibly.
timer 5000 [do.some.stuff]
print "going to do some stuff in a bit]
button "Click me to exit" [Exit.ThisThing]
wait
[do.some.stuff]
ai bla
print bla
wait
[Exit.ThisThing]
end
http://esp8266basic.com
A BASIC interpreter for your ESP
Working now on Autodrop3d. A 3d printer with automatic part ejection system. https://autodrop3d.com