vm: very basic virtual machine

This commit is contained in:
2023-11-14 23:44:10 -08:00
parent 8c48c93663
commit 041848c14e
92 changed files with 1652 additions and 243 deletions

View File

@ -34,7 +34,7 @@ object PorkStdlib : ContentSource {
return StringCharSource(readPorkFile(path))
}
override fun stableContentIdentity(path: String): String {
override fun stableContentPath(path: String): String {
return path
}
}

View File

@ -1,7 +1,7 @@
export func ffiStructDefine(items...)
native ffi "internal" "ffiStructDefine"
export func ffiStructAllocate(struct)
export func ffiStructAllocate(def)
native ffi "internal" "ffiStructAllocate"
export func ffiStructValue(def, field, value)