Based on a lot of copy/paste, trial and error, E.memoryArea works for strings.
function jsvStringIteratorGetChar in jsviterator.h is extend to handle native string
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.
Based on a lot of copy/paste, trial and error, E.memoryArea works for strings.
function jsvStringIteratorGetChar in jsviterator.h is extend to handle native string
In next step function jslNextCh in jslex.c is extended too and first test calling a simple function works fine.
Pretty sure there is a nicer way doing this, and we will see this in next version.
Anyway, it opened a new door of knowledge for me.