@raviqqe/stak 0.11.1 → 0.11.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -77,7 +77,7 @@ First, prepare a Scheme script named `src/fight.scm`:
77
77
  ```
78
78
 
79
79
  Then, add a build script at `build.rs` to build the Scheme source file
80
- into bytecodes.
80
+ into bytecode.
81
81
 
82
82
  ```rust no_run
83
83
  use stak_build::{build_r7rs, BuildError};
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@raviqqe/stak",
3
3
  "type": "module",
4
4
  "description": "Stak Scheme in WebAssembly",
5
- "version": "0.11.1",
5
+ "version": "0.11.3",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
package/stak_wasm.d.ts CHANGED
@@ -9,9 +9,9 @@ export function repl(heap_size: number): Promise<void>;
9
9
  */
10
10
  export function compile(source: string): Uint8Array;
11
11
  /**
12
- * Interprets bytecodes with standard input and returns its standard output.
12
+ * Interprets bytecode with standard input and returns its standard output.
13
13
  */
14
- export function interpret(bytecodes: Uint8Array, input: Uint8Array, heap_size: number): Uint8Array;
14
+ export function interpret(bytecode: Uint8Array, input: Uint8Array, heap_size: number): Uint8Array;
15
15
  /**
16
16
  * Runs a Scheme script with standard input and returns its standard output.
17
17
  */
package/stak_wasm.js CHANGED
@@ -241,14 +241,14 @@ function passArray8ToWasm0(arg, malloc) {
241
241
  return ptr;
242
242
  }
243
243
  /**
244
- * Interprets bytecodes with standard input and returns its standard output.
245
- * @param {Uint8Array} bytecodes
244
+ * Interprets bytecode with standard input and returns its standard output.
245
+ * @param {Uint8Array} bytecode
246
246
  * @param {Uint8Array} input
247
247
  * @param {number} heap_size
248
248
  * @returns {Uint8Array}
249
249
  */
250
- export function interpret(bytecodes, input, heap_size) {
251
- const ptr0 = passArray8ToWasm0(bytecodes, wasm.__wbindgen_malloc);
250
+ export function interpret(bytecode, input, heap_size) {
251
+ const ptr0 = passArray8ToWasm0(bytecode, wasm.__wbindgen_malloc);
252
252
  const len0 = WASM_VECTOR_LEN;
253
253
  const ptr1 = passArray8ToWasm0(input, wasm.__wbindgen_malloc);
254
254
  const len1 = WASM_VECTOR_LEN;
@@ -361,7 +361,7 @@ function __wbg_get_imports() {
361
361
  const ret = arg0.queueMicrotask;
362
362
  return ret;
363
363
  };
364
- imports.wbg.__wbg_readstdin_e9ed94f90a459499 = function() {
364
+ imports.wbg.__wbg_readstdin_a30a15047fece43f = function() {
365
365
  const ret = read_stdin();
366
366
  return ret;
367
367
  };
@@ -393,11 +393,11 @@ function __wbg_get_imports() {
393
393
  const ret = arg0.then(arg1, arg2);
394
394
  return ret;
395
395
  };
396
- imports.wbg.__wbg_writestderr_7f9df0633728b013 = function(arg0) {
396
+ imports.wbg.__wbg_writestderr_c1f4ba2bce11bc25 = function(arg0) {
397
397
  const ret = write_stderr(arg0);
398
398
  return ret;
399
399
  };
400
- imports.wbg.__wbg_writestdout_6eef0dd806396a1b = function(arg0) {
400
+ imports.wbg.__wbg_writestdout_0f804aca16513d72 = function(arg0) {
401
401
  const ret = write_stdout(arg0);
402
402
  return ret;
403
403
  };
@@ -410,7 +410,7 @@ function __wbg_get_imports() {
410
410
  const ret = false;
411
411
  return ret;
412
412
  };
413
- imports.wbg.__wbindgen_closure_wrapper83 = function(arg0, arg1, arg2) {
413
+ imports.wbg.__wbindgen_closure_wrapper84 = function(arg0, arg1, arg2) {
414
414
  const ret = makeMutClosure(arg0, arg1, 34, __wbg_adapter_24);
415
415
  return ret;
416
416
  };
package/stak_wasm_bg.wasm CHANGED
Binary file