2024-10-03 23:55:51 +08:00
|
|
|
import type { SysCallMapping } from "$lib/plugos/system.ts";
|
|
|
|
import { parse } from "../space_lua/parse.ts";
|
|
|
|
|
|
|
|
export function luaSyscalls(): SysCallMapping {
|
2024-10-11 21:34:27 +08:00
|
|
|
return {
|
|
|
|
"lua.parse": (_ctx, code: string) => {
|
|
|
|
return parse(code);
|
|
|
|
},
|
|
|
|
};
|
2024-10-03 23:55:51 +08:00
|
|
|
}
|