This commit is contained in:
msyds committed 2026-08-24 06:58:16 -06:00
1 parent 99d9e460fc
commit 1b5c93b030
8 files changed
+86 -506

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
package gyehoek:gyehoek@0.1.0;
interface runtime {
resource scm {
make-small-int: static func(n: s32) -> scm;
}
}
interface program {
run: func() -> s32;
}
world gyehoek {
import runtime;
export program;
}
+5
View File
@@ -0,0 +1,5 @@
(module
(func $run (result i32)
(i32.const 123))
(export "gyehoek:gyehoek/program@0.1.0#run"
(func $run)))
+5
View File
@@ -0,0 +1,5 @@
(module
(func $make-small-int (param $n i32) (result i32)
(i32.mul (local.get $n) (i32.const 2)))
(export "gyehoek:gyehoek/runtime@0.1.0[method]scm.make-small-int"
(func $make-small-int)))