|
Oktatás * Programozás 1 * Szkriptnyelvek Teaching * Programming 1 (BI) Félévek Linkek * kalendárium |
Nim2 /
Compile to JavaScript$ nim c prg.nim 𝥶Here we use the C backend. The code is compiled to C first, and then that C code is compiled by GCC (or Clang, etc.). However, Nim also has a JavaScript backend. You can compile your code to JavaScript: $ nim js prg.nim # debug version $ nim js -d:release prg.nim # release version Then, you can execute the resulting JavaScript program with node.js, for instance: $ node prg.js If you use the JS backend, then you can use just a subset of the standard library. More info here. |
![]() Blogjaim, hobbi projektjeim * The Ubuntu Incident [ edit ] |