2024-10-03 23:55:51 +08:00
|
|
|
import { syscall } from "../syscall.ts";
|
|
|
|
import type { ParseTree } from "../lib/tree.ts";
|
|
|
|
|
|
|
|
export function parse(
|
2024-10-11 21:34:27 +08:00
|
|
|
code: string,
|
2024-10-03 23:55:51 +08:00
|
|
|
): Promise<ParseTree> {
|
2024-10-11 21:34:27 +08:00
|
|
|
return syscall("lua.parse", code);
|
2024-10-03 23:55:51 +08:00
|
|
|
}
|