-
Sun 2018.09.23
re: 'From where is the > sign come in'
See #1 fix under EDIT
re: I've seen this expression ...between var exports={};
See: http://www.espruino.com/Writing+Modules
comment, just below first blue code block.
Redundantvar exports={};
and for snippet explanation un-necessary, as mentioned in above test file, per the instructions from Writing+Modules, but as you insist, here it is:var exports={}; var c = E.compiledC(` // double lookup(int) double lut[8] = { 41,42,43,44,45,46,47,48 }; double lookup(unsigned int x) { return lut[x&7]; } `); exports = c; var exports={};
re: 'I have the feeling not all details are shown'
Two lines of code to access the module (#1) and one could also load/view the deployed module into a browser by using the URL within the require() declaration.
From where is the
>
sign come in the line>var c = require("https://github.com/...
of 'Code file?Another question I have is: I've seen this expression
What is the second part of 'between'? Could you give me a screenshot of (or complete copy from) Espruino Web IDE editor pane?
I have the feeling not all details are shown in the post to assess the situation, because it does not matter from where IDE uploader (not the console or Espruino interpreter on the board) gets the module to send it to the C compiler service, get the compile code back, and upload it (with a JS wrapper) to the board.