@raviqqe/stak 0.3.3 → 0.3.5
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 +1 -1
- package/stak_wasm.d.ts +2 -8
- package/stak_wasm_bg.wasm +0 -0
package/package.json
CHANGED
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) =>
|
|
23
|
-
readonly interpret: (a: number, b: number, c: number, d: number, e: number) =>
|
|
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
|