phase: 20.49 COMPLETE; 20.50 Flow+String minimal reps; 20.51 selfhost v0/v1 minimal (Option A/B); hv1-inline binop/unop/copy; docs + run_all + CURRENT_TASK -> 21.0
This commit is contained in:
@ -647,7 +647,7 @@ static box Main {
|
||||
|
||||
me.console.separator()
|
||||
me.console.debug("💡 非同期版はローカル版で試してください:")
|
||||
me.console.debug(" ./target/debug/nyash test_async_demo.nyash")
|
||||
me.console.debug(" ./target/debug/nyash test_async_demo.hako")
|
||||
|
||||
me.console.groupEnd()
|
||||
return "計算デモ成功!"
|
||||
|
||||
@ -232,11 +232,11 @@ cd projects/nyash-wasm
|
||||
cargo build --release
|
||||
|
||||
# Run programs locally
|
||||
./target/release/nyash program.nyash
|
||||
./target/release/nyash program.hako
|
||||
|
||||
# Try examples
|
||||
./target/release/nyash test_async_demo.nyash
|
||||
./target/release/nyash app_dice_rpg.nyash
|
||||
./target/release/nyash test_async_demo.hako
|
||||
./target/release/nyash app_dice_rpg.hako
|
||||
```
|
||||
|
||||
#### 🪟 Windows (Cross-compile)
|
||||
|
||||
@ -136,7 +136,7 @@ export class NyashWasm {
|
||||
* Create a new Nyash interpreter instance for browser use
|
||||
*/
|
||||
constructor() {
|
||||
const ret = wasm.nyashwasm_new();
|
||||
const ret = wasm.hakowasm_new();
|
||||
this.__wbg_ptr = ret >>> 0;
|
||||
NyashWasmFinalization.register(this, this.__wbg_ptr, this);
|
||||
return this;
|
||||
@ -152,7 +152,7 @@ export class NyashWasm {
|
||||
try {
|
||||
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||
const len0 = WASM_VECTOR_LEN;
|
||||
const ret = wasm.nyashwasm_eval(this.__wbg_ptr, ptr0, len0);
|
||||
const ret = wasm.hakowasm_eval(this.__wbg_ptr, ptr0, len0);
|
||||
deferred2_0 = ret[0];
|
||||
deferred2_1 = ret[1];
|
||||
return getStringFromWasm0(ret[0], ret[1]);
|
||||
@ -168,7 +168,7 @@ export class NyashWasm {
|
||||
let deferred1_0;
|
||||
let deferred1_1;
|
||||
try {
|
||||
const ret = wasm.nyashwasm_version();
|
||||
const ret = wasm.hakowasm_version();
|
||||
deferred1_0 = ret[0];
|
||||
deferred1_1 = ret[1];
|
||||
return getStringFromWasm0(ret[0], ret[1]);
|
||||
|
||||
Reference in New Issue
Block a user