@raviqqe/stak 0.3.3 → 0.3.4

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@raviqqe/stak",
3
3
  "type": "module",
4
4
  "description": "Stak Scheme VM in WebAssembly",
5
- "version": "0.3.3",
5
+ "version": "0.3.4",
6
6
  "license": "SEE LICENSE IN ../LICENSE",
7
7
  "repository": {
8
8
  "type": "git",
package/stak_wasm.d.ts CHANGED
@@ -2,16 +2,10 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Compiles a source code.
5
- * @param {string} source
6
- * @returns {Uint8Array}
7
5
  */
8
6
  export function compile(source: string): Uint8Array;
9
7
  /**
10
8
  * Interprets bytecodes with a standard input and returns its standard output.
11
- * @param {Uint8Array} bytecodes
12
- * @param {Uint8Array} input
13
- * @param {number} heap_size
14
- * @returns {Uint8Array}
15
9
  */
16
10
  export function interpret(bytecodes: Uint8Array, input: Uint8Array, heap_size: number): Uint8Array;
17
11
 
@@ -19,8 +13,8 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
19
13
 
20
14
  export interface InitOutput {
21
15
  readonly memory: WebAssembly.Memory;
22
- readonly compile: (a: number, b: number) => Array;
23
- readonly interpret: (a: number, b: number, c: number, d: number, e: number) => Array;
16
+ readonly compile: (a: number, b: number) => [number, number, number, number];
17
+ readonly interpret: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
24
18
  readonly __wbindgen_export_0: WebAssembly.Table;
25
19
  readonly __wbindgen_malloc: (a: number, b: number) => number;
26
20
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
package/stak_wasm_bg.wasm CHANGED
Binary file