You'll need a 'cutting edge' firmware (or release 1v100 or later when that's released) as it happened to show up a few things that Espruino didn't implement or where it wasn't doing quite the right thing.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I got an email today asking whether the JavaScript 'Easy Forth' (https://skilldrick.github.io/easyforth/) would work on Espruino... It turns out it will!
You'll need a 'cutting edge' firmware (or release 1v100 or later when that's released) as it happened to show up a few things that Espruino didn't implement or where it wasn't doing quite the right thing.
The modifications to the code itself are:
Having said that if you did 'save on send' you'd probably have enough memory for it.
Once uploaded, you can just run
cmd("1 2 +")
to execute a bit of code.The interpreter could be so much more efficient than it is, but still - it's fun to be able to run something meant for a browser pretty much as-is.
1 Attachment