9 lines
197 B
TypeScript
9 lines
197 B
TypeScript
import { syscall } from "../syscall.ts";
|
|
import type { ParseTree } from "../lib/tree.ts";
|
|
|
|
export function parse(
|
|
code: string,
|
|
): Promise<ParseTree> {
|
|
return syscall("lua.parse", code);
|
|
}
|