add template.js for Node.JS #4

Open
opened 2023-11-18 16:33:37 +01:00 by 80486DX2-66 · 0 comments
Owner
  1. Transpile and rewrite template.c for Node.JS and save as template.js
  2. Rename bytebeat_render.py to C_bytebeat_render.py
  3. Rewrite C_bytebeat_render.py as JS_bytebeat_render.py for Node.JS (use node command to compile)

Details of rewriting template.ctemplate.js:

  1. Define bytebeat as a macro, i.e.
const bytebeat(w) => {
  // ...
  return /* ... */;
}
1. Transpile and rewrite `template.c` for Node.JS and save as `template.js` 2. Rename `bytebeat_render.py` to `C_bytebeat_render.py` 3. Rewrite `C_bytebeat_render.py` as `JS_bytebeat_render.py` for Node.JS (use `node` command to compile) Details of rewriting `template.c` → `template.js`: 1. Define `bytebeat` as a macro, i.e. ```js const bytebeat(w) => { // ... return /* ... */; } ```
80486DX2-66 added this to the accept JavaScript code milestone 2023-11-18 16:33:37 +01:00
80486DX2-66 added the
enhancement
label 2023-11-18 16:33:37 +01:00
80486DX2-66 added this to the C bytebeat render project 2023-11-18 16:33:37 +01:00
80486DX2-66 removed this from the C bytebeat render project 2023-11-21 17:30:13 +01:00
80486DX2-66 added this to the Rendering of bytebeat code in JavaScript project 2023-11-21 17:30:16 +01:00
Sign in to join this conversation.
No description provided.