Create a parser context

This commit is contained in:
2025-06-13 15:24:24 +02:00
parent 9341017103
commit 20b5dd027f
10 changed files with 283 additions and 248 deletions

View File

@ -643,12 +643,13 @@ begin
end
end;
proc transpile(ast_module: PAstModule, output: File, input_name: ShortString);
proc transpile(ast_module: PAstModule, output: File, definition: File, input_name: ShortString);
var
context: TranspilerContext;
begin
context.input_name := input_name;
context.output := output;
context.definition := definition;
context.indentation := 0;
transpile_module(ADR(context), ast_module)