Create a parser context
This commit is contained in:
@ -610,12 +610,13 @@ BEGIN
|
||||
INC(counter)
|
||||
END
|
||||
END transpile_module_name;
|
||||
PROCEDURE transpile(ast_module: PAstModule; output: File; input_name: ShortString);
|
||||
PROCEDURE 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)
|
||||
|
Reference in New Issue
Block a user