I've been looking at Node's repl module to add multi-line support, sophisticated auto-complete, and load/save.
I've been trying to figure out how to mask the repl context so that Node's built-ins which aren't present in Espruino don't get exposed. I'm making some progress there but it would be awesome to get a full mock representation of Espruino in order to support property and method completion (I guess that's where the py script comes in).
Btw, would it be ok with you if I publish this to npm as espruino-cli so that it's easy to find? If so I might still keep the bin as esp-cli.
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.
Hi Gordon,
I've been looking at Node's repl module to add multi-line support, sophisticated auto-complete, and load/save.
I've been trying to figure out how to mask the repl context so that Node's built-ins which aren't present in Espruino don't get exposed. I'm making some progress there but it would be awesome to get a full mock representation of Espruino in order to support property and method completion (I guess that's where the py script comes in).
Btw, would it be ok with you if I publish this to npm as espruino-cli so that it's easy to find? If so I might still keep the bin as esp-cli.