Parser 2.0 (Major Delezer) #52

Merged
defunkt merged 35 commits from parser2 into main 2025-12-08 16:35:34 +00:00
Showing only changes of commit 5ad6125527 - Show all commits

View File

@ -95,7 +95,7 @@ export function compileCode(code: string, globals?: Record<string, any>): Byteco
return compiler.bytecode
}
export function parseFile(path: string, globals?: Record<string, any>): SyntaxNode {
export function parseFile(path: string, globals?: Record<string, any>): Tree {
const code = readFileSync(path, 'utf-8')
return parseCode(code, globals)
}